We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c0dd2 commit 0f003bcCopy full SHA for 0f003bc
tests/TestRedis.php
@@ -408,6 +408,13 @@ public function testSetNX() {
408
$this->assertTrue($this->redis->get('key') === '42');
409
}
410
411
+ public function testExpireAtWithLong() {
412
+ $longExpiryTimeExceedingInt = 3153600000;
413
+ $this->redis->delete('key');
414
+ $this->assertTrue($this->redis->setex('key', $longExpiryTimeExceedingInt, 'val') === TRUE);
415
+ $this->assertTrue($this->redis->ttl('key') === $longExpiryTimeExceedingInt);
416
+ }
417
+
418
public function testIncr()
419
{
420
$this->redis->set('key', 0);
0 commit comments