2018-07-07 13:46:16 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Cache;
|
|
|
|
|
|
|
|
use Friendica\Core\Cache\ArrayCache;
|
|
|
|
|
2019-08-04 04:26:53 -04:00
|
|
|
class ArrayCacheTest extends MemoryCacheTest
|
2018-07-07 13:46:16 -04:00
|
|
|
{
|
|
|
|
protected function getInstance()
|
|
|
|
{
|
2019-08-03 14:48:56 -04:00
|
|
|
$this->cache = new ArrayCache('localhost');
|
2018-07-07 13:46:16 -04:00
|
|
|
return $this->cache;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function tearDown()
|
|
|
|
{
|
2018-07-07 14:35:42 -04:00
|
|
|
$this->cache->clear(false);
|
2018-07-07 13:46:16 -04:00
|
|
|
parent::tearDown();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function testTTL()
|
|
|
|
{
|
|
|
|
// Array Cache doesn't support TTL
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|