Redis & Caching (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What are the differences between `INCR`, `DECR`, and string commands?
junior LevelredisBasic
In Simple Words: Redis provides atomic operations that execute without race conditions:
INCR counter: Atomically increments an integer string by 1.INCRBY counter 5: Increments by an arbitrary step.SETNX key value("Set if Not eXists"): Only sets the key if it does not already exist. Foundation of distributed locking and deduplication.