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