MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / raxInsert

Function raxInsert

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

slotToKeyUpdateKeyCoreFunction · 0.85
streamDupFunction · 0.85
streamAppendItemFunction · 0.85
streamTrimFunction · 0.85
streamReplyWithRangeFunction · 0.85
streamCreateCGFunction · 0.85
streamLookupConsumerFunction · 0.85
xclaimCommandFunction · 0.85

Calls 1

raxGenericInsertFunction · 0.85

Tested by

no test coverage detected