Skip to content

MOD-20230 Add support for JSON Path Expiration (JPE?) - #1728

Draft
galcohen-redislabs wants to merge 8 commits into
masterfrom
gal-20230-json-path-expiration
Draft

galcohen-redislabs wants to merge 8 commits into
masterfrom
gal-20230-json-path-expiration

Conversation

@galcohen-redislabs

Copy link
Copy Markdown
Contributor

Adds JSON.PEXPIREAT to record per-path deadlines for nonempty object-member chains. The command supports NX, XX, GT, and LT and returns one result per path. It does not expire values yet.

Deadlines are stored in timestamp order in optional JExp key 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 test on a clean checkout will need the missing path_expiration/tests.rs before this is ready to merge.

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.
@galcohen-redislabs galcohen-redislabs changed the title MOD-20230: Record JSON path expiration deadlines MOD-20230 Add support for JSON Path Expiration (JPE?) Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant