【文件属性】:
文件名称:cacheman-file:Node.JS的文件缓存库,还有cacheman的缓存引擎
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-08 17:46:39
JavaScript
快取档案
文件缓存库的Node.js,也为缓存引擎 。
安装方式
$ npm install cacheman-file
用法
var CachemanFile = require ( 'cacheman-file' ) ;
var cache = new CachemanFile ( ) ;
// set the value
cache . set ( 'my key' , { foo : 'bar' } , function ( error ) {
if ( error ) throw error ;
// get the value
cache . get ( 'my key' , function ( error , value ) {
if ( error ) throw error ;
console . log ( value ) ; //->
【文件预览】:
cacheman-file-master
----.jshintrc(1KB)
----.gitignore(29B)
----package.json(774B)
----Makefile(103B)
----.travis.yml(58B)
----index.js(3KB)
----README.md(3KB)
----.npmignore(36B)
----test()
--------test.js(4KB)