cache_store_redis 0.5.0 → 0.5.1
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 +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50ea91049c9d8a0c502af94535140b5dfe89474a
|
4
|
+
data.tar.gz: 4fe76425edc7b68d8f4ae6e4cbf48ead3166acc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ffd88228c60037764ddb13a24fa6b50af3968bd14aeeba128f6f2f88994857150f442092b3f0e49e6f03afd50f28b050660173363c336c7514d78eef325ea71
|
7
|
+
data.tar.gz: 89a31cc4ba18540f782eddebff51829578ed4445ab85b2d54e8a99e63bf13163c003ab15d56cfe3b5cae17d0e996dc4ce80a749f4f46c6e5972763c695199eab
|
data/lib/cache_store_redis.rb
CHANGED
@@ -62,7 +62,7 @@ class RedisCacheStore
|
|
62
62
|
@config = { host: host, port: port, db: db }
|
63
63
|
end
|
64
64
|
|
65
|
-
@config[:password] = password unless password
|
65
|
+
@config[:password] = password unless password.nil?
|
66
66
|
@config[:driver] = driver unless driver.nil?
|
67
67
|
|
68
68
|
@config[:connect_timeout] = connect_timeout
|
@@ -150,7 +150,7 @@ class RedisCacheStore
|
|
150
150
|
|
151
151
|
if value.nil? && block_given?
|
152
152
|
value = yield
|
153
|
-
set(
|
153
|
+
set(key, value, expires_in)
|
154
154
|
end
|
155
155
|
|
156
156
|
value
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cache_store_redis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaughanbrittonsage
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.6.13
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: This is the redis cache_store implementation.
|