MediaWiki
1.30.0
|
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, LoggerInterface $logger) | |
__destruct () | |
clearLastError () | |
getLastError () | |
getServer () | |
isConnIdentical (Redis $conn) | |
luaEval ( $script, array $params, $numKeys) | |
setLogger (LoggerInterface $logger) | |
Protected Attributes | |
Redis | $conn |
$lastError | |
LoggerInterface | $logger |
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 31 of file RedisConnRef.php.
RedisConnRef::__construct | ( | RedisConnectionPool | $pool, |
$server, | |||
Redis | $conn, | ||
LoggerInterface | $logger | ||
) |
RedisConnectionPool | $pool | |
string | $server | |
Redis | $conn | |
LoggerInterface | $logger |
Definition at line 51 of file RedisConnRef.php.
RedisConnRef::__destruct | ( | ) |
Definition at line 178 of file RedisConnRef.php.
References server.
RedisConnRef::__call | ( | $name, | |
$arguments | |||
) |
Definition at line 80 of file RedisConnRef.php.
RedisConnRef::clearLastError | ( | ) |
Definition at line 76 of file RedisConnRef.php.
RedisConnRef::getLastError | ( | ) |
Definition at line 72 of file RedisConnRef.php.
References $lastError.
RedisConnRef::getServer | ( | ) |
Definition at line 68 of file RedisConnRef.php.
References $server.
Referenced by RedisConnectionPool\handleError().
RedisConnRef::isConnIdentical | ( | Redis | $conn | ) |
Redis | $conn |
Definition at line 174 of file RedisConnRef.php.
References $conn.
Referenced by RedisConnectionPool\handleError().
RedisConnRef::luaEval | ( | $script, | |
array | $params, | ||
$numKeys | |||
) |
string | $script | |
array | $params | |
int | $numKeys |
RedisException |
Definition at line 124 of file RedisConnRef.php.
References $conn, $lastError, $params, $res, and $server.
Referenced by PoolCounterRedis\initAndPopPoolSlotList(), JobQueueRedis\popAndAcquireBlob(), JobQueueRedis\pushBlobs(), PoolCounterRedis\registerAcquisitionTime(), and PoolCounterRedis\release().
RedisConnRef::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 60 of file RedisConnRef.php.
References $logger.
|
protected |
Definition at line 35 of file RedisConnRef.php.
Referenced by __call(), __construct(), isConnIdentical(), and luaEval().
|
protected |
Definition at line 38 of file RedisConnRef.php.
Referenced by __call(), getLastError(), and luaEval().
|
protected |
Definition at line 43 of file RedisConnRef.php.
Referenced by __construct(), and setLogger().
|
protected |
Definition at line 33 of file RedisConnRef.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file RedisConnRef.php.
Referenced by __construct(), getServer(), and luaEval().