• Yossi Gottlieb's avatar
    Modules: add defrag API support. (#8149) · 63c1303c
    Yossi Gottlieb authored
    Add a new set of defrag functions that take a defrag context and allow
    defragmenting memory blocks and RedisModuleStrings.
    
    Modules can register a defrag callback which will be invoked when the
    defrag process handles globals.
    
    Modules with custom data types can also register a datatype-specific
    defrag callback which is invoked for keys that require defragmentation.
    The callback and associated functions support both one-step and
    multi-step options, depending on the complexity of the key as exposed by
    the free_effort callback.
    63c1303c
defrag.c 44.1 KB