Arguments
string
required
The key to decrement.
integer
required
The amount to decrement by.
Response
The value at the key after the decrementing.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
await redis.set("key", 6);
await redis.decrby("key", 4);
// returns 2
Decrement the integer value of a key by a given number.
await redis.set("key", 6);
await redis.decrby("key", 4);
// returns 2
Was this page helpful?