MediaWiki REL1_39
|
Helper class to handle automatically marking connections as reusable (via RAII pattern) More...
Public Member Functions | |
__call ( $name, $arguments) | |
Magic __call handler for most Redis functions. | |
__construct (RedisConnectionPool $pool, $server, Redis $conn, LoggerInterface $logger) | |
__destruct () | |
clearLastError () | |
getLastError () | |
getServer () | |
hScan ( $key, &$iterator, $pattern=null, $count=null) | |
Hash Scan Handle this explicitly due to needing the iterator passed by reference. | |
isConnIdentical (Redis $conn) | |
luaEval ( $script, array $params, $numKeys) | |
scan (&$iterator, $pattern=null, $count=null) | |
Key Scan Handle this explicitly due to needing the iterator passed by reference. | |
setLogger (LoggerInterface $logger) | |
sScan ( $key, &$iterator, $pattern=null, $count=null) | |
Set Scan Handle this explicitly due to needing the iterator passed by reference. | |
zScan ( $key, &$iterator, $pattern=null, $count=null) | |
Sorted Set Scan Handle this explicitly due to needing the iterator passed by reference. | |
Protected Attributes | |
Redis | $conn |
string null | $lastError |
LoggerInterface | $logger |
RedisConnectionPool | $pool |
string | $server |
Helper class to handle automatically marking connections 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 67 of file RedisConnRef.php.
RedisConnRef::__destruct | ( | ) |
Definition at line 300 of file RedisConnRef.php.
RedisConnRef::__call | ( | $name, | |
$arguments ) |
Magic __call handler for most Redis functions.
string | $name | |
array | $arguments |
RedisException |
Definition at line 104 of file RedisConnRef.php.
RedisConnRef::clearLastError | ( | ) |
Definition at line 92 of file RedisConnRef.php.
RedisConnRef::getLastError | ( | ) |
Definition at line 88 of file RedisConnRef.php.
References $lastError.
RedisConnRef::getServer | ( | ) |
Definition at line 84 of file RedisConnRef.php.
References $server.
Referenced by RedisConnectionPool\handleError().
RedisConnRef::hScan | ( | $key, | |
& | $iterator, | ||
$pattern = null, | |||
$count = null ) |
Hash Scan Handle this explicitly due to needing the iterator passed by reference.
See: https://github.com/phpredis/phpredis#hScan
string | $key | |
int | &$iterator | |
string | null | $pattern | |
int | null | $count |
Definition at line 185 of file RedisConnRef.php.
RedisConnRef::isConnIdentical | ( | Redis | $conn | ) |
Redis | $conn |
Definition at line 296 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 244 of file RedisConnRef.php.
References $conn, $lastError, $res, and $server.
Referenced by PoolCounterRedis\initAndPopPoolSlotList(), JobQueueRedis\popAndAcquireBlob(), JobQueueRedis\pushBlobs(), PoolCounterRedis\registerAcquisitionTime(), and PoolCounterRedis\release().
RedisConnRef::scan | ( | & | $iterator, |
$pattern = null, | |||
$count = null ) |
Key Scan Handle this explicitly due to needing the iterator passed by reference.
See: https://github.com/phpredis/phpredis#scan
int | &$iterator | |
string | null | $pattern | |
int | null | $count |
Definition at line 155 of file RedisConnRef.php.
RedisConnRef::setLogger | ( | LoggerInterface | $logger | ) |
Definition at line 76 of file RedisConnRef.php.
References $logger.
RedisConnRef::sScan | ( | $key, | |
& | $iterator, | ||
$pattern = null, | |||
$count = null ) |
Set Scan Handle this explicitly due to needing the iterator passed by reference.
See: https://github.com/phpredis/phpredis#sScan
string | $key | |
int | &$iterator | |
string | null | $pattern | |
int | null | $count |
Definition at line 170 of file RedisConnRef.php.
RedisConnRef::zScan | ( | $key, | |
& | $iterator, | ||
$pattern = null, | |||
$count = null ) |
Sorted Set Scan Handle this explicitly due to needing the iterator passed by reference.
See: https://github.com/phpredis/phpredis#hScan
string | $key | |
int | &$iterator | |
string | null | $pattern | |
int | null | $count |
Definition at line 200 of file RedisConnRef.php.
|
protected |
Definition at line 35 of file RedisConnRef.php.
Referenced by __construct(), isConnIdentical(), and luaEval().
|
protected |
Definition at line 39 of file RedisConnRef.php.
Referenced by getLastError(), and luaEval().
|
protected |
Definition at line 44 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().