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

Function raxTryInsert

rax.c:1094–1096  ·  view source on GitHub ↗

Non overwriting insert function: this if an element with the same key * exists, the value is not updated and the function returns 0. * This is a just a wrapper for raxGenericInsert(). */

Source from the content-addressed store, hash-verified

1092 * exists, the value is not updated and the function returns 0.
1093 * This is a just a wrapper for raxGenericInsert(). */
1094int raxTryInsert(rax *rax, unsigned char *s, size_t len, void *data, void **old) {
1095 return raxGenericInsert(rax,s,len,data,old,0);
1096}
1097
1098/* Find a key in the rax, returns raxNotFound special void pointer value
1099 * if the item was not found, otherwise the value associated with the

Callers

nothing calls this directly

Calls 1

raxGenericInsertFunction · 0.85

Tested by

no test coverage detected