Skip to content

EvilDevRu/node-redis-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js redis dump library

Backup and restore your Redis data written on node.js

Installation

  $ npm install node-redis-dump

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 ----------');
    }
});

About

Backup and restore your Redis data written in node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published