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

Method clear

src/db.cpp:2718–2728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2716}
2717
2718size_t redisDb::clear(bool fAsync, void(callback)(void*))
2719{
2720 size_t removed = size();
2721 if (fAsync) {
2722 redisDbPersistentData::emptyDbAsync();
2723 } else {
2724 redisDbPersistentData::clear(callback);
2725 }
2726 expires_cursor = 0;
2727 return removed;
2728}
2729
2730void redisDbPersistentData::clear(void(callback)(void*))
2731{

Callers 15

emptyDbStructureFunction · 0.45
WorkerThreadMainMethod · 0.45
abandonThreadsMethod · 0.45
shutdownMethod · 0.45
enqueueMethod · 0.45
endWorkMethod · 0.45
freeTombstoneObjectsMethod · 0.45
flushQueuedKeysMethod · 0.45
abortMethod · 0.45
readSyncBulkPayloadRdbFunction · 0.45
replicationCacheMasterFunction · 0.45
configSetCommandFunction · 0.45

Calls 3

dictEmptyFunction · 0.85
dictReleaseFunction · 0.70
dictCreateFunction · 0.70

Tested by 8

generate_gbMethod · 0.36
TEST_FFunction · 0.36
releaseMethod · 0.36
ClearTestPartResultsMethod · 0.36
ClearMethod · 0.36
InitGoogleTestImplFunction · 0.36
receiveMethod · 0.36