Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
fix: compression transition errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ozon1234 committed Apr 3, 2023
1 parent 2c65533 commit 36cc487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RedisAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function del(string $key): void {
*/
public function zRem(string $key, string $member): void {
$res = $this->redis->zRem($key, $member);
if ($res === 0) {
if ($res === 0 || $res instanceof Redis) {
$was = $this->compressionFix();
$this->redis->zRem($key, $member);
$this->compressionFix($was);
Expand Down

0 comments on commit 36cc487

Please sign in to comment.