![]() ![]() This library was inspired by the hilmi project. You can also pass an already initialized client engine as valid engine so you can re-use among multiple cacheman instances.īy default cacheman uses the cacheman-memory engine. options can contain ttl to set the default "Time To Live" in seconds, delimiter to change the delimiter used for array keys (default: ':'), Promise can set a Promise library to use for promises, engine that could be "memory", "in file", "redis" or "mongo", and the corresponding engine options that can be passed like port, host, etc. It accepts an name(optional) and options(optional). ![]() Var Cacheman = require ( 'cacheman' ) var cache = new Cacheman ( ) // or var cache = new Cacheman ( 'todo' ) // or var cache = new Cacheman ( ) API Cacheman(])Ĭreate cacheman instance.
0 Comments
Leave a Reply. |