mirror of
https://github.com/friendica/friendica
synced 2025-03-26 11:21:26 +00:00
- Added $prefix to all CacheDriver - Moved hostname magic to CacheDriver - Added test for getAllKeys()
27 lines
414 B
PHP
27 lines
414 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Core\Cache;
|
|
|
|
|
|
use Friendica\Core\Cache\ArrayCache;
|
|
|
|
class ArrayCacheDriverTest extends MemoryCacheTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
$this->cache = new ArrayCache();
|
|
return $this->cache;
|
|
}
|
|
|
|
public function tearDown()
|
|
{
|
|
$this->cache->clear(false);
|
|
parent::tearDown();
|
|
}
|
|
|
|
public function testTTL()
|
|
{
|
|
// Array Cache doesn't support TTL
|
|
return true;
|
|
}
|
|
}
|