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

NAME

Catalyst::Model::Redis - Redis Model Class

VERSION

0.01

SYNOPSIS

    # use helper to add model
    create model Redis Redis server port password

    # lib/MyApp/Model/Redis.pm
    package MyApp::Model::Redis;
    use parent "Catalyst::Model::Redis";

    __PACKAGE__->config(
        host     => 'localhost',
        port     => 6379,
        database => 3,
        password => 'secret',
    );

    1;

    # in controller
    my $redis = $c->model('Redis')->redis;

DESCRIPTION

This module implements Redis model class for Catalyst.

METHODS

$self->new

Initializes RedisDB object

$self->redis

Returns the RedisDB object

SEE ALSO

Catalyst, RedisDB

BUGS

Please report any bugs or feature requests via GitHub bug tracker at http://github.com/trinitum/perl-Catalyst-Model-Redis/issues.

AUTHOR

Pavel Shaydo <zwon at cpan.org>

LICENSE AND COPYRIGHT

Copyright (C) 2012 Pavel Shaydo

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.