Skip to content

Releases

Rexyra v1.0.2

Choose a tag to compare

@github-actions github-actions released this 28 Nov 10:53
c981276

The zip download now comes with its configuration file, and that file lists every setting. Nothing changes for a server that is already set up: an existing rexyra.conf is left as it is.

Added

  • The zip download includes rexyra.conf, a configuration file to start from, so that nobody has to create one: start the server with rexyra-server.exe rexyra.conf. Before, the file had to be made first with --create-config. (The installer already wrote one.)

Changed

  • The configuration file the server writes lists every setting. The file from --create-config, which is also the one in the zip and the one the installer writes, used to hold a handful of settings. It now has all 31, grouped and each with a note on what it does: those given on the command line (and always the address, the port and the data folder) are set, and the rest are commented lines showing their defaults, ready to be uncommented and edited. Settings given to --create-config that it used to leave out, such as --databases or --save, are now written too. An existing rexyra.conf is not touched, by an upgrade or otherwise.
  • The guide to setting the zip download up as a Windows service by hand (docs/WINDOWS-SERVICE.md) is now a full step-by-step manual: unzipping, the folders, the configuration file, permissions, registering and starting the service, checking that it works, changing settings, upgrading and removing.

Download

For 64-bit Windows 10 and 11:

  • rexyra-v1.0.2-windows-x86_64.msi is the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.
  • rexyra-v1.0.2-windows-x86_64.zip contains rexyra-server.exe, a single self-contained executable to run yourself, with rexyra.conf, a configuration file to start from that lists every setting, the licence, the notices of the libraries it contains, and documentation.
File SHA-256
rexyra-v1.0.2-windows-x86_64.msi 23f7ab309ffd30a1d459b4d644e467a562e5b9dcaa1e2d67cb100d7705bc5cd6
rexyra-v1.0.2-windows-x86_64.zip 53e9a49d3520de81b86441a9cf6632bbff130a7b4803409a1c4385f83dae27c7

Neither file is code-signed. Windows SmartScreen may ask for confirmation the first time, and some antivirus products flag new unsigned programs on heuristics alone; compare the checksums above with Get-FileHash if in doubt, or build from source.

Rexyra v1.0.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 10:12
cd7cac2

A security release: upgrade from 1.0.0. Data files, settings and the Windows service are unchanged. The one thing a working script could notice is that getfenv, setfenv and newproxy are gone, as they are in Redis.

Security

Four ways a client that may run scripts or RESTORE could take the server down or reach beyond its own permissions. All four need a connection that is already allowed to run the command, which with the default settings means a program on the same machine.

  • Precompiled Lua chunks are no longer loaded. EVAL, loadstring and load accepted Lua bytecode, which Lua 5.1 runs without verifying it; a crafted chunk can corrupt the interpreter's memory. They now compile source text only and answer bytecode with the error Redis gives (unexpected symbol near 'char(27)').
  • A script can no longer change what later scripts see. One interpreter runs every client's scripts, and a script could replace a library function (string.upper = ...), a built-in (tostring = ..., _G.tonumber = ...), the metatable of strings or the metatable of the globals. The replacement then ran inside other clients' scripts, with their permissions. All of these now fail with Attempt to modify a readonly table, as in Redis 7, for scripts, functions and code they compile with loadstring or load; getfenv, setfenv and newproxy are gone, as in Redis. Compared with Redis 7.4 probe by probe; see COMPATIBILITY.md for the little that differs.
  • cmsgpack.unpack of deeply nested input no longer crashes the server. A long run of array or map headers overflowed the stack of the thread that runs commands. Nesting is now limited to 1,000 levels, with Redis's stack overflow error.
  • A RESTORE or FUNCTION RESTORE payload can no longer crash the server. A compressed string in the payload states the length it expands to, and that much memory was reserved before anything was checked: a 23-byte payload claiming 2^64 − 1 bytes stopped the process. The length is now checked against what the compressed bytes could expand to and against the 512 MB limit on strings, and a list or hash in a payload no longer has room reserved for more than 1,024 elements before they are read. The same applies to snapshot files.

Download

For 64-bit Windows 10 and 11:

  • rexyra-v1.0.1-windows-x86_64.msi is the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.
  • rexyra-v1.0.1-windows-x86_64.zip contains rexyra-server.exe, a single self-contained executable to run yourself, with the licence, the notices of the libraries it contains, and documentation.
