MCPcopy Create free account
hub / github.com/Tencent/MMKV / removeValueForKey

Method removeValueForKey

Core/MMKV.cpp:1122–1135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1120}
1121
1122bool MMKV::removeValueForKey(MMKVKey_t key) {
1123 if (isKeyEmpty(key)) {
1124 return false;
1125 }
1126 if (isReadOnly()) {
1127 MMKVWarning("[%s] file readonly", m_mmapID.c_str());
1128 return false;
1129 }
1130 SCOPED_LOCK(m_lock);
1131 SCOPED_LOCK(m_exclusiveProcessLock);
1132 checkLoadData();
1133
1134 return removeDataForKey(key);
1135}
1136
1137#ifndef MMKV_APPLE
1138

Callers 15

encodeBytesFunction · 0.45
encodeBytes_v2Function · 0.45
removeValueForKeyFunction · 0.45
encodeBytesFunction · 0.45
encodeBytes_v2Function · 0.45
removeValueForKeyFunction · 0.45
fastRemoveCornetSizeTestFunction · 0.45
testAutoExpireFunction · 0.45
functionalTestFunction · 0.45
removeValueForKeyFunction · 0.45
encodeBytesFunction · 0.45
encodeBytes_v2Function · 0.45

Calls 2

isKeyEmptyFunction · 0.85
isReadOnlyFunction · 0.70

Tested by 2

testRemoveFunction · 0.36
functionalTestFunction · 0.36