Base plugin that adds fragment-cache support to your Base application
Install with npm:
$ npm install base-fragment-cache --saveRegister 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
datamethod to base-methods. | homepage - base-option: Adds a few options methods to base, like
option,enableanddisable. 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 && verbInstall dev dependencies:
$ npm install -d && npm testJon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v0.9.0, on June 07, 2016.