FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
Loading...
Searching...
No Matches
Data Structures
fdl_tl_cache.h File Reference

Bounded thread-local string cache with automatic eviction. More...

#include <string>
#include <unordered_map>
#include "fdl_constants.h"

Go to the source code of this file.

Data Structures

class  fdl::detail::TlStringCache< Key, Hash >
 Bounded thread-local string cache with auto-eviction. More...
 

Detailed Description

Bounded thread-local string cache with automatic eviction.

Provides a simple size-bounded wrapper around std::unordered_map that auto-clears when the entry count exceeds a threshold. This prevents unbounded memory growth in long-running threads that access many different documents or nodes.

The eviction strategy is a full clear (rather than LRU) because: