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

Function raxInsert

app/redis-6.2.6/src/rax.c:904–906  ·  view source on GitHub ↗

Overwriting insert. Just a wrapper for raxGenericInsert() that will * update the element if there is already one for the same key. */

Source from the content-addressed store, hash-verified

902/* Overwriting insert. Just a wrapper for raxGenericInsert() that will
903 * update the element if there is already one for the same key. */
904int raxInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old) {
905 return raxGenericInsert(rax,s,len,data,old,1);
906}
907
908/* Non overwriting insert function: this if an element with the same key
909 * exists, the value is not updated and the function returns 0.

Callers 15

incrementErrorCountFunction · 0.85
linkClientFunction · 0.85
slotToKeyUpdateKeyFunction · 0.85
ACLCreateUserFunction · 0.85
ACLGetCommandIDFunction · 0.85
ACLLoadFromFileFunction · 0.85
RM_CreateTimerFunction · 0.85
RM_DictReplaceCFunction · 0.85
streamDupFunction · 0.85

Calls 1

raxGenericInsertFunction · 0.85

Tested by

no test coverage detected