Arguments
string
required
The key to get.
Response
The response is the value stored at the key or
null if the key doesn’t exist.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
type MyType = {
a: number;
b: string;
}
await redis.getdel<MyType>("key");
// returns {a: 1, b: "2"}
Return the value of the specified key and delete the key.
null if the key doesn’t exist.type MyType = {
a: number;
b: string;
}
await redis.getdel<MyType>("key");
// returns {a: 1, b: "2"}
Was this page helpful?