Skip to content

TYPE

Syntax

TYPE key

TYPE returns the type of the value stored at a specified key. The type can be one of the following:

  • string
  • int

Returns “none” if the key does not exist.

Examples

localhost:7379> SET k 43
OK OK
localhost:7379> TYPE k
int
localhost:7379> TYPE kn
none