Method: Redis::Store::Serialization#mset

Defined in:
lib/redis/store/serialization.rb

#mset(*args) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/redis/store/serialization.rb', line 28

def mset(*args)
  options = args.pop if args.length.odd?
  updates = []
  args.each_slice(2) do |(key, value)|
    updates << encode(key)
    _marshal(value, options) { |v| updates << encode(v) }
  end
  super(*updates)
end