Skip to content

Commit

Permalink
Added support for CLIENT NO-EVICT command (#1335)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladvildanov authored Jul 12, 2023
1 parent dd64569 commit 0b6ab4d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Predis/Command/Redis/CLIENT_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,18 @@ public function testSetsNameOfConnection(): void
$this->assertEquals($expectedConnectionName, $redis->client('GETNAME'));
}

/**
* @group connected
* @requiresRedisVersion >= 7.0.0
*/
public function testSetNoEvictModeForCurrentConnection(): void
{
$redis = $this->getClient();

$this->assertEquals('OK', $redis->client('NO-EVICT', 'ON'));
$this->assertEquals('OK', $redis->client('NO-EVICT', 'OFF'));
}

/**
* @return array
*/
Expand Down

0 comments on commit 0b6ab4d

Please sign in to comment.