MCPcopy Create free account
hub / github.com/antirez/ds4 / raxInsert

Function raxInsert

rax.c:1087–1089  ·  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

1085/* Overwriting insert. Just a wrapper for raxGenericInsert() that will
1086 * update the element if there is already one for the same key. */
1087int raxInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old) {
1088 return raxGenericInsert(rax,s,len,data,old,1);
1089}
1090
1091/* Non overwriting insert function: this if an element with the same key
1092 * exists, the value is not updated and the function returns 0.

Callers 2

tool_memory_put_lockedFunction · 0.85

Calls 1

raxGenericInsertFunction · 0.85

Tested by

no test coverage detected