package RedisDB; use strict; use warnings; our $VERSION = "2.57"; $VERSION = eval $VERSION; use RedisDB::Error; use RedisDB::Parser; use IO::Socket::IP; use IO::Socket::UNIX; use Socket qw(MSG_DONTWAIT MSG_NOSIGNAL SO_RCVTIMEO SO_SNDTIMEO); use POSIX qw(:errno_h); use Config; use Carp; use Try::Tiny; use Encode qw(); use URI; use URI::redis; =head1 NAME RedisDB - Perl extension to access redis database =head1 SYNOPSIS use RedisDB; my $redis = RedisDB->new(host => 'localhost', port => 6379); $redis->set($key, $value); my $value = $redis->get($key); =head1 DESCRIPTION This module provides interface to access redis key-value store, it transparently handles disconnects and forks, supports transactions, pipelining, and subscription mode. =head1 METHODS =cut =head2 $class->new(%options) Creates a new RedisDB object. The following options are accepted: =over 4 =item host domain name of the host running redis server. Default: "localhost" =item port port to connect. Default: 6379 =item path you can connect to redis using UNIX socket. In this case instead of L and L you should specify I. =item password Password, if redis server requires authentication. Alternatively you can use I method after creating the object. =item database DB number to use. Specified database will be selected immediately after connecting to the server. Database changes when you sending I