node-redis-dump

Backup and restore your Redis data written in node.js.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
node-redis-dump
100.2.19 years ago9 years agoMinified + gzip package size for node-redis-dump in KB

Readme

Node.js redis dump library
Backup and restore your Redis data written on node.js

Installation

$ git clone git@github.com:EvilDevRu/node-redis-dump.git

Quick Start

var RedisDump = require('./node-redis-dump'),
    dump = new RedisDump({
        host: 'localhost',
        port: 6379,
        password: ''
    });

    dump.connect();
    dump.export({
        type: 'redis',
        //isCompress: false, (not working now)
        callback: function(err, data) {
            if (err) {
                console.log('Could\'t not make redis dump!', err);
                return;
            }

            console.log('--------- REDIS DUMP ----------');
            console.log(data);
            console.log('--------- /REDIS DUMP ----------');
    }
});