文件名称:simple-json-cache:对象更改时自动将json数据保存到disklocalStorage。 它支持Node.js和Web
文件大小:7KB
文件格式:ZIP
更新时间:2024-05-19 08:16:31
JavaScript
一个简单的Json缓存 对象更改时自动将json数据保存到disk / localStorage。 它支持nodejs和web。 构建设置 # install dependencies npm install simple-json-cache --save # node test cd node_modules/simple-json-cache npm run test 原料药 SimpleJsonCache newObject(对象,名称) object.save() object.read() 用法 节点JS const SimpleJsonCache = require ( 'simple-json-cache' ) const DiskCache = require ( 'simple-json-cache/cache-engine/disk-cache.js' ) v
【文件预览】:
simple-json-cache-master
----proto-listener()
--------index.js(2KB)
----LICENSE(1KB)
----test()
--------test.js(1KB)
----README.md(2KB)
----.gitignore(17B)
----index.js(1KB)
----cache-engine()
--------disk-cache.js(2KB)
--------storage-cache.js(823B)
----package.json(696B)