MCPcopy Create free account
hub / github.com/catboost/catboost / Insert

Method Insert

library/cpp/cache/thread_safe_cache.h:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 }
39
40 bool Insert(const Key& key, const TPtr& value) {
41 if (!Contains(key)) {
42 TWriteGuard w(Mutex);
43 return Cache.Insert(key, value);
44 }
45 return false;
46 }
47
48 void Update(const Key& key, const TPtr& value) {
49 TWriteGuard w(Mutex);

Callers 1

GetValueMethod · 0.45

Calls 1

ContainsFunction · 0.50

Tested by

no test coverage detected