Skip to content

TYPE

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.

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