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: a0ea6d51a29498f3273430e69a7bc21faed3005e1b63ad2fd74aa1284c78e2bd
4
- data.tar.gz: abc94191628bbca9d30d321be2208479fa147505fa76e2621dca0ce7bd4bbee3
3
+ metadata.gz: 58cb231c0f60251e313b409574c3e91179e7c19fff227acd544c005f36186dd6
4
+ data.tar.gz: 01b0897705a09ab6ff6735752a4b9b5156e58efe63c465ae5031bc300cc50c1b
5
5
  SHA512:
6
- metadata.gz: 9d8e45b79c1cb106b1eccbdd528372dda9b70bacad1af4c8535e97334048d55a1e7ed854484e3e8cddcecd5d1e673139eef080acd2e1a19659d4a1af12885184
7
- data.tar.gz: '05139f20d2a6e70798a223bf00a3ad6f6d66496f60f768f2cd010a268cd1091be5f8ac504f9f160fcfe34b3cd118fd1cda925d57560ece3cd436a641d9062734'
6
+ metadata.gz: bcb003572c0b447fc4bc25e0e56205bdfc8cbed2daee43e53675bd3fcdfc712d77d02b7560f7fd5fe77c6002e9507a1a181da63c89b11c472c7fa3da1f8356c1
7
+ data.tar.gz: 1c7000f1ad4d69c17615b9faebd6f6e054bc11e4329d699b0813853c1efacb106d5b1cabaa2afd81b10fe3fb1195401a4dfef885e55e639865b7de25cd61e57d
@@ -16,8 +16,8 @@ module Rack
16
16
  end
17
17
 
18
18
  module ClassMethods
19
- def resolve(uri)
20
- new ::Redis::Store::Factory.resolve(uri.to_s)
19
+ def resolve(uri, options = {})
20
+ new ::Redis::Store::Factory.resolve(uri.to_s), options
21
21
  end
22
22
  end
23
23
 
@@ -1,7 +1,7 @@
1
1
  class Redis
2
2
  module Rack
3
3
  module Cache
4
- VERSION = '2.2.0'
4
+ VERSION = '2.2.1'
5
5
  end
6
6
  end
7
7
  end
@@ -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.0
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 00:00:00.000000000 Z
11
+ date: 2019-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis-store