diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2020-12-13 09:56:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-13 09:56:01 +0200 |
commit | 63c1303cfb60140dec6531ea2965fd709d316094 (patch) | |
tree | ddf21d459f35e233ab05e2257c8d0e11b3bbe091 /runtest-moduleapi | |
parent | ddd43b6bc3ea8560bae1b0eead730235ffe7eafd (diff) | |
download | redis-63c1303cfb60140dec6531ea2965fd709d316094.tar.gz |
Modules: add defrag API support. (#8149)
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.
Diffstat (limited to 'runtest-moduleapi')
-rwxr-xr-x | runtest-moduleapi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtest-moduleapi b/runtest-moduleapi index fdf60886f..da4c815da 100755 --- a/runtest-moduleapi +++ b/runtest-moduleapi @@ -29,4 +29,5 @@ $TCLSH tests/test_helper.tcl \ --single unit/moduleapi/blockedclient \ --single unit/moduleapi/getkeys \ --single unit/moduleapi/test_lazyfree \ +--single unit/moduleapi/defrag \ "${@}" |