NAME

ResourcePool::Resource::Redis - Provides a ResourcePool wrapper for Redis.

SYNOPSIS

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.

SUBROUTINES

new(%args)

Accepts the same arguments as Redis::new.

AUTHOR

Sebastian Nowicki <sebnow@gmail.com>

SEE ALSO

ResourcePool for detailed documentation and geenral information about what a ResourcePool is.

Redis for documentation on the Redis interface.