Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for post notification jobs and before delete events #1050

Open
wants to merge 3 commits into
base: 1.2
Choose a base branch
from

Conversation

MeirShpilraien
Copy link
Collaborator

@MeirShpilraien MeirShpilraien commented Nov 6, 2023

The PR adds support for the following new events:

  • before_deleted
  • before_expired
  • before_evicted
  • before_overwritten

Notice: it is forbiden to perform any write operation inside those notification (and in general, inside any notification). To perform writes operations, use the new registerPostNotificationJob API describe bellow.

The PR also add support for post notification job API. The new API allows to register a post notification job using the registerPostNotificationJob function, the function gets a single callable object and calls it atomically when it is safe to perform a write operation.

Other changes introduce in the PR:

  • Update the redismodule.h to latest version (v7.2)
  • Small tests adjustments
  • Added CI run on Redis v7.2.3

The PR adds support for the following new events:

* `before_deleted`
* `before_expired`
* `before_evicted`
* `before_overwritten`

**Notice**: it is forbiden to perform any write operation inside those notification (and in general, inside any notification). To perform writes operations, use the new `registerPostNotificationJob` API describe bellow.

The PR also add support for post notification job API. The new API allows to register a post notification job using the `registerPostNotificationJob` function, the function gets a single callback object and calls atomically when it is safe to perform a write operation.

Other changes introduce in the PR:
* Update the `redismodule.h` to latest version (v7.2)
* Small tests adjustments
* Added CI run on Redis v7.2.3
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.

None yet

1 participant