Repository navigation
v0.2.3
·
12 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Added
- Lua scripting:
EVAL,EVALSHA, andSCRIPT LOAD|EXISTS|FLUSH, backed by LuaJIT 2.1 from the newvendor/luajitsubmodule. Scripts getKEYS,ARGV, and theredis.call,redis.pcall,redis.status_reply, andredis.error_replyhelpers;io,os,dofile,loadfile,require, andloadare removed. A write made throughredis.callis logged to the AOF as the command it ran, with absolute TTLs, so a script's effects survive a restart; a call that replied with an error is not logged. - String commands
GETEX,GETDEL,GETRANGE,SUBSTR,SETRANGE,PSETEX, andMSETNX. - Key commands
EXPIRETIME,PEXPIRETIME,COPY(withREPLACE), andOBJECT(ENCODING,REFCOUNT,IDLETIME,FREQ); connection commandRESET. - List commands
LREM,LTRIM, andLINSERT. - Hash commands
HSETNX,HINCRBY, andHINCRBYFLOAT.
Changed
- TLS is now provided by ztls, with AWS-LC built by the Zig build system, replacing the OpenSSL glue and removing the system OpenSSL dependency. The native ztls engine speaks TLS 1.3 only:
tls-protocolsstill acceptsTLSv1.2for Redis config compatibility, but a value that excludesTLSv1.3(such as"TLSv1.2"alone) is rejected at startup. Mutual TLS (tls-auth-clients yesoroptional) works as before. - LuaJIT is built from the
vendor/luajitsubmodule; the-Dlua-prefixoption and the lookup of a system LuaJIT are gone. - zio updated to v0.20.1.
install-zig.shbounds mirror downloads (connect timeout, and a mirror that delivers under 100 KiB/s for 15 s is skipped) so a stalled mirror cannot hang CI, and thezigsymlink is installed under the requestedDESTinstead of hardcoded/usr/local.REDIS_COMPATIBILITY.mdwas rebuilt from the registered command table: new string, list, hash, and key commands, Bloom filters,TS.RANGE, and partial-coverage notes are reflected, and the unregistered FT commands are documented as unsupported.
Fixed
SET,MSET, andGETSETno longer keep a previous TTL; Redis discards it unless the command opts in withKEEPTTL.EXPIREandPEXPIREshare one options parser, so both acceptNX,XX,GT, andLT.EXPIREpreviously ignored those options. Both now reject non-integer TTLs and report multiplication overflow under their own command name.- AOF logging of TTL-carrying commands (
SET,SETEX,PSETEX,GETEX,EXPIRE,PEXPIRE) writes the resulting state as absolutePEXPIREATorDELcommands, and a command that failed is no longer logged. - LuaJIT is compiled with
LUAJIT_NO_UNWIND, so the static library no longer references_Unwind_*andlibgcc_ssymbols that Zig does not link on Linux. Zedis only calls Lua from Zig and catches errors withlua_pcall, so the DWARF unwinder is not needed. - LuaJIT's low-address image base is applied on x86_64 macOS only; on arm64 it produced a malformed Mach-O that the kernel killed at launch.
- CRC64 now uses slicing-by-8 tables instead of a byte-at-a-time loop, speeding up RDB checksums.
Removed
- The OpenSSL TLS backend (
src/app/openssl_glue.c,src/app/openssl_glue.h) and the-Dopenssl-prefixand-Dopenssl-staticbuild options.
Install
Linux (x86_64)
curl -Lo zedis https://github.com/barddoo/zedis/releases/download/v0.2.3/zedis-v0.2.3-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.3/zedis-v0.2.3-linux-aarch64
chmod +x zedis && sudo mv zedis /usr/local/bin/Verify checksums
curl -LO https://github.com/barddoo/zedis/releases/download/v0.2.3/SHA256SUMS
curl -LO https://github.com/barddoo/zedis/releases/download/v0.2.3/zedis-v0.2.3-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"