The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Redis::Dump::Restore - It's a simple way to restore data to redis-server based on redis-dump.

VERSION

version 0.016

SYNOPSIS

    use Redis::Dump::Restore;

    my $restore = Redis::Dump::Restore->new({ server => '127.0.0.6379', file => 'foo.txt');

DESCRIPTION

It's a simple way to restore data to redis-server based on redis-dump (JSON).

COMMAND LINE API

This class uses MooseX::Getopt to provide a command line api. The command line options map to the class attributes.

METHODS

new_with_options

Provided by MooseX::Getopt. Parses attributes init args from @ARGV.

run

Perfomas the actual restore.

ATTRIBUTES

server

Host:Port of redis server, example: 127.0.0.1:6379.

database

If you want to select another database than default which is 0.

flushall

Remove all keys from all databases

file

File with dump

DEVELOPMENT

Redis::Dump is a open source project for everyone to participate. The code repository is located on github. Feel free to send a bug report, a pull request, or a beer.

http://www.github.com/maluco/Redis-Dump

SEE ALSO

Redis::Dump, App::Redis::Dump, App::Redis::Dump::Restore

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Redis::Dump

You can also look for information at:

AUTHOR

Thiago Rondon <thiago@nsms.com.br>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Thiago Rondon.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.