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

Function dbDelete

src/db.cpp:523–526  ·  view source on GitHub ↗

This is a wrapper whose behavior depends on the Redis lazy free * configuration. Deletes the key synchronously or asynchronously. */

Source from the content-addressed store, hash-verified

521/* This is a wrapper whose behavior depends on the Redis lazy free
522 * configuration. Deletes the key synchronously or asynchronously. */
523int dbDelete(redisDb *db, robj *key) {
524 return g_pserver->lazyfree_lazy_server_del ? dbAsyncDelete(db,key) :
525 dbSyncDelete(db,key);
526}
527
528/* Prepare the string object stored at 'key' to be modified destructively
529 * to implement commands like SETBIT or APPEND.

Callers 15

renameGenericCommandFunction · 0.85
moveCommandFunction · 0.85
copyCommandFunction · 0.85
delKeysInSlotFunction · 0.85
restoreCommandFunction · 0.85
migrateCommandFunction · 0.85
sortCommandFunction · 0.85
hdelCommandFunction · 0.85
georadiusGenericFunction · 0.85
zremCommandFunction · 0.85
zremrangeGenericCommandFunction · 0.85

Calls 2

dbAsyncDeleteFunction · 0.85
dbSyncDeleteFunction · 0.85

Tested by

no test coverage detected