Determine the type stored at key.
Parameters:
Returns:
string, list, set, zset, hash or none
string
list
set
zset
hash
none
568 569 570 571 572
# File 'lib/redis.rb', line 568 def type(key) synchronize do |client| client.call([:type, key]) end end