Skip to content

TYPE

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 and hash.

Syntax

TYPE key

Return

Simple string reply: type of key, or none when key does not exist.