Redisent, a Redis interface for the modest among us

 Methods

__call()

__call($name, $args) 

Parameters

$name

$args

Create a new Redis instance using the configuration values supplied

__construct(array $config) 

Parameters

$config

Close the open connection on class destruction

__destruct() 

Flushes the commands in the pipeline queue to Redis and returns the responses.

execute() 

see \Fuel\Core\pipeline

create an instance of the Redis class

forge($name, $config) 

Parameters

$name

$config

Get an instance of the Redis class

instance($name) 

Parameters

$name

Returns the Redisent instance ready for pipelining.

pipeline() 

Redis commands can now be chained, and the array of the responses will be returned when execute is called.

see \Fuel\Core\execute

readResponse()

readResponse() 

 Properties

 

$connection

$connection : resource

 

Multiton pattern, keep track of all created instances

$instances 

 

Flag indicating whether or not commands are being pipelined

$pipelined : boolean

 

The queue of commands to be sent to the Redis server

$queue : array