MediaWiki  REL1_24
RedisConnRef Class Reference

Helper class to handle automatically marking connectons as reusable (via RAII pattern) More...

Collaboration diagram for RedisConnRef:

List of all members.

Public Member Functions

 __call ($name, $arguments)
 __construct (RedisConnectionPool $pool, $server, Redis $conn)
 __destruct ()
 clearLastError ()
 getLastError ()
 getServer ()
 isConnIdentical (Redis $conn)
 luaEval ($script, array $params, $numKeys)

Protected Attributes

Redis $conn
 *
 $lastError
RedisConnectionPool $pool
 *
 $server

Detailed Description

Helper class to handle automatically marking connectons as reusable (via RAII pattern)

This class simply wraps the Redis class and can be used the same way

Since:
1.21

Definition at line 367 of file RedisConnectionPool.php.


Constructor & Destructor Documentation

RedisConnRef::__construct ( RedisConnectionPool pool,
server,
Redis $  conn 
)
Parameters:
RedisConnectionPool$pool
string$server
Redis$conn

Definition at line 379 of file RedisConnectionPool.php.

Definition at line 484 of file RedisConnectionPool.php.


Member Function Documentation

RedisConnRef::__call ( name,
arguments 
)

Definition at line 401 of file RedisConnectionPool.php.

Definition at line 397 of file RedisConnectionPool.php.

Definition at line 393 of file RedisConnectionPool.php.

Returns:
string
Since:
1.23

Definition at line 389 of file RedisConnectionPool.php.

References $conn, $pool, $server, and server.

RedisConnRef::isConnIdentical ( Redis $  conn)
Parameters:
Redis$conn
Returns:
bool

Definition at line 480 of file RedisConnectionPool.php.

RedisConnRef::luaEval ( script,
array params,
numKeys 
)
Parameters:
string$script
array$params
int$numKeys
Returns:
mixed
Exceptions:
RedisException

Definition at line 442 of file RedisConnectionPool.php.


Member Data Documentation

Redis RedisConnRef::$conn [protected]

*

Definition at line 369 of file RedisConnectionPool.php.

Referenced by getServer().

RedisConnRef::$lastError [protected]

Definition at line 372 of file RedisConnectionPool.php.

RedisConnectionPool RedisConnRef::$pool [protected]

*

Definition at line 368 of file RedisConnectionPool.php.

Referenced by getServer().

RedisConnRef::$server [protected]

Definition at line 371 of file RedisConnectionPool.php.

Referenced by getServer().


The documentation for this class was generated from the following file: