TYPE
Reports the value type stored at a key.
Keys & expiration · Example verified
Syntax covered here
TYPE keyA key created with SET is identified as a string.
Tested example & replies
Requests below run in order against an empty database. Each connection authenticates with the fixture password first. Quoted values are strings; null is a nil reply; arrays preserve RESP order.
# connection: default
> SET sample value
"OK"
# connection: default
> TYPE sample
"string"