File SHA-256
rexyra-v1.0.1-windows-x86_64.msi f31dcb37d73495cbd1117fe83ab210ee6fd015d471f9eaded0a663f4b461bbaf
rexyra-v1.0.1-windows-x86_64.zip 6b7e03fd2496a9b291aab6154075dfb110d1eb6e3466df3e830ab6b69e5764f5

Neither file is code-signed. Windows SmartScreen may ask for confirmation the first time, and some antivirus products flag new unsigned programs on heuristics alone; compare the checksums above with Get-FileHash if in doubt, or build from source.

Rexyra v1.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 10:29
03b1b78

The first stable release. From this version on, settings, data files, command-line options and the Windows service stay compatible within 1.x (see the README). New in it: client-side caching, COMMAND GETKEYSANDFLAGS with Redis's key specifications, and fixes that bring BGSAVE, BGREWRITEAOF and SUBSCRIBE in line with Redis. Every client library tested, StackExchange.Redis, redis-py, Jedis, Lettuce and go-redis, now passes its full suite apart from streams, HyperLogLog and geospatial commands, which Rexyra does not have.

Added

  • COMMAND GETKEYSANDFLAGS, which go-redis calls: the keys of a command line with how the command uses each (RW access delete, OW update, ...), as Redis 7.4 gives them, also for SET ... GET, BITFIELD, SORT ... STORE and a numkeys that is not a plain number, where Redis reads the arguments with a procedure of the command's own.
  • Key specifications in COMMAND INFO for every command, the same as Redis 7.4's. The ACL key checks, COMMAND GETKEYS and GETKEYSANDFLAGS all find keys from them, and tools/compare-command-info.py compares COMMAND INFO of every command, and GETKEYS and GETKEYSANDFLAGS of 276 command lines, with a Redis server, in RESP2 and RESP3.
  • Client-side caching: CLIENT TRACKING with every option (REDIRECT, BCAST, PREFIX, OPTIN, OPTOUT, NOLOOP), CLIENT CACHING, CLIENT GETREDIR and CLIENT TRACKINGINFO. Invalidations go out as RESP3 pushes, or as __redis__:invalidate messages to a RESP2 redirect target, with the same content, to the same connections and in the same order as in Redis 7.4, relative to replies and keyspace notifications; broadcast prefixes are batched once per pass of the execution loop. tracking-table-max-keys (configuration file, command line, CONFIG SET, CONFIG REWRITE), the t, B and R flags and redir in CLIENT LIST, and the tracking_* fields of INFO. Compared with Redis by a new tool, tools/rexyra-tracking. go-redis's and redis-py's client-side caches now work. Unused, it costs one test of a flag per write.

Changed

  • CONFIG SET maxmemory with a limit below the memory in use evicts at once, as in Redis, instead of at the next command.
  • HELLO, INFO (redis_version) and scripts (redis.REDIS_VERSION) report Redis 7.4.0 instead of 7.2.0: redis-py enables its client-side cache only for 7.4 or later, and Rexyra already has 7.4's hash field expiry.

Fixed

  • BGSAVE and BGREWRITEAOF inside MULTI are no longer refused: as in Redis, they reply that the save or the rewrite is scheduled, and it starts once the transaction is over. BGSAVE while a rewrite of the append-only file runs is refused with Redis's message, which suggests BGSAVE SCHEDULE, and BGSAVE SCHEDULE then schedules it.
  • SUBSCRIBE, PSUBSCRIBE and SSUBSCRIBE are refused with the OOM error when the memory limit is reached and nothing can be evicted, as in Redis, since a subscription takes memory. Unsubscribing still works.
  • COMMAND INFO reports the flags Redis 7.4 reports: movablekeys for SORT, SORT_RO, LMPOP, BLMPOP, ZMPOP, BZMPOP, SINTERCARD, ZINTERCARD, ZUNION, ZINTER, ZDIFF, ZUNIONSTORE, ZINTERSTORE and ZDIFFSTORE; Redis's order (write blocking fast for BZPOPMIN); none for containers such as CONFIG and OBJECT, whose subcommands carry them; loading and stale for ECHO, allow_busy for HELLO and QUIT; and no may_replicate on PUBLISH, SPUBLISH, EVAL, EVALSHA and FCALL, nor skip_monitor and skip_slowlog on AUTH and HELLO, which still stay out of the slow log. SSUBSCRIBE, SUNSUBSCRIBE and SPUBLISH have key positions, as in Redis, where their shard channels sit. The tips and subcommands are empty sets in RESP3, not arrays.
  • COMMAND GETKEYS follows Redis in the remaining cases: a command without keys is reported as such before a wrong number of arguments (ECHO), a subcommand is looked up (OBJECT ENCODING k, and Invalid command specified for one that does not exist), ZUNIONSTORE names its destination first, SORT finds the destination of its last STORE and skips the arguments of LIMIT, BY and GET, and a key count larger than the arguments there are, or one that is no number at all, is Invalid arguments specified for command (or no keys for EVAL and FCALL). ACL key checks see the same keys, so the destination of ZUNIONSTORE is the key an error names when both it and a source are denied, and for a key count that is not valid the keys checked are those Redis checks (none for EVAL s 3 a b, which then fails with its own error; a for EVAL s 1x a).

