Skip to content

Glossary: Redis and Caching

INCR

Also written: INCRBY, DECR

An atomic command that adds 1 to a number stored in a key and returns the new value. A missing key counts as 0. `INCRBY` adds any amount and `DECR` subtracts 1.

Where the book teaches it

Related terms

AtomicString