sequelize-cache
v0.0.1
Published
sequelize plugin that caches find* responses
Downloads
38
Maintainers
Readme
sequelize-cache
sequelize-cache is a caching-layer plugin for sequelize. It has some out-of-the-box features such as the ability to cache: locally, on a memcache server or on a redis server.
Work in Progress
Instalation
npm install sequelize-cache --save
Usage
var Sequelize = require( 'sequelize' ),
.plugin( 'sequelize-cache' );
Example with Redis
var redis = require( 'redis' ),
Sequelize = require( 'sequelize' ),
SequelizeCache = require( 'sequelize-cache' ),
.plugin( 'sequelize-cache', {
store: new SequelizeCache.Store.Redis({
client: new redis.createClient();
}),
});