cash/lrucache
最新稳定版本:1.0.0
Composer 安装命令:
composer require cash/lrucache
包简介
An efficient memory-based Least Recently Used (LRU) cache
README 文档
README
Implements a non-persistent memory-based Least Recently Used cache.
The keys can be integers or strings. The values can be anything. Because this library uses array(), keys that are strings that contain an integer ("7") are cast to an integer. Therefore, there is no difference between the key "7" and the key 7.
$cache = new LRUCache(10); $cache->put('line1', 'roses are red'); $cache->put('line2', 'violets are blue'); $line1 = $cache->get('line1');
统计信息
- 总下载量: 4.51M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 35
- 点击次数: 1
- 依赖项目数: 6
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-09-20