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.
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.