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

NAME

Plack::Middleware::Debug::Redis::Info - Redis info debug panel

VERSION

version 0.01

SYNOPSIS

    # inside your psgi app
    enable 'Debug',
        panels => [
            [ 'Redis::Info', server => 'redis.example.com:6379' ],
        ];

DESCRIPTION

Plack::Middleware::Debug::Redis::Info extends Plack::Middleware::Debug by adding redis server info debug panel. Panel displays data which available through INFO command issued in redis-cli. Before displaying info some tweaks were processed. Normally INFO command shows total and expires keys in one line such as

    db0 => 'keys=167,expires=145',
    db1 => 'keys=75,expires=0',

This module turn in to

    db0_expires => '145',
    db0_keys    => '167',
    db1_expires => '0',
    db1_keys    => '75',

METHODS

prepare_app

See Plack::Middleware::Debug

run

See Plack::Middleware::Debug

server

Hostname and port of redis server instance. Default value is 'localhost:6379'.

password

Password to authenticate on redis server instance in case of enabled redis' option requirepass.

BUGS

Please report any bugs or feature requests through the web interface at https://github.com/Wu-Wu/Plack-Middleware-Debug-Redis/issues

SEE ALSO

Plack::Middleware::Debug

Redis

AUTHOR

Anton Gerasimov, <chim@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2013 by Anton Gerasimov

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