#!/usr/bin/perl

package App::Redis::Dump::Config;

use strict;
use Redis::Dump::Config;
use JSON;

# ABSTRACT: It's a simple way to dump and backup config from redis-server.
our $VERSION = '0.015'; # VERSION

my $app = Redis::Dump::Config->new_with_options();

print to_json( { $app->run } , { ascii => 1, pretty => 1 } );

1;



=pod

=head1 NAME

App::Redis::Dump::Config - It's a simple way to dump and backup config from redis-server.

=head1 VERSION

version 0.015

=head1 SYNOPSIS

    redis-config --server 127.0.0.1:6379
    {
	   "requirepass" : "",
	   "dbfilename" : "dump.rdb",
	   "slave-serve-stale-data" : "yes",
	   "dir" : "/Users/thiago",
	   "list-max-ziplist-entries" : "512",
	   "save" : "3600 1 300 100 60 10000",
	   "hash-max-zipmap-value" : "64",
	   "timeout" : "300",
	   "maxmemory-samples" : "3",
	   "set-max-intset-entries" : "512",
	   "list-max-ziplist-value" : "64",
	   "no-appendfsync-on-rewrite" : "no",
	   "appendfsync" : "everysec",
	   "maxmemory-policy" : "volatile-lru",
	   "maxmemory" : "",
	   "appendonly" : "no",
	   "masterauth" : "",
	   "hash-max-zipmap-entries" : "512"

	}

Run C<redis-config -h> for more options.

=head1 DESCRIPTION

redis-config is a script to dump your config redis server, requires zero
configuration, and return a JSON with data.

See L<Redis::Dump::Config> for more information.

=head1 SEE ALSO

L<Redis::Dump>, L<Redis::Dump::Restore>, L<App::Redis::Dump::Restore>

=head1 DEPENDENCIES

=over 4

=item *

L<Moose>

=item *

L<MooseX::Getopt>

=item *

L<Redis>

=back

=head1 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.

L<http://www.github.com/maluco/Redis-Dump>

=head1 SUPPORT

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

perldoc Redis::Dump

You can also look for information at:

=over 4

=item * RT: CPAN's request tracker

L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Redis-Dump>

=item * AnnoCPAN: Annotated CPAN documentation

L<http://annocpan.org/dist/Redis-Dump>

=item * CPAN Ratings

L<http://cpanratings.perl.org/d/Redis-Dump>

=item * Search CPAN

L<http://search.cpan.org/dist/Redis-Dump>

=back

=head1 NO WARRANTY

This software is provided "as-is," without any express or implied
warranty. In no event shall the author be held liable for any damages
arising from the use of the software.

=head1 AUTHOR

Thiago Rondon <thiago@nsms.com.br>

=head1 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.

=cut


__END__



