Generic
TYPE
Get the type of a key.
Arguments
keybodystringrequired
The key to get.
Response
stringrequired
The type of the key.
One of string | list | set | zset | hash | none
Example
await redis.set("key", "value");const t = await redis.type("key");console.log(t) // "string"