iocache
对 jcache 进行了一层封装,提供与 ioredis
相同的 API,但是
- 不是所有的功能都支持
- 也不是所有的返回结果都一致
请查看 __tests__/test-case.js
里的测试示例的结果。
安装
npm i iocache
使用
const path = const JcacheWrapper = path const JcacheClient = id: 788 name: processenvJCACHE_NAME { await cacheClient await cacheClient await cacheClient await cacheClient}