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

Function dictDelete

src/dict.cpp:756–758  ·  view source on GitHub ↗

Remove an element, returning DICT_OK on success or DICT_ERR if the * element was not found. */

Source from the content-addressed store, hash-verified

754/* Remove an element, returning DICT_OK on success or DICT_ERR if the
755 * element was not found. */
756int dictDelete(dict *ht, const void *key) {
757 return dictGenericDelete(ht,key,0) ? DICT_OK : DICT_ERR;
758}
759
760/* Remove an element from the table, but without actually releasing
761 * the key, value and dictionary entry. The dictionary entry is returned

Callers 15

syncDeleteMethod · 0.70
removeCachedValueMethod · 0.70
pubsubUnsubscribeChannelFunction · 0.70
pubsubUnsubscribePatternFunction · 0.70
eraseMethod · 0.70
latencyResetEventFunction · 0.70
dictTestFunction · 0.70
clusterResetFunction · 0.70
freeClusterNodeFunction · 0.70
clusterRenameNodeFunction · 0.70
clusterBlacklistCleanupFunction · 0.70
migrateGetSocketFunction · 0.70

Calls 1

dictGenericDeleteFunction · 0.85

Tested by

no test coverage detected