redis-plus-lru-cache:Redis + LRU 缓存

时间:2021-06-18 05:16:23
【文件属性】:
文件名称:redis-plus-lru-cache:Redis + LRU 缓存
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-18 05:16:23
JavaScript Redis 加 LRU 缓存 该模块用作缓存中间件,它为使用 lru 缓存插件和 redis 提供了辅助方法以实现持久化和集群化。 安装 $ npm install redis-plus-lru-cache 或在 package.json 中指定为依赖项 用法 用快递 var lruCachePlusRedis = { lruCache : { max : 500 , length : function ( n ) { return n * 2 } , displose : function ( key , n ) { n . close ( ) } , maxAge : 1000 * 60 * 60 } , redis : { port : 6379
【文件预览】:
redis-plus-lru-cache-master
----app.js(677B)
----README.md(2KB)
----index.js(1KB)
----package.json(813B)

网友评论