21#include <unordered_map>
25namespace fdl::detail {
48 std::string&
get(
const Key& key) {
49 if (map_.size() >= fdl::constants::kTlCacheMaxEntries) {
56 std::unordered_map<Key, std::string, Hash> map_;
Bounded thread-local string cache with auto-eviction.
Definition fdl_tl_cache.h:36
std::string & get(const Key &key)
Get or create a cached string entry for the given key.
Definition fdl_tl_cache.h:48
Named constants replacing magic numbers throughout the FDL core library.