class Redis

def type(key)

Returns:
  • (String) - `string`, `list`, `set`, `zset`, `hash` or `none`

Parameters:
  • key (String) --
def type(key)
  synchronize do |client|
    client.call [:type, key]
  end
end