X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7f4e28e75046104599a5d83c493fdfd78f93ab49..49128f0b9da725de992e427fa341a837bcc2991b:/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