1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 05:07:36 +02:00

Fix case of Redis::lTrim call

This commit is contained in:
Jordi Boggiano
2023-11-10 13:29:35 +01:00
committed by GitHub
parent 59c8bdf6a2
commit c412c2e0d6

View File

@@ -72,7 +72,7 @@ class RedisHandler extends AbstractProcessingHandler
$mode = defined('Redis::MULTI') ? Redis::MULTI : 1;
$this->redisClient->multi($mode)
->rPush($this->redisKey, $record->formatted)
->ltrim($this->redisKey, -$this->capSize, -1)
->lTrim($this->redisKey, -$this->capSize, -1)
->exec();
} else {
$redisKey = $this->redisKey;