Repository navigation
Releases
Rexyra v1.0.2
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 withrexyra-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-configthat it used to leave out, such as--databasesor--save, are now written too. An existingrexyra.confis 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.msiis the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.rexyra-v1.0.2-windows-x86_64.zipcontainsrexyra-server.exe, a single self-contained executable to run yourself, withrexyra.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
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,loadstringandloadaccepted 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 withAttempt to modify a readonly table, as in Redis 7, for scripts, functions and code they compile withloadstringorload;getfenv,setfenvandnewproxyare gone, as in Redis. Compared with Redis 7.4 probe by probe; see COMPATIBILITY.md for the little that differs. cmsgpack.unpackof 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'sstack overflowerror.- A
RESTOREorFUNCTION RESTOREpayload 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.msiis the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.rexyra-v1.0.1-windows-x86_64.zipcontainsrexyra-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
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 forSET ... GET,BITFIELD,SORT ... STOREand anumkeysthat is not a plain number, where Redis reads the arguments with a procedure of the command's own.- Key specifications in
COMMAND INFOfor every command, the same as Redis 7.4's. The ACL key checks,COMMAND GETKEYSandGETKEYSANDFLAGSall find keys from them, andtools/compare-command-info.pycomparesCOMMAND INFOof every command, andGETKEYSandGETKEYSANDFLAGSof 276 command lines, with a Redis server, in RESP2 and RESP3. - Client-side caching:
CLIENT TRACKINGwith every option (REDIRECT,BCAST,PREFIX,OPTIN,OPTOUT,NOLOOP),CLIENT CACHING,CLIENT GETREDIRandCLIENT TRACKINGINFO. Invalidations go out as RESP3 pushes, or as__redis__:invalidatemessages 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), thet,BandRflags andredirinCLIENT LIST, and thetracking_*fields ofINFO. 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 maxmemorywith 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
BGSAVEandBGREWRITEAOFinsideMULTIare no longer refused: as in Redis, they reply that the save or the rewrite is scheduled, and it starts once the transaction is over.BGSAVEwhile a rewrite of the append-only file runs is refused with Redis's message, which suggestsBGSAVE SCHEDULE, andBGSAVE SCHEDULEthen schedules it.SUBSCRIBE,PSUBSCRIBEandSSUBSCRIBEare refused with theOOMerror when the memory limit is reached and nothing can be evicted, as in Redis, since a subscription takes memory. Unsubscribing still works.COMMAND INFOreports the flags Redis 7.4 reports:movablekeysforSORT,SORT_RO,LMPOP,BLMPOP,ZMPOP,BZMPOP,SINTERCARD,ZINTERCARD,ZUNION,ZINTER,ZDIFF,ZUNIONSTORE,ZINTERSTOREandZDIFFSTORE; Redis's order (write blocking fastforBZPOPMIN); none for containers such asCONFIGandOBJECT, whose subcommands carry them;loadingandstaleforECHO,allow_busyforHELLOandQUIT; and nomay_replicateonPUBLISH,SPUBLISH,EVAL,EVALSHAandFCALL, norskip_monitorandskip_slowlogonAUTHandHELLO, which still stay out of the slow log.SSUBSCRIBE,SUNSUBSCRIBEandSPUBLISHhave key positions, as in Redis, where their shard channels sit. The tips and subcommands are empty sets in RESP3, not arrays.COMMAND GETKEYSfollows 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, andInvalid command specifiedfor one that does not exist),ZUNIONSTOREnames its destination first,SORTfinds the destination of its lastSTOREand skips the arguments ofLIMIT,BYandGET, and a key count larger than the arguments there are, or one that is no number at all, isInvalid arguments specified for command(or no keys forEVALandFCALL). ACL key checks see the same keys, so the destination ofZUNIONSTOREis 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 forEVAL s 3 a b, which then fails with its own error;aforEVAL s 1x a).
Download
For 64-bit Windows 10 and 11:
rexyra-v1.0.0-windows-x86_64.msiis the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.rexyra-v1.0.0-windows-x86_64.zipcontainsrexyra-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 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,HPEXPIRETIMEandHPERSIST, 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 byRENAME,COPY,MOVE,SWAPDB,DUMP/RESTORE, snapshots (in Redis 7.4's RDB format, which Redis reads and writes) and the append-only file.INFOreportssubexpiryandexpired_subkeys, andOBJECT ENCODINGlistpackex. MOVE,SWAPDBandCOMMAND GETKEYS, which redis-py, Jedis and go-redis call.SWAPDBduring 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 withCONFIG SET, and kept byCONFIG REWRITE). Every command raises the events Redis 7.4 raises, with the same names and in the same order, includingexpired,evicted,keymiss(m) andnew(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 raisehexpire,hpersistandhexpired, 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 ofSET,GETandLPUSHon their own.
Changed
SORT ... STOREwithBYorGETis 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
SCANdeletes the expired keys it comes across, as Redis does, instead of only leaving them out.GETEXwith anEXATorPXATtime already past deletes the key at once, as Redis does, and logs aDEL.
Download
For 64-bit Windows 10 and 11:
rexyra-v0.4.0-windows-x86_64.msiis the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.rexyra-v0.4.0-windows-x86_64.zipcontainsrexyra-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 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,SPUBLISHandPUBSUB, in RESP2 and RESP3, with channel permissions for ACL users and Redis's default output limit for subscribers that do not read.CLIENT LISTshows subscriptions and output waiting to be written, andINFOcounts 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 newenable-debug-commandsetting (noby default, as in Redis), to test what happens after an internal error.CONFIG REWRITE, which writes the settings changed withCONFIG SET, and the users made withACL 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 renamedrexyra.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, inrexyra-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 auserline in the configuration file, acceptssanitize-payloadandskip-sanitize-payload, as Redis does. EveryACL LISTline sayssanitize-payload, so before this one could not be used as auserline.COMMAND INFOlists every ACL category of a command, as Redis does (@read @string @fastforGET), instead of only its group.SORTandSORT_ROare now also in@set,@sortedsetand@list,LASTSAVEin@admin, andEVAL_RO,EVALSHA_ROandFCALL_ROno longer in@read, whichACL CATand 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.msiis the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.rexyra-v0.3.0-windows-x86_64.zipcontainsrexyra-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 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 theLocalServiceaccount, with the settings, data and log inC:\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.txtin 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_COLORis 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.msiis the installer. It asks for the folder and the port, and installs Rexyra as a Windows service.rexyra-v0.2.0-windows-x86_64.zipcontainsrexyra-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
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
EVALand its family, the script cache, time limits andSCRIPT KILL, thecjson,cmsgpack,structandbitlibraries, 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:
maxmemorywith the eight Redis eviction policies, measured against what the process has allocated; background freeing forUNLINKandFLUSHALL ASYNC. - Access control:
requirepass, ACL users with command, category and key-pattern rules, and protected mode. - Administration:
INFO,CONFIG,CLIENT,SLOWLOG, aredis.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 SETUSERare 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.