Anton Gerasimov > Plack-Middleware-Debug-Redis-0.03 > Plack::Middleware::Debug::Redis::Keys

Download:
Plack-Middleware-Debug-Redis-0.03.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Plack::Middleware::Debug::Redis::Keys - Redis keys debug panel

VERSION ^

version 0.03

SYNOPSIS ^

    # inside your psgi app
    enable 'Debug',
        panels => [
            [ 'Redis::Keys', instance => 'redis.example.com:6379', db => 3 ],
        ];

DESCRIPTION ^

Plack::Middleware::Debug::Redis::Keys extends Plack::Middleware::Debug by adding redis server keys debug panel. Panel displays available keys in the redis database and its type.

    coy:knows:pseudonoise:codes             STRING (9000)
    six:slimy:snails:sailed:silently        LIST (35)
    eleven:benevolent:elephants             HASH (17)
    two:tried:and:true:tridents             SET (101)
    tie:twine:to:three:tree:twigs           ZSET (66)

Also in brackets displays key-type specific data. For STRING keys it's key length in bytes; for HASH - number of fields in a hash; for LIST - length of a list (number of items); for SET and ZSET - number of members in a set.

This panel might be added several times for different databases. Just add it again to Plack Debug panels and provide another database number.

METHODS ^

prepare_app

See Plack::Middleware::Debug

run

See Plack::Middleware::Debug

redis_connect

See Plack::Middleware::Debug::Redis

redis

See Plack::Middleware::Debug::Redis

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

Plack::Middleware::Debug

Redis

AUTHOR ^

Anton Gerasimov <chim@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Anton Gerasimov.

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

syntax highlighting: