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

Function RM_DictReplace

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

Like RedisModule_DictReplaceC() but takes the key as a RedisModuleString. */

Source from the content-addressed store, hash-verified

6703
6704/* Like RedisModule_DictReplaceC() but takes the key as a RedisModuleString. */
6705int RM_DictReplace(RedisModuleDict *d, RedisModuleString *key, void *ptr) {
6706 return RM_DictReplaceC(d,key->ptr,sdslen(key->ptr),ptr);
6707}
6708
6709/* Return the value stored at the specified key. The function returns NULL
6710 * both in the case the key does not exist, or if you actually stored

Callers

nothing calls this directly

Calls 2

RM_DictReplaceCFunction · 0.85
sdslenFunction · 0.85

Tested by

no test coverage detected