Module: EventMachine::Protocols::Memcache

Defined in:
lib/em-synchrony/em-memcache.rb

Instance Method Summary collapse

Instance Method Details

#aget_hashObject


14
# File 'lib/em-synchrony/em-memcache.rb', line 14

alias :aget_hash :get_hash

#get_hash(*keys) ⇒ Object


15
16
17
18
# File 'lib/em-synchrony/em-memcache.rb', line 15

def get_hash(*keys)
  index = 0
  get(*keys).inject({}) { |h,v| h[keys[index]] = v; index += 1; h }
end