cache:核心DADI产品中使用的支持Redis和文件系统缓存的缓存层

时间:2021-05-17 10:00:11
【文件属性】:
文件名称:cache:核心DADI产品中使用的支持Redis和文件系统缓存的缓存层
文件大小:1.03MB
文件格式:ZIP
更新时间:2021-05-17 10:00:11
JavaScript DADI快取 核心DADI产品中使用的支持Redis和文件系统缓存的缓存层 Redis缓存 Redis集群 缓存回退 概述 消除了为每个项目设置两个单独的缓存处理程序所涉及的复杂性,DADI Cache可以使用文件系统或Redis实例来存储和检索内容。 安装 npm install @dadi/cache --save 用法 创建缓存实例 // require the module const Cache = require ( '@dadi/cache' ) // setup the options for caching // defaults if nothing specified: // { // directory: { // enabled: true, // path: './cache' // }, // redis: { //
【文件预览】:
cache-master
----scripts()
--------coverage.js(223B)
----lib()
--------file.js(9KB)
--------redis.js(10KB)
--------index.js(6KB)
----.travis.yml(232B)
----test()
--------integration()
--------cat.png(265KB)
--------unit()
--------mocha.opts(40B)
----README.md(8KB)
----docs()
--------docconf.json(766B)
--------redis.js.html(10KB)
--------index.html(8KB)
--------file.js.html(8KB)
--------classes.list.html(6KB)
--------global.html(7KB)
--------styles()
--------img()
--------scripts()
--------fonts()
--------Cache.html(16KB)
--------index.js.html(10KB)
--------FileCache.html(11KB)
--------RedisCache.html(12KB)
--------quicksearch.html(18KB)
----.gitignore(117B)
----CHANGELOG.md(1KB)
----package-lock.json(207KB)
----package.json(2KB)

网友评论