Repository navigation
MOD-20230 Add support for JSON Path Expiration (JPE?) - #1728
Draft
galcohen-redislabs wants to merge 8 commits into
Draft
galcohen-redislabs wants to merge 8 commits into
galcohen-redislabs wants to merge 8 commits into
Conversation
Describe the new JSON.PEXPIREAT command
…module now calls it directly in production path_expiration.rs will use it to encode and decode the path-expiration metadata as CBOR during RDB save and load.
Also dropped the confusing complexity from the commands.json
…use the module now calls it directly in production" This reverts commit 388d920.
Replace the prototype CBOR tuples with named entries. Persist each deadline and its path segments without changing the JSON value format.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
JSON.PEXPIREATto record per-path deadlines for nonempty object-member chains. The command supportsNX,XX,GT, andLTand returns one result per path. It does not expire values yet.Deadlines are stored in timestamp order in optional
JExpkey metadata and persisted with Redis RDB primitives. The JSON document encoding stays at v5.Draft status: the dedicated tests are intentionally local for now. The local workspace tests pass with those files present;
cargo teston a clean checkout will need the missingpath_expiration/tests.rsbefore this is ready to merge.