The default policy is noeviction, which means a full Redis returns errors on writes rather than evicting anything. noeviction is the right default for an instance holding queue…
A script runs to completion with nothing interleaved, which is exactly why it is useful and exactly why a slow one is an outage. The atomicity removes the…
Counting the intersection of two large sets meant building the intersection first, which allocates a set you immediately discard. The LIMIT is the part that changes what is…
Duplicating a key used to mean serialising it out and back in, which moved the whole value through the client for no reason. Staying server-side matters for a…
Redis stream ids are a millisecond timestamp plus a sequence number, which means a time range is a key range and needs no secondary index. Constructing an id…
An entry delivered to a consumer and never acknowledged stays in the pending list indefinitely, which is what makes recovery possible and what leaks if nothing sweeps it.…