Method: Redis::Commands::Hashes#hget

Defined in:
lib/redis/commands/hashes.rb

#hget(key, field) ⇒ String

Get the value of a hash field.

Parameters:

  • key (String)
  • field (String)

Returns:

  • (String)
[View source] [View on GitHub]

74
75
76
# File 'lib/redis/commands/hashes.rb', line 74

def hget(key, field)
  send_command([:hget, key, field])
end