lSize is an alias to lLen according to [1]
[1] https://github.com/phpredis/phpredis/blob/
9f4ededa4139f0af324aab56773f26be5a9d1783/README.markdown#L2148
Bug: T239734
Change-Id: I5b72fbe61e313511b69e8d2e96c2042742370b85
protected function doGetSize() {
$conn = $this->getConnection();
try {
protected function doGetSize() {
$conn = $this->getConnection();
try {
- return $conn->lSize( $this->getQueueKey( 'l-unclaimed' ) );
+ return $conn->lLen( $this->getQueueKey( 'l-unclaimed' ) );
} catch ( RedisException $e ) {
$this->throwRedisException( $conn, $e );
}
} catch ( RedisException $e ) {
$this->throwRedisException( $conn, $e );
}
try {
$conn->multi( Redis::PIPELINE );
foreach ( $types as $type ) {
try {
$conn->multi( Redis::PIPELINE );
foreach ( $types as $type ) {
- $conn->lSize( $this->getQueueKey( 'l-unclaimed', $type ) );
+ $conn->lLen( $this->getQueueKey( 'l-unclaimed', $type ) );
}
$res = $conn->exec();
if ( is_array( $res ) ) {
}
$res = $conn->exec();
if ( is_array( $res ) ) {