|
NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
|
TTL缓存实现 更多...
#include "NeForce/core/async/atomic.hpp"#include "NeForce/core/async/thread.hpp"#include "NeForce/core/container/lru_cache.hpp"#include "NeForce/core/time/clocks.hpp"类 | |
| class | ttl_cache< Key, Value > |
| TTL缓存类模板 更多... | |
TTL缓存实现
此文件提供了TTL(生存时间)缓存的实现,基于LRU缓存扩展而来。 支持缓存项的自动过期、过期清理线程、多种刷新策略等功能。 适用于需要自动过期功能的缓存场景。
在文件 ttl_cache.hpp 中定义.