Catalyst::Model::Redis - Redis Model Class
0.01
# 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;
This module implements Redis model class for Catalyst.
Initializes RedisDB object
Returns the RedisDB object
Catalyst, RedisDB
Please report any bugs or feature requests via GitHub bug tracker at http://github.com/trinitum/perl-Catalyst-Model-Redis/issues.
Pavel Shaydo <zwon at cpan.org>
<zwon at cpan.org>
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.
To install Catalyst::Model::Redis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::Redis
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::Redis
For more information on module installation, please visit the detailed CPAN module installation guide.