X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3c910136c1050ce3943c63201eedb7e940652f38..5436146c8dcd95c5ef3809f2830fb9c08edc4177:/doc/TypeCommand.html diff --git a/doc/TypeCommand.html b/doc/TypeCommand.html index 3d30a991..45900422 100644 --- a/doc/TypeCommand.html +++ b/doc/TypeCommand.html @@ -26,13 +26,15 @@
-

TYPE _key_

+ #sidebar GenericCommandsSidebar

TYPE _key_

Time complexity: O(1)
Return the type of the value stored at key in form of astring. The type can be one of "none", "string", "list", "set"."none" is returned if the key does not exist.

Return value

Status code reply, specifically:

 "none" if the key does not exist
 "string" if the key contains a String value
 "list" if the key contains a List value
 "set" if the key contains a Set value
+"zset" if the key contains a Sorted Set value
+"hash" if the key contains a Hash value
 

See also