2 ms·
Redis has SETEX that will set if not existing. Can be used as a lock.
by djbusby 3y ago
Redis has SETEX that will set if not existing. Can be used as a lock.
- kroolik 3y agoTrue, generic test-and-set ops can be used. But what about if there is already a request in-flight? Do you wait or fail? What is the experience working with either? What is the experience invalidation the cache key? And similar other questions :) So more practical than theoretical side to idempotency