MediaWiki  REL1_22
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 ()
 isConnIdentical (Redis $conn)
 luaEval ($script, array $params, $numKeys)

Protected Attributes

Redis $conn
 *
RedisConnectionPool $pool
 *
 $server

Detailed Description

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

Since:
1.21

Definition at line 287 of file RedisConnectionPool.php.


Constructor & Destructor Documentation

RedisConnRef::__construct ( RedisConnectionPool pool,
server,
Redis $  conn 
)
Parameters:
$poolRedisConnectionPool
$serverstring
$connRedis

Definition at line 298 of file RedisConnectionPool.php.

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

Definition at line 344 of file RedisConnectionPool.php.

References $conn.


Member Function Documentation

RedisConnRef::__call ( name,
arguments 
)

Definition at line 304 of file RedisConnectionPool.php.

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

Definition at line 340 of file RedisConnectionPool.php.

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

Definition at line 315 of file RedisConnectionPool.php.


Member Data Documentation

Redis RedisConnRef::$conn [protected]

*

Definition at line 289 of file RedisConnectionPool.php.

Referenced by __construct(), and __destruct().

RedisConnectionPool RedisConnRef::$pool [protected]

*

Definition at line 288 of file RedisConnectionPool.php.

Referenced by __construct().

RedisConnRef::$server [protected]

Definition at line 291 of file RedisConnectionPool.php.

Referenced by __construct().


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