Generic

UNLINK

Removes the specified keys. A key is ignored if it does not exist.

Arguments

keysbody...string[]required

One or more keys to unlink.

Response

integerrequired

The number of keys that were unlinked.

Basic
await redis.unlink("key1", "key2");
Array
// in case you have an array of keysconst keys = ["key1", "key2"];await redis.unlink(...keys)
Loading search…