MCPcopy Create free account
hub / github.com/apache/arrow / LruCache

Method LruCache

cpp/src/arrow/util/cache_internal.h:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37class LruCache {
38 public:
39 explicit LruCache(int32_t capacity) : capacity_(capacity) {
40 // The map size can temporarily exceed the cache capacity, see Replace()
41 map_.reserve(capacity_ + 1);
42 }
43
44 ARROW_DISALLOW_COPY_AND_ASSIGN(LruCache);
45 ARROW_DEFAULT_MOVE_AND_ASSIGN(LruCache);

Callers

nothing calls this directly

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected