lib/redis/store/marshalling.rb in redis-store-1.0.0.1 vs lib/redis/store/marshalling.rb in redis-store-1.1.0.rc
- old
+ new
@@ -7,9 +7,13 @@
def setnx(key, value, options = nil)
_marshal(value, options) { |value| super encode(key), encode(value), options }
end
+ def setex(key, expiry, value, options = nil)
+ _marshal(value, options) { |value| super encode(key), expiry, encode(value), options }
+ end
+
def get(key, options = nil)
_unmarshal super(key), options
end
def mget(*keys)