type MyType = {
    a: number;
    b: string;
}
await redis.getdel<MyType>("key");
// returns {a: 1, b: "2"}

Arguments

key
string
required

The key to get.

Response

The response is the value stored at the key or null if the key doesn’t exist.

type MyType = {
    a: number;
    b: string;
}
await redis.getdel<MyType>("key");
// returns {a: 1, b: "2"}