【文件属性】:
文件名称:lua-resty-mlcache:OpenResty的分层缓存库
文件大小:63KB
文件格式:ZIP
更新时间:2021-05-14 18:01:20
luajit openresty lua-resty ngx-lua Perl
lua-resty-mlcache
快速,自动的OpenResty分层缓存。
结合 API和,可以将该库作为键/值存储缓存标量Lua类型和表,从而提供了一种性能且灵活的缓存解决方案。
特征:
使用TTL进行缓存和否定缓存。
通过内置的互斥可以防止在缓存未命中时对数据库/后端产生狗堆效应。
内置的工作人员间通信可传播高速缓存无效性,并允许工作人员根据更改( set() , delete() )更新其L1(lua-resty-lrucache)高速缓存。
支持拆分命中和未命中缓存队列。
可以创建多个隔离的实例,以在依赖相同的lua_shared_dict L2高速缓存时保存各种类型的数据。
此库中内置的各种缓存级别的说明:
┌─────────────────────────────────────────────────┐
│ Nginx
【文件预览】:
lua-resty-mlcache-master
----.luacheckrc(73B)
----.gitignore(55B)
----t()
--------06-delete.t(6KB)
--------00-ipc.t(17KB)
--------10-ipc_shm.t(9KB)
--------07-l1_serializer.t(18KB)
--------Util.pm(1KB)
--------01-new.t(13KB)
--------14-bulk-and-res.t(5KB)
--------12-resurrect-stale.t(26KB)
--------13-get_bulk.t(44KB)
--------03-peek.t(15KB)
--------05-set.t(15KB)
--------02-get.t(65KB)
--------08-purge.t(10KB)
--------09-isolation.t(11KB)
--------11-locks_shm.t(3KB)
--------04-update.t(3KB)
----.travis.yml(2KB)
----lua-resty-mlcache-2.5.0-1.rockspec(1KB)
----LICENSE(1KB)
----CHANGELOG.md(9KB)
----README.md(39KB)
----lib()
--------resty()
----dist.ini(282B)