Arguments
string
required
The key to get.
Response
The type of the key.One of
string | list | set | zset | hash | noneDocumentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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 | noneawait redis.set("key", "value");
const t = await redis.type("key");
console.log(t) // "string"
Was this page helpful?