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 +4 -4
- data/History.txt +7 -0
- data/lib/active_support/cache/redis_store.rb +8 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 831d1624634fb82eb652400435ea62a144df6be8
|
4
|
+
data.tar.gz: cbaa2afeccf1d887428ddf979f429e0c2cc45e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2207d0dc7decae51030dc7449ba9ec0081ef7e76fad417786e30f1bd7c27d421f7dff43da243541cc06170e8ec02a0e7053c99219bceab14fad56a6fcbcd4c9b
|
7
|
+
data.tar.gz: ca8645527e2d7f99cf2cd16c0581f1e22d93ff6a96b3acca555534e61ebb37f955c745e2d5b99e2cc28d673dbb62d0e9af0575c1f28c6a3e0e8232099961e8dd
|
data/History.txt
CHANGED
@@ -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
|
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-
|
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:
|
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:
|
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.
|
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.
|
54
|
+
version: '2.14'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: i18n
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|