Skip to content

v0.2.3

Choose a tag to compare

@github-actions github-actions released this 19 Nov 02:58
· 12 commits to main since this release
Immutable release. Only release title and notes can be modified.

Added

  • Lua scripting: EVAL, EVALSHA, and SCRIPT LOAD|EXISTS|FLUSH, backed by LuaJIT 2.1 from the new vendor/luajit submodule. Scripts get KEYS, ARGV, and the redis.call, redis.pcall, redis.status_reply, and redis.error_reply helpers; io, os, dofile, loadfile, require, and load are removed. A write made through redis.call is 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, and MSETNX.
  • Key commands EXPIRETIME, PEXPIRETIME, COPY (with REPLACE), and OBJECT (ENCODING, REFCOUNT, IDLETIME, FREQ); connection command RESET.
  • List commands LREM, LTRIM, and LINSERT.
  • Hash commands HSETNX, HINCRBY, and HINCRBYFLOAT.

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-protocols still accepts TLSv1.2 for Redis config compatibility, but a value that excludes TLSv1.3 (such as "TLSv1.2" alone) is rejected at startup. Mutual TLS (tls-auth-clients yes or optional) works as before.
  • LuaJIT is built from the vendor/luajit submodule; the -Dlua-prefix option and the lookup of a system LuaJIT are gone.
  • zio updated to v0.20.1.
  • install-zig.sh bounds 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 the zig symlink is installed under the requested DEST instead of hardcoded /usr/local.
  • REDIS_COMPATIBILITY.md was 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, and GETSET no longer keep a previous TTL; Redis discards it unless the command opts in with KEEPTTL.
  • EXPIRE and PEXPIRE share one options parser, so both accept NX, XX, GT, and LT. EXPIRE previously 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 absolute PEXPIREAT or DEL commands, and a command that failed is no longer logged.
  • LuaJIT is compiled with LUAJIT_NO_UNWIND, so the static library no longer references _Unwind_* and libgcc_s symbols that Zig does not link on Linux. Zedis only calls Lua from Zig and catches errors with lua_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-prefix and -Dopenssl-static build 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-missing

Quick start

# Start server (listens on 127.0.0.1:6379 by default)
zedis

# Connect
redis-cli ping
# PONG

SET hello world
GET hello
# "world"