Get the type of a key.
await redis.set("key", "value"); const t = await redis.type("key"); console.log(t) // "string"
The key to get.
The type of the key.
One of string | list | set | zset | hash | none
string
list
set
zset
hash
none
Was this page helpful?