Daemonise::Plugin::Redis - Daemonise Redis plugin
version 2.13
This plugin conflicts with other plugins that provide caching, like the KyotoTycoon plugin.
use Daemonise; my $d = Daemonise->new(); $d->debug(1); $d->foreground(1) if $d->debug; $d->config_file('/path/to/some.conf'); $d->load_plugin('Redis'); $d->configure; # get a redis key my $value = $d->redis->get("some_key"); # set a key and expire (see Redis module for more) $d->redis->set(key => "value"); $d->redis->expire(key, 600); # allow only one instance of this deamon to run at a time $d->lock; # when you are done with mission critical single task stuff $d->unlock;
MessagePack object
retrieve, base64 decode and thaw complex data from Redis
freeze, base64 encode and store complex data in Redis
delete Redis key
Lenz Gschwendtner <norbu09@cpan.org>
This software is copyright (c) 2013 by Lenz Gschwendtner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Daemonise, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Daemonise
CPAN shell
perl -MCPAN -e shell install Daemonise
For more information on module installation, please visit the detailed CPAN module installation guide.