mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +00:00
remove expire remove
This commit is contained in:
parent
1abce14674
commit
4be0788af8
|
|
@ -231,18 +231,6 @@ class RedisCacheTest extends \PHPUnit\Framework\TestCase
|
||||||
self::assertNull($this->cache->get('key2', 1));
|
self::assertNull($this->cache->get('key2', 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @testdox Expired cache data can be deleted if equal expiration is defined
|
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
|
||||||
* @group framework
|
|
||||||
*/
|
|
||||||
public function testDeleteExpired() : void
|
|
||||||
{
|
|
||||||
$this->cache->set('key4', 'testVal4', 1);
|
|
||||||
\sleep(2);
|
|
||||||
self::assertTrue($this->cache->delete('key4', 1));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox A bad cache status will prevent all cache actions
|
* @testdox A bad cache status will prevent all cache actions
|
||||||
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user