redis_buddy 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/redis_buddy/cache_store.rb +3 -2
- metadata +2 -2
@@ -10,8 +10,9 @@ module ActiveSupport
|
|
10
10
|
def write(key, value, options = nil)
|
11
11
|
super do
|
12
12
|
method = options && options[:unless_exist] ? :set_unless_exists : :set
|
13
|
-
@data.send
|
14
|
-
|
13
|
+
returning @data.send(method, key, value, options) do
|
14
|
+
@data.expire key, options[:expire] if options && options[:expire]
|
15
|
+
end
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|