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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/stockpile/cached_value_reader.rb +1 -1
- data/lib/stockpile/constants.rb +1 -1
- data/lib/stockpile/redis_connections_factory.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20736110c100d25c51d088d39cf3e4cb2f47ca5fdcf96b6c57da63d24cddd3d4
|
4
|
+
data.tar.gz: 0c19227851550c6433b799764ee7624dd36bc3f0f5d9a327e48e352a39237d29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b798877e58889a4421d046352c67a8e7af5c73e900cae4d7c25f4e1b23fc5cd172e18815a4b94bf43e7e8d9f175862292a7bdacde04a8d99a62472876e4bbce3
|
7
|
+
data.tar.gz: 036f9031079c8e1ca06052474207d139f6b1373e203f9110278d56e9ff3c9767bba2dc85588ccb700b6624383cca8fc0b135438b45c11adfa51e17e4ac73346b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -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)
|
data/lib/stockpile/constants.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: connection_pool
|