MCPcopy Create free account
hub / github.com/F-Stack/f-stack / moduleNotifyKeyUnlink

Function moduleNotifyKeyUnlink

app/redis-6.2.6/src/module.c:8385–8393  ·  view source on GitHub ↗

When a module key is deleted (in dbAsyncDelete/dbSyncDelete/dbOverwrite), it * will be called to tell the module which key is about to be released. */

Source from the content-addressed store, hash-verified

8383/* When a module key is deleted (in dbAsyncDelete/dbSyncDelete/dbOverwrite), it
8384* will be called to tell the module which key is about to be released. */
8385void moduleNotifyKeyUnlink(robj *key, robj *val) {
8386 if (val->type == OBJ_MODULE) {
8387 moduleValue *mv = val->ptr;
8388 moduleType *mt = mv->type;
8389 if (mt->unlink != NULL) {
8390 mt->unlink(key,mv->value);
8391 }
8392 }
8393}
8394
8395/* --------------------------------------------------------------------------
8396 * Modules API internals

Callers 3

dbAsyncDeleteFunction · 0.85
dbOverwriteFunction · 0.85
dbSyncDeleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected