Added
- Embedded Lua 5.1 Scripting (
mlua vendored Lua 5.1):
EVAL, EVALSHA, EVAL_RO, EVALSHA_RO, SCRIPT LOAD, SCRIPT EXISTS, SCRIPT FLUSH with SHA1-cached compiled Lua functions and exact NOSCRIPT errors for ioredis.
- Full Redis Lua sandbox globals: binary-safe
KEYS/ARGV, redis.call, redis.pcall, redis.status_reply, redis.error_reply, redis.sha1hex, redis.log, cjson, cmsgpack (rmpv), and bit.
- Exact Redis Lua ↔ RESP conversions executing atomically inside the active PostgreSQL SPI transaction.
- Redis Streams (
pg_redis_streams):
XADD (monotonic *, <ms>-*, <ms>-<seq>, NOMKSTREAM, MAXLEN [~|=], MINID), XTRIM, XLEN, XRANGE, XREVRANGE, XDEL, and XREAD [COUNT] [BLOCK] STREAMS (including $ cursors).
- Cooperative Blocking Operations (
KeyNotifier):
- Async non-polling
BZPOPMIN, BZPOPMAX, BLPOP, BRPOP, and XREAD BLOCK woken immediately after PostgreSQL transaction commits.
- Redis Sets (
pg_redis_sets):
SADD, SREM, SMEMBERS, SISMEMBER, SCARD, SPOP.
- BullMQ 5.13.0 / Medusa Command Parity:
- Added
ZPOPMIN, ZPOPMAX, ZREMRANGEBYRANK, ZREMRANGEBYSCORE, LTRIM, LPOS, RPOPLPUSH, LMOVE, RENAME, and maxmemory_policy:noeviction in INFO and CONFIG GET.
- Added PostgreSQL extension upgrade script
sql/pg_redis_core--0.1.0--0.2.0.sql.
- Added end-to-end Dockerized
bullmq@5.13.0 integration suite (tests/clients/bullmq).
Docker Image (Multi-Arch: linux/amd64, linux/arm64)
docker pull ghcr.io/megacoderkim/pg2redis:v0.2.0
Documentation
https://megacoderkim.github.io/pg2redis/