Redis::Store::Marshalling

Public Instance Methods

get(key, options = nil) click to toggle source
# File lib/redis/store/marshalling.rb, line 16
def get(key, options = nil)
  _unmarshal super(key), options
end
mget(*keys) click to toggle source
# File lib/redis/store/marshalling.rb, line 20
def mget(*keys)
  options = keys.flatten.pop if keys.flatten.last.is_a?(Hash)
  super(*keys).map do |result|
    _unmarshal result, options
  end
end
set(key, value, options = nil) click to toggle source
# File lib/redis/store/marshalling.rb, line 4
def set(key, value, options = nil)
  _marshal(value, options) { |value| super encode(key), encode(value), options }
end
setex(key, expiry, value, options = nil) click to toggle source
# File lib/redis/store/marshalling.rb, line 12
def setex(key, expiry, value, options = nil)
  _marshal(value, options) { |value| super encode(key), expiry, encode(value), options }
end
setnx(key, value, options = nil) click to toggle source
# File lib/redis/store/marshalling.rb, line 8
def setnx(key, value, options = nil)
  _marshal(value, options) { |value| super encode(key), encode(value), options }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.