|
FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
|
Bounded thread-local string cache with automatic eviction. More...
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... | |
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: