redis-cache 1.0.2 → 1.1.0

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
  SHA1:
3
- metadata.gz: 8fc89339ef94cfa01df27ea4a78b497e18ce491e
4
- data.tar.gz: 43f97830f02055dafd9365a05aa6dbceac139106
3
+ metadata.gz: 831d1624634fb82eb652400435ea62a144df6be8
4
+ data.tar.gz: cbaa2afeccf1d887428ddf979f429e0c2cc45e82
5
5
  SHA512:
6
- metadata.gz: db6f35e482dfdb920ac4b8717e0526e5cbf7c0891b28677cc0ee02be5445689ffa2f0fd1570c5b732c6bcdeba2e30c466053fc70eb5e6bad1bf249dc34332789
7
- data.tar.gz: 9c4fad28e43135e4d2a61af629fe4eb3b47fa9c2756f0ba17b02728faf656b075bafe3090133b05574fe679de1b7389decac581add97a06e782a3fa1a1ae5c14
6
+ metadata.gz: 2207d0dc7decae51030dc7449ba9ec0081ef7e76fad417786e30f1bd7c27d421f7dff43da243541cc06170e8ec02a0e7053c99219bceab14fad56a6fcbcd4c9b
7
+ data.tar.gz: ca8645527e2d7f99cf2cd16c0581f1e22d93ff6a96b3acca555534e61ebb37f955c745e2d5b99e2cc28d673dbb62d0e9af0575c1f28c6a3e0e8232099961e8dd
@@ -1,3 +1,10 @@
1
+ === 1.1.0 2013-10-25
2
+
3
+ * Autodetected and used 'hiredis' gem.
4
+ * Added #disconnect method.
5
+ * Fixed bug in #reconnect method.
6
+ * Required 'redis' gem >= 3.0
7
+
1
8
  === 1.0.2 2013-07-07
2
9
 
3
10
  * Added Rails 4 support.
@@ -14,6 +14,9 @@ module ActiveSupport
14
14
  super(options)
15
15
 
16
16
  options = { :logger => self.class.logger }.merge(options || {})
17
+ if defined?(Hiredis)
18
+ options = { :driver => :hiredis }.merge(options || {})
19
+ end
17
20
  @redis = ::Redis.new(options)
18
21
 
19
22
  if (@redis.info["redis_version"].split(".").map { |x| x.to_i } <=> [2, 1, 3]) < 0
@@ -24,7 +27,11 @@ module ActiveSupport
24
27
  end
25
28
 
26
29
  def reconnect
27
- @redis and @redis.reconnect
30
+ @redis and @redis.client.reconnect
31
+ end
32
+
33
+ def disconnect
34
+ @redis and @redis.client.disconnect
28
35
  end
29
36
 
30
37
  def clear(options = nil)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Ageev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-06 00:00:00.000000000 Z
11
+ date: 2013-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.2.0
33
+ version: 3.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: 2.2.0
40
+ version: 3.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '2.13'
47
+ version: '2.14'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '2.13'
54
+ version: '2.14'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: i18n
57
57
  requirement: !ruby/object:Gem::Requirement