Method: Redis#hget

Defined in:
lib/redis.rb

#hget(key, field) ⇒ String

Get the value of a hash field.

Parameters:

  • key (String)
  • field (String)

Returns:

  • (String)

2190
2191
2192
2193
2194
# File 'lib/redis.rb', line 2190

def hget(key, field)
  synchronize do |client|
    client.call([:hget, key, field])
  end
end