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 43OK OKlocalhost:7379> TYPE kintlocalhost:7379> TYPE knnone