https://github.com/kelp-framework/module-redis
Redis module for Kelp
https://github.com/kelp-framework/module-redis
hacktoberfest perl perl-kelp
Last synced: 26 days ago
JSON representation
Redis module for Kelp
- Host: GitHub
- URL: https://github.com/kelp-framework/module-redis
- Owner: Kelp-framework
- Created: 2013-04-30T23:26:14.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-01T00:31:56.000Z (about 13 years ago)
- Last Synced: 2025-10-22T07:45:07.983Z (8 months ago)
- Topics: hacktoberfest, perl, perl-kelp
- Language: Perl
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NAME
Kelp::Module::Redis - Use Redis within Kelp
# SYNOPSIS
First ...
```perl
# conf/config.pl
{
modules => ['Redis'],
modules_init => {
Redis => {
server => 'redis.example.com:8080', # example
name => 'my_connection_name' # example
}
}
}
```
Then ...
```perl
package MyApp;
use Kelp::Base 'Kelp';
sub some_route {
my $self = shift;
$self->redis->set( key => 'value' );
}
```
# REGISTERED METHODS
This module registers only one method into the application: `redis`.
It is an instance of a [Redis](http://search.cpan.org/perldoc?Redis) class.
## AUTHOR
Stefan Geneshky minimal@cpan.org
## LICENCE
Perl