MediaWiki
1.23.2
|
Helper class to handle automatically marking connectons as reusable (via RAII pattern) More...
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 | |
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
Definition at line 348 of file RedisConnectionPool.php.
RedisConnRef::__construct | ( | RedisConnectionPool | $pool, |
$server, | |||
Redis | $conn | ||
) |
RedisConnectionPool | $pool | |
string | $server | |
Redis | $conn |
Definition at line 360 of file RedisConnectionPool.php.
RedisConnRef::__destruct | ( | ) |
Definition at line 448 of file RedisConnectionPool.php.
References server.
RedisConnRef::__call | ( | $name, | |
$arguments | |||
) |
Definition at line 382 of file RedisConnectionPool.php.
References $conn, $lastError, $name, $res, array(), server, and wfDebugLog().
RedisConnRef::clearLastError | ( | ) |
Definition at line 378 of file RedisConnectionPool.php.
RedisConnRef::getLastError | ( | ) |
Definition at line 374 of file RedisConnectionPool.php.
References $lastError.
RedisConnRef::getServer | ( | ) |
Definition at line 370 of file RedisConnectionPool.php.
References $server.
Referenced by RedisConnectionPool\handleError().
RedisConnRef::isConnIdentical | ( | Redis | $conn | ) |
Redis | $conn |
Definition at line 444 of file RedisConnectionPool.php.
References $conn.
Referenced by RedisConnectionPool\handleError().
RedisConnRef::luaEval | ( | $script, | |
array | $params, | ||
$numKeys | |||
) |
string | $script | |
array | $params | |
int | $numKeys |
RedisException |
Definition at line 406 of file RedisConnectionPool.php.
References $conn, $lastError, $params, $res, $server, and wfDebugLog().
Referenced by PoolCounterRedis\initAndPopPoolSlotList(), JobQueueRedis\popAndAcquireBlob(), JobQueueRedis\popAndDeleteBlob(), JobQueueRedis\pushBlobs(), PoolCounterRedis\registerAcquisitionTime(), and PoolCounterRedis\release().
|
protected |
Definition at line 350 of file RedisConnectionPool.php.
Referenced by __call(), __construct(), isConnIdentical(), and luaEval().
|
protected |
Definition at line 353 of file RedisConnectionPool.php.
Referenced by __call(), getLastError(), and luaEval().
|
protected |
|
protected |
Definition at line 352 of file RedisConnectionPool.php.
Referenced by __construct(), getServer(), and luaEval().