mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48: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));
|
||||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
* @covers phpOMS\DataStorage\Cache\Connection\RedisCache<extended>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user