TYPE
Syntax
Section titled “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
Section titled “Examples”localhost:7379> SET k 43OKlocalhost:7379> TYPE kOK intlocalhost:7379> TYPE knOK none