Kelp::Module::Redis - Use Redis within Kelp
First ...
# conf/config.pl { modules => ['Redis'], modules_init => { Redis => { server => 'redis.example.com:8080', # example name => 'my_connection_name' # example } } }
Then ...
package MyApp; use Kelp::Base 'Kelp'; sub some_route { my $self = shift; $self->redis->set( key => 'value' ); }
This module registers only one method into the application: redis. It is an instance of a Redis class.
redis
Stefan Geneshky minimal@cpan.org
Perl
To install Kelp::Module::Redis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Kelp::Module::Redis
CPAN shell
perl -MCPAN -e shell install Kelp::Module::Redis
For more information on module installation, please visit the detailed CPAN module installation guide.