Skip to content

[BUG] Low-level key module APIs don't send keyspace notifications #4592

Description

@murphyjacob4

Describe the bug

A module that uses a low-level key API like VM_DeleteKey won't emit keyspace notifications.

Search and client-side caching need keyspace notifications or they will desynchronize from the datastore.

To reproduce

Load a custom module that calls VM_DeleteKey, load ValkeySearch, index a key and then trigger VM_DeleteKey, see that ValkeySearch desyncs.

Expected behavior

Keyspace notifications need to be emitted for every keyspace change, regardless of the reason.

Additional information

I believe this is just an oversight. But if you have a reason to avoid the keyspace notifications, please share.

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions