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