Base plugin that adds fragment-cache support to your Base application
Install with npm:
$ npm install base-fragment-cache --save
Register the plugin with your base application:
var Base = require('base');
var base = new Base();
var fragment = require('base-fragment-cache');
base.use(fragment());
// set a value on cache "foo"
base.fragment.set('foo', 'one', 'two');
// get the value of property "one" from cache "foo"
var one = base.fragment.get('foo', 'one');
//=> 'two'
See fragment-cache for API documentation and additional information.
You might also be interested in these projects:
- base: base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… more | homepage
- base-data: adds a
data
method to base-methods. | homepage - base-option: Adds a few options methods to base, like
option
,enable
anddisable
. See the readme… more | homepage
This document was generated by verb, please don't edit directly. Any changes to the readme must be made in .verb.md. See Building Docs.
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
$ npm install -g verb verb-readme-generator && verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on June 07, 2016.