cache_store_redis 0.5.2 → 0.5.3
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e668efa97480b84d6fd083fb4bba878e6b958c2
|
4
|
+
data.tar.gz: 33cbb65305f543be4e1149e787869143d010f6a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 550996847aaeaff5dce1cf92e87b6aa028296657b7d4d85c7e85a0f4fd23077eb43dca0149905c80eab294ecc9534fb7bc8fc30ba6aa7ef0260c006e6cde1379
|
7
|
+
data.tar.gz: dc9ff39218493ffb3d628166de7d8596345be3a3c4515c10c346eb2eb9058832ec833e0cbd5e3a24a7c8a6e6583bfc040b28406ccd3600b07d9a2b80acaa5102
|
data/lib/cache_store_redis.rb
CHANGED
@@ -116,7 +116,7 @@ class RedisCacheStore
|
|
116
116
|
def set(key, value, expires_in = 0)
|
117
117
|
k = build_key(key)
|
118
118
|
|
119
|
-
v = if value.nil?
|
119
|
+
v = if value.nil? || (value.is_a?(String) && value.empty?)
|
120
120
|
nil
|
121
121
|
else
|
122
122
|
serialize(value)
|
@@ -147,7 +147,7 @@ class RedisCacheStore
|
|
147
147
|
end
|
148
148
|
|
149
149
|
if !value.nil? && value.delete('\"').strip.empty?
|
150
|
-
value =
|
150
|
+
value = nil
|
151
151
|
else
|
152
152
|
value = deserialize(value) unless value.nil?
|
153
153
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vaughanbrittonsage
|
@@ -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.5.1
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: This is the redis cache_store implementation.
|