From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

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

SYNOPSIS

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.