Download

For 64-bit Windows 10 and 11:

  • rexyra-v1.0.0-windows-x86_64.msi is the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.
  • rexyra-v1.0.0-windows-x86_64.zip contains rexyra-server.exe, a single self-contained executable to run yourself, with the licence, the notices of the libraries it contains, and documentation.
File SHA-256
rexyra-v1.0.0-windows-x86_64.msi e33b35560435178939d7ed67e5087e862d36ed99c9faa5e240f0456b1db549c4
rexyra-v1.0.0-windows-x86_64.zip f70bf8aaea88c62ea295a23129593d85f83562eb28c66a3321fc2ce5285e8be8

Neither file is code-signed. Windows SmartScreen may ask for confirmation the first time, and some antivirus products flag new unsigned programs on heuristics alone; compare the checksums above with Get-FileHash if in doubt, or build from source.

Rexyra v0.4.0

Rexyra v0.4.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Nov 06:45
c42fc9b

Rexyra is now tested with five client libraries (StackExchange.Redis, redis-py, Jedis, Lettuce and go-redis), and has what they turned up: expiry of single hash fields as in Redis 7.4, keyspace notifications, and MOVE, SWAPDB and COMMAND GETKEYS.

Added

  • Expiry of single hash fields (Redis 7.4): HEXPIRE, HPEXPIRE, HEXPIREAT, HPEXPIREAT, HTTL, HPTTL, HEXPIRETIME, HPEXPIRETIME and HPERSIST, with Redis's replies, errors and conditions (NX, XX, GT, LT). Expired fields disappear from every hash command and are reclaimed in the background like keys; a hash whose last field expires is deleted. Field TTLs are kept by RENAME, COPY, MOVE, SWAPDB, DUMP/RESTORE, snapshots (in Redis 7.4's RDB format, which Redis reads and writes) and the append-only file. INFO reports subexpiry and expired_subkeys, and OBJECT ENCODING listpackex.
  • MOVE, SWAPDB and COMMAND GETKEYS, which redis-py, Jedis and go-redis call. SWAPDB during a background save waits until the save has read the data, so the snapshot still has each database as it was.
  • Tests with the redis-py (8.1 and 5.3), Jedis (8.0 and 7.5), Lettuce (7.9 and 6.9) and go-redis (9.23 and 9.7) client libraries, run in CI: clients/README.md.
  • Keyspace notifications (notify-keyspace-events, in the configuration file, on the command line or with CONFIG SET, and kept by CONFIG REWRITE). Every command raises the events Redis 7.4 raises, with the same names and in the same order, including expired, evicted, keymiss (m) and new (n), inside transactions, scripts and functions and when a blocked client is served. Compared with Redis by a new tool, tools/rexyra-keyevents. Off, the default, it costs nothing measurable. Hash fields raise hexpire, hpersist and hexpired, as in Redis 7.4.
  • DEBUG SET-ACTIVE-EXPIRE 0|1, as in Redis, to stop the periodic deletion of expired keys in tests.
  • rexyra-bench ops, the throughput and latency of SET, GET and LPUSH on their own.

Changed

  • SORT ... STORE with BY or GET is written to the append-only file as the list it stored, so that a replay gives the same list even if a key or hash field it read had passed its TTL without having been removed yet.

Fixed

  • SCAN deletes the expired keys it comes across, as Redis does, instead of only leaving them out.
  • GETEX with an EXAT or PXAT time already past deletes the key at once, as Redis does, and logs a DEL.

Download

For 64-bit Windows 10 and 11:

  • rexyra-v0.4.0-windows-x86_64.msi is the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.
  • rexyra-v0.4.0-windows-x86_64.zip contains rexyra-server.exe, a single self-contained executable to run yourself, with the licence, the notices of the libraries it contains, and documentation.
