stream-cache-redis:在 redis 中缓存流

时间:2021-07-01 16:33:27
【文件属性】:
文件名称:stream-cache-redis:在 redis 中缓存流
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-01 16:33:27
JavaScript 流缓存redis 在 redis 中缓存流 安装 npm install stream-cache-redis 用法 var getSlowStream = require ( './my-slow-stream' ) var cachedStream = require ( 'stream-cache-redis' ) ( { cache : redisClient , // redis-compatible object (get/set/expire) key : 'abc' , // cache key ttl : 60 * 60 , // expiration in seconds get : getSlowStream // function that returns a stream } ) // this will be
【文件预览】:
stream-cache-redis-master
----.gitignore(12B)
----package.json(692B)
----.travis.yml(37B)
----index.js(1KB)
----README.md(607B)
----test()
--------test.js(3KB)

网友评论