Skip to content

findhit/sequelize-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sequelize-cache

Test Status Dependency Status

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();
            }),
        });

Releases

No releases published

Packages

No packages published