cache_store_redis 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cache_store_redis/version.rb +1 -1
- data/lib/cache_store_redis.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83256c6d06caa6db5cd8af0364b6abc29f793895
|
4
|
+
data.tar.gz: a672f9627f0305c1b3c557a2d164290acf37a08e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20c30228b2ff322f918775937b71f9f002d4dc7f5f47d83b3e947f68f17d1e14e34f74de69dd905a08d6a583e714538e59b02662454f7e0b5562cef539b44776
|
7
|
+
data.tar.gz: 39bba9ecf74f6e2d6a7b76b909173e6dcad6fba984b6edf68d0900ad1fb917d84caa7a8a69c7a349bb7a2bcb6f6db7c8c2755f28378056f2d906e00fe324b8cd
|
data/lib/cache_store_redis.rb
CHANGED
@@ -43,9 +43,8 @@ class RedisCacheStore
|
|
43
43
|
|
44
44
|
#This method is called to configure the connection to the cache store.
|
45
45
|
def configure(host = 'localhost', port = 6379, db = 'default', password = nil, driver: nil, url: nil)
|
46
|
-
@config = []
|
47
|
-
|
48
46
|
if url != nil
|
47
|
+
@config = {}
|
49
48
|
@config[:url] = url
|
50
49
|
@config[:db] = db
|
51
50
|
else
|
@@ -136,6 +135,7 @@ class RedisCacheStore
|
|
136
135
|
end
|
137
136
|
end
|
138
137
|
|
138
|
+
|
139
139
|
private
|
140
140
|
|
141
141
|
def serialize(object)
|