stockpile_cache 1.3.1 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ad32124765de7dec002510817eba80abf37eb7e42403de931e6c74cc9178842
4
- data.tar.gz: b0242fe4109a69ce917997181ec76b00b47c0cb8c02794d88edf75276b5d62fc
3
+ metadata.gz: 20736110c100d25c51d088d39cf3e4cb2f47ca5fdcf96b6c57da63d24cddd3d4
4
+ data.tar.gz: 0c19227851550c6433b799764ee7624dd36bc3f0f5d9a327e48e352a39237d29
5
5
  SHA512:
6
- metadata.gz: 1540e626290d9209a0820c8a8f9830f9bc14cf8d10569bf6279b4369a0da35843d0a19ef99f90e0ab21de31c3653a24d5658285e410085aeda4e2d7209658cc6
7
- data.tar.gz: 7bf019df445a2a1acd3a70d1400a65d06b09056a35ea287ea3b469fd7fb65753530d47cf2105a93f8f6b7dc1348409ba5ba5680464ce46b3d897fd55c7a00503
6
+ metadata.gz: b798877e58889a4421d046352c67a8e7af5c73e900cae4d7c25f4e1b23fc5cd172e18815a4b94bf43e7e8d9f175862292a7bdacde04a8d99a62472876e4bbce3
7
+ data.tar.gz: 036f9031079c8e1ca06052474207d139f6b1373e203f9110278d56e9ff3c9767bba2dc85588ccb700b6624383cca8fc0b135438b45c11adfa51e17e4ac73346b
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.2
4
+ - Fixing bug where cached content was not read
5
+
3
6
  ## 1.3.1
4
7
  - Parsing ERB in YAML configs
5
8
  - Fill in missing README about cache expiration
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stockpile_cache (1.3.1)
4
+ stockpile_cache (1.3.2)
5
5
  connection_pool
6
6
  oj
7
7
  rake
@@ -23,7 +23,7 @@ module Stockpile
23
23
  module_function
24
24
 
25
25
  def read_or_yield(db: :default, key:, ttl:, &block)
26
- if (result = Stockpile::Cache.get(db: db, key: key))
26
+ if (result = Stockpile::Cache.get(db: db, key: key, compress: RedisConnections.compression?(db: db)))
27
27
  result
28
28
  else
29
29
  Stockpile::Executor.perform(db: db, key: key, ttl: ttl, &block)
@@ -23,5 +23,5 @@ module Stockpile
23
23
  DEFAULT_TTL = 60 * 5
24
24
  LOCK_PREFIX = 'stockpile_lock::'
25
25
  SLUMBER_COOLDOWN = 0.05
26
- VERSION = '1.3.1'
26
+ VERSION = '1.3.2'
27
27
  end
@@ -30,7 +30,6 @@ module Stockpile
30
30
  end
31
31
 
32
32
  RedisConnections.instance_variable_set("@#{database[:db]}".to_sym, pool)
33
-
34
33
  RedisConnections.instance_variable_set("@#{database[:db]}_compression".to_sym, database[:compression])
35
34
  end
36
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stockpile_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ConvertKit, LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-01 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool