ResourcePool::Resource::Redis - Provides a ResourcePool wrapper for Redis.
use ResourcePool::Factory; use ResourcePool::Resource::Redis; my $factory = ResourcePool::Factory::Redis->new('server' => '127.0.0.1'); my $pool = ResourcePool->new($factory); my $redis = $pool->get(); $redis->set("foo", "bar); $pool->free($redis);
See the ResourcePool documentation for more details.
Accepts the same arguments as Redis::new.
Sebastian Nowicki <sebnow@gmail.com>
ResourcePool for detailed documentation and geenral information about what a ResourcePool is.
Redis for documentation on the Redis interface.
To install ResourcePool::Resource::Redis, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ResourcePool::Resource::Redis
CPAN shell
perl -MCPAN -e shell install ResourcePool::Resource::Redis
For more information on module installation, please visit the detailed CPAN module installation guide.