The Module data types provide a callback for defragmentation and this is called when the active defrag is in progress.
For modules to implement the defrag callback, we will need wrapper functions in the valkeymodule-rs SDK written around the following existing Module APIs:
The Module data types provide a callback for defragmentation and this is called when the active defrag is in progress.
For modules to implement the defrag callback, we will need wrapper functions in the valkeymodule-rs SDK written around the following existing Module APIs:
Higher priority:
Medium priority:
Lower priority:
Example Valkey Module in C implementing the defragmentation callback: https://github.com/valkey-io/valkey/blob/4593dc2f059661e1c4eb43bba025f68948344228/tests/modules/defragtest.c#L143-L193