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

Function MemoizeLru

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

Source from the content-addressed store, hash-verified

189template <typename Key, typename Func>
190 requires std::is_invocable_v<Func, const Key&>
191static auto MemoizeLru(Func&& func, int32_t cache_capacity) {
192 return detail::Memoize<LruCache, detail::ThreadSafeMemoizer, Key>(
193 std::forward<Func>(func), cache_capacity);
194}
195
196// Like MemoizeLru, but not thread-safe. This version allows for much faster
197// lookups (more than 2x faster), but you'll have to manage thread safety yourself.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected