MCPcopy Create free account
hub / github.com/chen3feng/toft / SetCache

Function SetCache

container/lru_cache_test.cpp:93–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static void SetCache(LruCache<int, int> *cache, int multiplier) {
94 for (int i = 2; i < 1000; ++i) {
95 cache->Put(i, i * multiplier);
96 }
97}
98
99static void SetThread(LruCache<int, int> *cache) {
100 int64_t now = RealtimeClock.MicroSeconds();

Callers 1

SetThreadFunction · 0.85

Calls 1

PutMethod · 0.45

Tested by

no test coverage detected