redis-store 1.9.0 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/redis/store/ttl.rb +3 -3
- data/lib/redis/store/version.rb +1 -1
- data/redis-store.gemspec +0 -2
- data/test/redis/store/ttl_test.rb +1 -1
- metadata +6 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1313af60d82044041ee37781a16eb734332476e45ce6bc59d6c2ffa4e90c1d5
|
4
|
+
data.tar.gz: b17aa7cf4cc0439c2e1ee460dd15c4f16a43963370a742c9a3c9180dc970d5dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff9ea84a0b8daf75b59883ab6d2040a3726caaf43249d52661d1d9aa335ac2c25c7e53c351d45c81f2009b50a34d07bbe6a3d408d2701bdc7c7301959c2cb4dc
|
7
|
+
data.tar.gz: bccc369d3d57af1dcec02e1797b1e8527b3993c051c6ff3db60556638529630adbc3ba5a7b4d53b08ebe991f145abb7eaac37873fac734ca6c4bd6ec0ea31074
|
data/lib/redis/store/ttl.rb
CHANGED
@@ -19,9 +19,9 @@ class Redis
|
|
19
19
|
|
20
20
|
protected
|
21
21
|
def setnx_with_expire(key, value, ttl, options = {})
|
22
|
-
with_multi_or_pipelined(options) do
|
23
|
-
setnx(key, value, :raw => true)
|
24
|
-
expire(key, ttl)
|
22
|
+
with_multi_or_pipelined(options) do |transaction|
|
23
|
+
transaction.setnx(key, value, :raw => true)
|
24
|
+
transaction.expire(key, ttl)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
data/lib/redis/store/version.rb
CHANGED
data/redis-store.gemspec
CHANGED
@@ -13,8 +13,6 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = 'Namespaced Rack::Session, Rack::Cache, I18n and cache Redis stores for Ruby web frameworks.'
|
14
14
|
|
15
15
|
s.files = `git ls-files`.split("\n")
|
16
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
17
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
18
16
|
s.require_paths = ["lib"]
|
19
17
|
s.license = 'MIT'
|
20
18
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis
|
@@ -218,7 +218,7 @@ homepage: http://redis-store.org/redis-store
|
|
218
218
|
licenses:
|
219
219
|
- MIT
|
220
220
|
metadata: {}
|
221
|
-
post_install_message:
|
221
|
+
post_install_message:
|
222
222
|
rdoc_options: []
|
223
223
|
require_paths:
|
224
224
|
- lib
|
@@ -234,17 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
234
|
version: '0'
|
235
235
|
requirements: []
|
236
236
|
rubygems_version: 3.1.2
|
237
|
-
signing_key:
|
237
|
+
signing_key:
|
238
238
|
specification_version: 4
|
239
239
|
summary: Redis stores for Ruby frameworks
|
240
|
-
test_files:
|
241
|
-
- test/redis/distributed_store_test.rb
|
242
|
-
- test/redis/store/factory_test.rb
|
243
|
-
- test/redis/store/interface_test.rb
|
244
|
-
- test/redis/store/namespace_test.rb
|
245
|
-
- test/redis/store/redis_version_test.rb
|
246
|
-
- test/redis/store/serialization_test.rb
|
247
|
-
- test/redis/store/ttl_test.rb
|
248
|
-
- test/redis/store/version_test.rb
|
249
|
-
- test/redis/store_test.rb
|
250
|
-
- test/test_helper.rb
|
240
|
+
test_files: []
|