redis-rack-cache 2.2.0 → 2.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58cb231c0f60251e313b409574c3e91179e7c19fff227acd544c005f36186dd6
|
4
|
+
data.tar.gz: 01b0897705a09ab6ff6735752a4b9b5156e58efe63c465ae5031bc300cc50c1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcb003572c0b447fc4bc25e0e56205bdfc8cbed2daee43e53675bd3fcdfc712d77d02b7560f7fd5fe77c6002e9507a1a181da63c89b11c472c7fa3da1f8356c1
|
7
|
+
data.tar.gz: 1c7000f1ad4d69c17615b9faebd6f6e054bc11e4329d699b0813853c1efacb106d5b1cabaa2afd81b10fe3fb1195401a4dfef885e55e639865b7de25cd61e57d
|
@@ -91,12 +91,13 @@ describe Rack::Cache::EntityStore::Redis do
|
|
91
91
|
cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://127.0.0.1/13")).cache
|
92
92
|
cache.id.must_equal("redis://127.0.0.1:6379/13")
|
93
93
|
|
94
|
-
# cache = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://:secret@127.0.0.1")).cache
|
95
|
-
# cache.id.must_equal("redis://127.0.0.1:6379/0")
|
96
|
-
# cache.client.password.must_equal('secret')
|
97
|
-
|
98
94
|
cache = Rack::Cache::MetaStore::Redis.resolve(uri("redis://127.0.0.1:6380/0/entitystore")).cache
|
99
95
|
cache.to_s.must_equal("Redis Client connected to 127.0.0.1:6380 against DB 0 with namespace entitystore")
|
96
|
+
|
97
|
+
store = ::Rack::Cache::EntityStore::Redis.resolve(uri("redis://127.0.0.1/13"), compress: true)
|
98
|
+
store.cache.id.must_equal("redis://127.0.0.1:6379/13")
|
99
|
+
store.options.key?(:compress).must_equal(true)
|
100
|
+
store.options[:compress].must_equal(true)
|
100
101
|
end
|
101
102
|
|
102
103
|
it 'responds to all required messages' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-rack-cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-store
|