Method: Redis::Commands::Strings#get

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

#get(key) ⇒ String

Get the value of a key.

Parameters:

  • key (String)

Returns:

  • (String)

190
191
192
# File 'lib/redis/commands/strings.rb', line 190

def get(key)
  send_command([:get, key])
end