redict/tests/unit/moduleapi
Yossi Gottlieb 907da0580b
Modules: Add RM_GetDetachedThreadSafeContext(). (#7886)
The main motivation here is to provide a way for modules to create a
single, global context that can be used for logging.

Currently, it is possible to obtain a thread-safe context that is not
attached to any blocked client by using `RM_GetThreadSafeContext`.
However, the attached context is not linked to the module identity so
log messages produced are not tagged with the module name.

Ideally we'd fix this in `RM_GetThreadSafeContext` itself but as it
doesn't accept the current context as an argument there's no way to do
that in a backwards compatible manner.
2020-10-11 16:11:31 +03:00
..
auth.tcl Add module APIs for custom authentication 2019-12-17 06:59:59 +00:00
blockedclient.tcl RM_ThreadSafeContextTryLock a non-blocking method for acquiring GIL (#7738) 2020-09-09 16:01:16 +03:00
blockonkeys.tcl Try to fix time-sensitive tests in blockonkey.tcl 2020-04-03 14:51:45 +03:00
commandfilter.tcl Add runtest-moduleapi with commandfilter coverage. 2019-03-24 12:03:03 +02:00
datatype.tcl Improve RM_ModuleTypeReplaceValue() API. 2019-12-12 18:50:11 +02:00
fork.tcl fix race in module api test for fork 2020-02-23 16:48:37 +02:00
getkeys.tcl Modules: add RM_GetCommandKeys(). 2020-10-11 16:04:14 +03:00
hooks.tcl Add Swapdb Module Event (#7804) 2020-09-20 13:36:20 +03:00
infotest.tcl Add RM_ServerInfoGetFieldUnsigned 2019-11-04 08:50:29 +02:00
keyspace_events.tcl see #7544, added RedisModule_HoldString api. (#7577) 2020-08-09 06:11:47 +03:00
misc.tcl Modules: Add RM_GetDetachedThreadSafeContext(). (#7886) 2020-10-11 16:11:31 +03:00
propagate.tcl Modules: Test MULTI/EXEC replication of RM_Replicate 2020-03-31 13:55:51 +03:00
scan.tcl Fix RM_ScanKey module api not to return int encoded strings 2020-06-14 11:20:15 +03:00
testrdb.tcl test infra - reduce disk space usage 2020-09-06 09:59:19 +03:00