Arguments
string
required
The key to increment.
Response
The value at the key after the incrementing.
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.incr("key");
// returns 7
Increment the integer value of a key by one
await redis.set("key", 6);
await redis.incr("key");
// returns 7
Was this page helpful?