valkey/tests/modules
chenyangyang c1aaad06d8
Modules callbacks for lazy free effort, and unlink (#7912)
Add two optional callbacks to the RedisModuleTypeMethods structure, which is `free_effort`
and `unlink`. the `free_effort` callback indicates the effort required to free a module memory.
Currently, if the effort exceeds LAZYFREE_THRESHOLD, the module memory may be released
asynchronously. the `unlink` callback indicates the key has been removed from the DB by redis, and
may soon be freed by a background thread.

Add `lazyfreed_objects` info field, which represents the number of objects that have been
lazyfreed since redis was started.

Add `RM_GetTypeMethodVersion` API, which return the current redis-server runtime value of
`REDISMODULE_TYPE_METHOD_VERSION`. You can use that when calling `RM_CreateDataType` to know
which fields of RedisModuleTypeMethods are gonna be supported and which will be ignored.
2020-11-16 10:34:04 +02:00
..
auth.c Fixed some documentation 2019-12-17 07:49:21 +00:00
blockedclient.c Add Module API for version and compatibility checks (#7865) 2020-10-11 17:21:58 +03:00
blockonkeys.c Fix memory corruption in moduleHandleBlockedClients 2020-04-01 12:53:26 +03:00
commandfilter.c Make module tests pass with valgrind, and fix a leak in diskless load 2019-10-24 09:45:25 +03:00
datatype.c Improve RM_ModuleTypeReplaceValue() API. 2019-12-12 18:50:11 +02:00
fork.c Moved RMAPI_FUNC_SUPPORTED location such that it will be visible to modules (#8037) 2020-11-09 10:46:23 +02:00
getkeys.c Modules: fix RM_GetCommandKeys API. (#7901) 2020-10-11 18:10:55 +03:00
hooks.c Add Module API for version and compatibility checks (#7865) 2020-10-11 17:21:58 +03:00
infotest.c Add RM_ServerInfoGetFieldUnsigned 2019-11-04 08:50:29 +02:00
keyspace_events.c Add Module API for version and compatibility checks (#7865) 2020-10-11 17:21:58 +03:00
Makefile Modules callbacks for lazy free effort, and unlink (#7912) 2020-11-16 10:34:04 +02:00
misc.c Add Module API for version and compatibility checks (#7865) 2020-10-11 17:21:58 +03:00
propagate.c Modify the propagate unit test to show more cases. 2020-03-31 12:04:06 +02:00
scan.c Fix RM_ScanKey module api not to return int encoded strings 2020-06-14 11:20:15 +03:00
test_lazyfree.c Modules callbacks for lazy free effort, and unlink (#7912) 2020-11-16 10:34:04 +02:00
testrdb.c fix crash in module short read test 2019-12-02 19:17:35 +02:00
timer.c Add timer module API tests. (#8041) 2020-11-11 22:57:33 +02:00