| 189 | template <typename Key, typename Func> |
| 190 | requires std::is_invocable_v<Func, const Key&> |
| 191 | static 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. |
nothing calls this directly
no outgoing calls
no test coverage detected