mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-13 23:28:39 +00:00
debug ttl
This commit is contained in:
parent
5d220b1430
commit
da10692f57
|
|
@ -107,6 +107,7 @@ class RedisCache extends ConnectionAbstract
|
||||||
|
|
||||||
if ($expire > 0) {
|
if ($expire > 0) {
|
||||||
$this->con->setEx($key, $expire, $this->build($value));
|
$this->con->setEx($key, $expire, $this->build($value));
|
||||||
|
var_dump($this->con->ttl($key));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->con->set($key, $this->build($value));
|
$this->con->set($key, $this->build($value));
|
||||||
|
|
|
||||||
|
|
@ -227,7 +227,7 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
{
|
{
|
||||||
$this->cache->set('key2', 'testVal2', 1);
|
$this->cache->set('key2', 'testVal2', 1);
|
||||||
self::assertEquals('testVal2', $this->cache->get('key2', 1));
|
self::assertEquals('testVal2', $this->cache->get('key2', 1));
|
||||||
\sleep(5);
|
\sleep(2);
|
||||||
self::assertNull($this->cache->get('key2', 1));
|
self::assertNull($this->cache->get('key2', 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user