0.0.1 • Published 9 years ago

sequelize-cache v0.0.1

Weekly downloads
29
License
GPL v3
Repository
github
Last release
9 years ago

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