node package manager

redis-repository

A repository structure using redis as the underlying storage

Redis Repository

A simple repository structure using redis as the underlying storage.

add redis-repository to your package.json and import the redisRepositoryFactory:

var redisRepositoryFactory = require('redis-repository'),
var catRepository = redisRepository.create(connectionString,'cat');
catRepository.add({name:'trevor'},function(){ 
    console.log('cat added!');
});
catRepository.all(function(cats){
    console.log('Look at all my kitties : ',cats);
});
catRepository.remove({name:'trevor'},function(){ 
    console.log('cat removed!');
});