File SHA-256
rexyra-v0.4.0-windows-x86_64.msi 4d7dd93f385e9b850537c11c4367297358a7a990ac99279f6be84d0ad1e07e81
rexyra-v0.4.0-windows-x86_64.zip 318051c135ae652f0cdf2d3312739b2fc05e25e030973b07eaffd622c9a1fa3f

Neither file is code-signed. Windows SmartScreen may ask for confirmation the first time, and some antivirus products flag new unsigned programs on heuristics alone; compare the checksums above with Get-FileHash if in doubt, or build from source.

Rexyra v0.3.0

Rexyra v0.3.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 21 Nov 16:39
1351a7c

Rexyra now has Pub/Sub, and settings changed while it runs can be saved with CONFIG REWRITE. It was tested with the StackExchange.Redis client library and for six hours under load with every reply checked (docs/benchmarks/soak).

Added

  • Pub/Sub: SUBSCRIBE, PSUBSCRIBE, SSUBSCRIBE, UNSUBSCRIBE, PUNSUBSCRIBE, SUNSUBSCRIBE, PUBLISH, SPUBLISH and PUBSUB, in RESP2 and RESP3, with channel permissions for ACL users and Redis's default output limit for subscribers that do not read. CLIENT LIST shows subscriptions and output waiting to be written, and INFO counts channels and patterns.
  • Tests with the StackExchange.Redis client library (versions 2.12 and 3.4), run in CI: clients/README.md.
  • DEBUG PANIC, behind the new enable-debug-command setting (no by default, as in Redis), to test what happens after an internal error.
  • CONFIG REWRITE, which writes the settings changed with CONFIG SET, and the users made with ACL SETUSER, to the configuration file, so that they survive a restart. As in Redis, comments, order and lines it does not know are kept; Windows paths are written as they are, without doubled backslashes.
  • Log rotation. When the log file reaches logfile-max-size (100 MB by default) it is renamed rexyra.1.log, the earlier ones move up a number, and a new file is started; logfile-max-files (5 by default) are kept and the oldest deleted. If another program holds the file so that it cannot be renamed, the log carries on in it and the server tries again later.

Changed

  • The server does not start if its data folder (dir) does not exist, or is a file, and says which folder in the log, on standard error and, for the service, in rexyra-startup-error.txt. Redis does the same. Before, it started anyway and every save failed. A Windows path in double quotes, where backslashes start escapes, was the usual way to get there.
  • Replies to the commands before a blocking command in the same pipeline are sent while it waits, as Redis does, instead of after it.
  • Licence. Rexyra is licensed under the Apache License, Version 2.0, instead of The Unlicense. Version 0.2.0 was released into the public domain and stays that way; later versions are under Apache-2.0.

Fixed

  • ACL SETUSER, and so a user line in the configuration file, accepts sanitize-payload and skip-sanitize-payload, as Redis does. Every ACL LIST line says sanitize-payload, so before this one could not be used as a user line.
  • COMMAND INFO lists every ACL category of a command, as Redis does (@read @string @fast for GET), instead of only its group. SORT and SORT_RO are now also in @set, @sortedset and @list, LASTSAVE in @admin, and EVAL_RO, EVALSHA_RO and FCALL_RO no longer in @read, which ACL CAT and user permissions follow. All 190 commands and all 21 categories were compared with Redis 7.4.
  • An internal error now gets the service restarted. If the thread that runs commands failed, the server used to shut down as if asked to, with exit code 0, so Windows did not restart the service. Now an internal error on any thread is logged and the process exits with code 70, which the service manager treats as a crash and restarts from the data on disk.

Download

For 64-bit Windows 10 and 11:

  • rexyra-v0.3.0-windows-x86_64.msi is the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.
  • rexyra-v0.3.0-windows-x86_64.zip contains rexyra-server.exe, a single self-contained executable to run yourself, with the licence, the notices of the libraries it contains, and documentation.
File SHA-256
rexyra-v0.3.0-windows-x86_64.msi 3ac1085812a7d51cee2d20741896739520e60083588144cc0f6fdf213b593551
rexyra-v0.3.0-windows-x86_64.zip 19fefae4e7420f6cb99fa91658938ba16d03b49743951cfa2d23ce021bc42de2

