mirror of
https://github.com/predis/predis.git
synced 2026-08-31 20:53:09 +00:00
Added support for CLIENT NO-EVICT command (#1335)
This commit is contained in:
committed by
GitHub
parent
dd64569e06
commit
0b6ab4dea4
@@ -172,6 +172,18 @@ BUFFER;
|
||||
$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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user