Cache::RedisDB - RedisDB based cache system
This is just a wrapper around RedisDB to have a single Redis object and connection per process. By default uses server redis://127.0.0.1, but it may be overwritten by REDIS_CACHE_SERVER environment variable. It transparently handles forks.
Redis 2.6.12 and higher strongly recommended. Required if you want to use extended options in ->set().
use Cache::RedisDB; Cache::RedisDB->set("namespace", "key", "value"); Cache::RedisDB->get("namespace", "key");
Returns redis uri
Creates new connection to redis-server and returns corresponding RedisDB object.
Returns RedisDB object connected to the correct redis server.
Retrieve $key value from the cache.
Assigns $value to the $key. $value should be scalar value. If $exptime specified, it is expiration time in seconds.
Same as set but do not wait confirmation from server. If server will return error, there's no way to catch it.
Delete given keys and associated values from the cache. $namespace is common for all keys. Returns number of deleted keys.
Return a list of all known keys in the provided $namespace.
Return the Time To Live (in seconds) of a key in the provided $namespace.
Delete all keys and associated values from the cache.
binary.com, <rakesh at binary.com>
<rakesh at binary.com>
Please report any bugs or feature requests to bug-cache-redisdb at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Cache-RedisDB. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-cache-redisdb at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Cache::RedisDB
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Cache-RedisDB
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Cache-RedisDB
CPAN Ratings
http://cpanratings.perl.org/d/Cache-RedisDB
Search CPAN
http://search.cpan.org/dist/Cache-RedisDB/
To install Cache::RedisDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Cache::RedisDB
CPAN shell
perl -MCPAN -e shell install Cache::RedisDB
For more information on module installation, please visit the detailed CPAN module installation guide.