Description
Returns the string representation of the type of the value stored at key. The different types that can be returned are:string, list, set, zset, hash, and none.
Method Signature
Parameters
The key to get the type of
Return Value
The type of the key, one of:
"string"- String value"list"- List"set"- Set"zset"- Sorted set"hash"- Hash"none"- Key does not exist