0.1.3 • Published 9 years ago

koa-cache-it v0.1.3

Weekly downloads
2
License
LGPL V3
Repository
github
Last release
9 years ago

Build Status NPM version

koa-cache

koa-cache is a koa middleware which provide cache for app.

Install

npm install koa-cache-it

Usage

var app = require('koa')();
var cache = require('koa-cache-it');
app.use(cache({
          store:redisStore(),
          prefix:"koa-cache-test:"
      }));

app.use(function * controller(){
      this.cache.get('cache-key',function * provider(){
          // do something
          return "your value";
        });
    });

APIs

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago