没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
oss.trustie.net/open_source_projects | 主页 > 开源项目社区 > cache-table |
cache-table
|
1 | 0 | 17 |
贡献者 | 讨论 | 代码提交 |
CacheTable is a C++ template library that implements a very fast hash map container.
Its particularity, compared with std::hash_map and google::sparse_hash_map it's that it has a fixed size (you decide it when you create it) and a random item replacement policy: in case of an 'hash collision' the older item is 'discarded' and replaced with the new one.
This container is ideal for implementing caching system, when you want super fast item insertion and retrieval and you know 'a priori' the memory amount you want to dedicate. It is also possible to use it in conjunction to a 2nd level cache, passing discarded item to a slower and bigger container.
The interfaces of the containers are compatible with STL, and to get a glimpse you can check out the examples provided.
Released CacheTable 0.2Fixed a bug with deletion of iterator range More complete documentation