Method: Redis#hgetall

Defined in:
lib/redis.rb

#hgetall(key) ⇒ Hash<String, String>

Get all the fields and values in a hash.

Parameters:

  • key (String)

Returns:

  • (Hash<String, String>)


1986
1987
1988
1989
1990
# File 'lib/redis.rb', line 1986

def hgetall(key)
  synchronize do |client|
    client.call([:hgetall, key], &_hashify)
  end
end