Method: Redis#get

Defined in:
lib/redis.rb

#get(key) ⇒ String

Get the value of a key.

Parameters:

  • key (String)

Returns:

  • (String)

952
953
954
955
956
# File 'lib/redis.rb', line 952

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