Neither file is code-signed. Windows SmartScreen may ask for confirmation the first time, and some antivirus products flag new unsigned programs on heuristics alone; compare the checksums above with Get-FileHash if in doubt, or build from source.

Rexyra v0.2.0

Rexyra v0.2.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 21:12
a7ee189

Rexyra can now be installed as a Windows service.

Added

  • An installer (.msi). Setup asks for the folder and the port, then installs and starts Rexyra as a Windows service under the LocalService account, with the settings, data and log in C:\ProgramData\Rexyra. An upgrade keeps the folder, the settings and the data; removing the program leaves the settings and the data in place.
  • A service mode, rexyra-server.exe --service, for running under the Windows service manager without a wrapper. The server reports its progress while it loads and saves, and writes a snapshot before it exits when the service is stopped or Windows shuts down.
  • logfile, to write the log to a file instead of standard error.
  • --create-config <PATH>, which writes a starting configuration file from the other options, unless the file exists.
  • THIRD-PARTY-NOTICES.txt in the zip and the installer, with the licence notices of the libraries built into the program.
  • A guide to running Rexyra as a Windows service: docs/WINDOWS-SERVICE.md.

Changed

  • Licence. Rexyra is now released into the public domain under The Unlicense: free for anyone to use for anything, without conditions. Earlier versions remain available under MIT or Apache-2.0.
  • The log is written without colour codes when it goes to a file or a pipe rather than a terminal, or when NO_COLOR is set.
  • The line logged at start-up includes the version.

Download

For 64-bit Windows 10 and 11:

  • rexyra-v0.2.0-windows-x86_64.msi is the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.
  • rexyra-v0.2.0-windows-x86_64.zip contains rexyra-server.exe, a single self-contained executable to run yourself, with the licence, the notices of the libraries it contains, and documentation.
File SHA-256
rexyra-v0.2.0-windows-x86_64.msi 4e42a989d07a2e2051ededb8021f29baae091a8abdd3c5853555d90ce77901ad
rexyra-v0.2.0-windows-x86_64.zip 6e3c63f9041838aa1ab90b2e9037f447988f1711f1bcbc7f1e41d86b84a2810c

Neither file is code-signed. Windows SmartScreen may ask for confirmation the first time, and some antivirus products flag new unsigned programs on heuristics alone; compare the checksums above with Get-FileHash if in doubt, or build from source.

Rexyra v0.1.0

Rexyra v0.1.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 20:16
2f8a0b9

The first public release: a Redis-compatible in-memory data server for Windows, written in Rust. It is a pre-release, tested with its own suite, redis-cli and redis-benchmark, and not yet used in production.

What is in it

  • Protocol: RESP2 and RESP3, inline commands and pipelining; 180 Redis commands.
  • Data types: strings and bitmaps, hashes, lists, sets and sorted sets, with expiry, blocking list and sorted-set commands, and SORT.
  • Transactions: MULTI / EXEC / WATCH.
  • Scripting: Lua 5.1 with EVAL and its family, the script cache, time limits and SCRIPT KILL, the cjson, cmsgpack, struct and bit libraries, and Redis Functions.
  • Persistence: RDB snapshots and an append-only file in Redis's own formats, interchangeable with Redis 7 in both directions; background saves and log rewrites that keep serving commands, without fork.
  • Memory limit: maxmemory with the eight Redis eviction policies, measured against what the process has allocated; background freeing for UNLINK and FLUSHALL ASYNC.
  • Access control: requirepass, ACL users with command, category and key-pattern rules, and protected mode.
  • Administration: INFO, CONFIG, CLIENT, SLOWLOG, a redis.conf-style configuration file.

Known limits

  • A single-instance server: no replication, cluster mode, Pub/Sub, streams, modules or TLS.
  • Client libraries have not been tested systematically yet.
  • Users created with ACL SETUSER are not saved across restarts; put them in the configuration file.
  • Everything known to differ from Redis is listed in docs/COMPATIBILITY.md, and what is not done in docs/ROADMAP.md.

Download

rexyra-v0.1.0-windows-x86_64.zip contains rexyra-server.exe, a single self-contained executable for 64-bit Windows 10 and 11, with the licences and documentation.

SHA-256: d7fb5a6dee27df94707016639b39d10bde316eb01f8ced85dec123f936f09765

The executable is not code-signed. Windows SmartScreen may ask for confirmation the first time it runs, and some antivirus products flag new unsigned programs on heuristics alone; compare the checksum above with Get-FileHash if in doubt, or build from source.