使用文件系统的NodeJ的模块缓存。-Node.js开发

时间:2021-05-27 11:03:54
【文件属性】:
文件名称:使用文件系统的NodeJ的模块缓存。-Node.js开发
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-27 11:03:54
Node.js Filesystem 使用文件系统的NodeJ的模块缓存。 存储字符串,整数,布尔值,对象,类等... node-filesystem-cache使用Filesystem的NodeJ的模块缓存。 存储字符串,整数,布尔值,对象,类等...安装npm install node-filesystem-cache --save配置自定义缓存目录const CacheApi = require('node-filesystem-cache'); const cachePath = __dirname +'/ cache'; const Cache = new CacheApi(cachePath); 缓存使用情况从缓存中检索项目Cache外观上的get方法用于从缓存中检索项目。 如果该项目不存在,我
【文件预览】:
node-filesystem-cache-master
----.gitignore(65B)
----package.json(1008B)
----.nycrc(101B)
----index.js(39B)
----README.md(3KB)
----example()
--------config_cache.js(142B)
--------demo.js(544B)
----lib()
--------store.js(4KB)
--------api.js(2KB)
----test()
--------cacheTest.js(4KB)

网友评论