periodicjs.core.cache

6.9.1 • Public • Published

periodicjs.core.cache

Extensible caching modules for periodic.

API Documentation

Installation

$ npm install periodicjs.core.cache

This is a part of Periodic's core.

Usage

Querying for tag

JavaScript

//in periodic globally (already in app/lib/periodic.js)
var PeriodicCache = require('periodicjs.core.cache');
global.CoreCache = new PeriodicCache();

//in your routes to disable caching
module.exports = function (periodic) {
	extensionOrThemeRouter = periodic.express.Router();
	extensionOrThemeRouter.get('*',global.CoreCache.disableCache);
	periodic.app.use(extensionOrThemeRouter);
};

##Development Make sure you have grunt installed

$ npm install -g grunt-cli

Then run grunt watch

$ grunt watch

For generating documentation

$ grunt doc
$ jsdoc2md lib/**/*.js index.js > doc/api.md

##Notes

Package Sidebar

Install

npm i periodicjs.core.cache

Weekly Downloads

10

Version

6.9.1

License

MIT

Last publish

Collaborators

  • yawetse