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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96ba1e835124c33e0710cece05446beee7524ce6
4
- data.tar.gz: aaa042edd84cb9a48f31181c8e79d68155a9654a
3
+ metadata.gz: 3e668efa97480b84d6fd083fb4bba878e6b958c2
4
+ data.tar.gz: 33cbb65305f543be4e1149e787869143d010f6a7
5
5
  SHA512:
6
- metadata.gz: d0da0ed92584b034c17602fe8d340e208a1a488d8ab3c7049ed84f0466c4310ad0a65ce6a9d5d2f63cfcd03a5da07c525c860f69a36c1195f80381fad2c5d48d
7
- data.tar.gz: d74dabe694ea1536f771f0fe4008503d1130de01ff8c0767c37d691a86656743b2e62768935d36814d05765d24985c7836e0a9bda8903f25036b90fab17bab9e
6
+ metadata.gz: 550996847aaeaff5dce1cf92e87b6aa028296657b7d4d85c7e85a0f4fd23077eb43dca0149905c80eab294ecc9534fb7bc8fc30ba6aa7ef0260c006e6cde1379
7
+ data.tar.gz: dc9ff39218493ffb3d628166de7d8596345be3a3c4515c10c346eb2eb9058832ec833e0cbd5e3a24a7c8a6e6583bfc040b28406ccd3600b07d9a2b80acaa5102
@@ -1,3 +1,3 @@
1
1
  module CacheStoreRedis
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
@@ -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 = value.delete('\"')
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.2
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.6.13
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.