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

Function setKey

src/db.cpp:421–423  ·  view source on GitHub ↗

Common case for genericSetKey() where the TTL is not retained. */

Source from the content-addressed store, hash-verified

419
420/* Common case for genericSetKey() where the TTL is not retained. */
421void setKey(client *c, redisDb *db, robj *key, robj *val) {
422 genericSetKey(c,db,key,val,0,1);
423}
424
425/* Return a random key, in form of a Redis object.
426 * If there are no keys, NULL is returned.

Callers 10

sortCommandFunction · 0.85
georadiusGenericFunction · 0.85
sinterGenericCommandFunction · 0.85
sunionDiffGenericCommandFunction · 0.85
getsetCommandFunction · 0.85
msetGenericCommandFunction · 0.85
cronCommandFunction · 0.85
bitopCommandFunction · 0.85

Calls 1

genericSetKeyFunction · 0.85

Tested by

no test coverage detected