Repository navigation
v0.2.4
·
9 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Added
- Sets:
SADD,SREM,SMEMBERS,SCARD, andSISMEMBER, backed by a newsetvalue type. AOF replay and rewrites rebuild a set withSADD, including its TTL. - Sorted sets:
ZADD(NX,XX,GT,LT,CH),ZINCRBY,ZREM,ZREMRANGEBYSCORE,ZCARD,ZSCORE,ZRANGE(BYSCORE,REV,LIMIT,WITHSCORES),ZREVRANGE,ZRANGEBYSCORE, andZREVRANGEBYSCORE. A member-to-score map answers score lookups while an array ordered by (score, member) serves ranks and ranges; AOF rewrites emitZADDwith shortest round-tripping scores. - Blocking list commands
BLPOP,BRPOP, andBLMOVE, plus non-blockingLMOVEandRPOPLPUSH. Timeouts are decimal seconds, with0waiting forever. A blocked client parks its coroutine outside the command path: earlier pipelined replies are flushed first, nothing is logged to the AOF while parked, and a push, list move,RENAME, orCOPYon a watched key wakes it to re-check. InsideMULTI, in pub/sub mode, and during AOF replay the same commands run non-blocking, which is what keeps replays deterministic. - The Redis primitives Sidekiq needs for queues, retries, and schedules: lists with blocking pops and moves, sets, sorted sets,
MULTI/EXEC, andINFO.
Changed
- RDB snapshots now load at startup when
appendonlyisno. The boot path followsappendonlyinstead of always trying the AOF, and reads the configureddbfilename(it previously looked for a hardcodedtest.rdb). The RDB writer round-trips strings, lists, hashes, sets, and sorted sets with their TTLs, andSAVErefuses a dataset holding a time series, bloom filter, or search index instead of writing a snapshot that cannot be loaded. TYPE,SCAN TYPE, andOBJECT ENCODINGnow recognizehash,set, andzset.- New commands participate in the memory gate (
denyoom), the read-only classification used by command timeouts, andCOMMANDkey specs. REDIS_COMPATIBILITY.mdmarks sets, sorted sets, blocking list commands, and list moves as implemented, anddocs/server-architecture.mddocuments the blocked-client model.
Fixed
- Startup no longer ignores
appendonlyor silently skips a snapshot: it loads the AOF when it is enabled and the RDB otherwise, and refuses to start when that file cannot be loaded instead of serving an empty dataset. SCAN TYPE hashmatches hashes; previously only strings, lists, and module types were recognized.LMOVEandRPOPLPUSHrelink the moved list node instead of reallocating it, so a failure after the pop cannot drop the element.- Blocking and sorted-set errors now use Redis' messages:
ERR timeout is not a float or out of range,ERR timeout is negative,ERR min or max is not a float, andERR resulting score is not a number (NaN).
Install
Linux (x86_64)
curl -Lo zedis https://github.com/barddoo/zedis/releases/download/v0.2.4/zedis-v0.2.4-linux-x86_64
chmod +x zedis && sudo mv zedis /usr/local/bin/Linux (ARM64)
curl -Lo zedis https://github.com/barddoo/zedis/releases/download/v0.2.4/zedis-v0.2.4-linux-aarch64
chmod +x zedis && sudo mv zedis /usr/local/bin/Verify checksums
curl -LO https://github.com/barddoo/zedis/releases/download/v0.2.4/SHA256SUMS
curl -LO https://github.com/barddoo/zedis/releases/download/v0.2.4/zedis-v0.2.4-linux-x86_64
sha256sum -c SHA256SUMS --ignore-missingQuick start
# Start server (listens on 127.0.0.1:6379 by default)
zedis
# Connect
redis-cli ping
# PONG
SET hello world
GET hello
# "world"