Repository navigation
v0.2.1
Added
UNSUBSCRIBE [channel ...](with no arguments it unsubscribes from every channel), including Redis-compatibleunsubscribereplies with the remaining subscription count.
Fixed
-
Pub/sub messages were not delivered to idle subscribers: they sat in the mailbox until the subscriber sent another command. A per-client delivery coroutine now waits on a mailbox event and pushes messages as they arrive.
SUBSCRIBEreplies also report the cumulative channel count across commands. -
Memory exhaustion now behaves like Redis:
denyoomcommands are rejected before executing with-OOM command not allowed when used memory > 'maxmemory'., while reads and memory-freeing commands keep working. Previously clients got a generic-ERR while processing commandand the server logged a handler error. -
LPUSH/RPUSHno longer leave a partially applied list when an allocation fails; values are staged before the list is touched. -
Fixed a crash (
EXC_BAD_ACCESS) whenallkeys-lruevicted the single key being written while a command held a pointer to it. Eviction now runs at command boundaries, never mid-command. -
Memory that eviction frees is now reclaimed when the budget can't otherwise be met. Deleted entries stay pooled for reuse and the entry/slot arrays keep their high-water mark, so lowering
maxmemory(or surviving a write spike) used to leave the server rejecting every write until restart. The pool and oversized arrays are released at the command boundary instead.
Changed
- The zio runtime is now always configured with exactly one executor (
.exact(1)); theexecutorsconfig key was removed. - Removed the global store lock. With one executor and non-suspending command handlers, commands execute one at a time on one thread, so no lock is needed.
SAVEnow uses blocking I/O and the AOF queue uses a spinlock to keep that invariant. - The KV memory budget is soft during command execution (commands may overshoot
maxmemoryby one command, as in Redis) and is enforced before the next command.maxmemory 0disables the limit. CONFIG SET maxmemoryand themaxmemoryconfig-file key are supported at runtime, like Redis.
Removed
Install
Linux (x86_64)
curl -Lo zedis https://github.com/charlesfonseca/zedis/releases/download/v0.2.1/zedis-v0.2.1-linux-x86_64
chmod +x zedis && sudo mv zedis /usr/local/bin/Linux (ARM64)
curl -Lo zedis https://github.com/charlesfonseca/zedis/releases/download/v0.2.1/zedis-v0.2.1-linux-aarch64
chmod +x zedis && sudo mv zedis /usr/local/bin/macOS (Apple Silicon)
curl -Lo zedis https://github.com/charlesfonseca/zedis/releases/download/v0.2.1/zedis-v0.2.1-macos-arm64
chmod +x zedis && sudo mv zedis /usr/local/bin/macOS (Intel)
curl -Lo zedis https://github.com/charlesfonseca/zedis/releases/download/v0.2.1/zedis-v0.2.1-macos-x86_64
chmod +x zedis && sudo mv zedis /usr/local/bin/Verify checksums
sha256sum -c SHA256SUMSQuick start
# Start server (listens on 127.0.0.1:6379 by default)
zedis
# Connect
redis-cli ping
# PONG
SET hello world
GET hello
# "world"