mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Restructure Cache to follow new paradigm
This commit is contained in:
parent
6a85d09c59
commit
68046573a4
52 changed files with 103 additions and 71 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace Friendica\Test\src\Core\Cache;
|
||||
|
||||
use Friendica\Core\Cache\APCuCache;
|
||||
use Friendica\Core\Cache\Type\APCuCache;
|
||||
|
||||
/**
|
||||
* @group APCU
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace Friendica\Test\src\Core\Cache;
|
||||
|
||||
use Friendica\Core\Cache\ArrayCache;
|
||||
use Friendica\Core\Cache\Type\ArrayCache;
|
||||
|
||||
class ArrayCacheTest extends MemoryCacheTest
|
||||
{
|
||||
|
|
|
@ -60,7 +60,7 @@ class DatabaseCacheTest extends CacheTest
|
|||
|
||||
$dba = new StaticDatabase($configCache, $profiler, $logger);
|
||||
|
||||
$this->cache = new Cache\DatabaseCache('database', $dba);
|
||||
$this->cache = new Cache\Type\DatabaseCache('database', $dba);
|
||||
return $this->cache;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
namespace Friendica\Test\src\Core\Cache;
|
||||
|
||||
use Exception;
|
||||
use Friendica\Core\Cache\MemcacheCache;
|
||||
use Friendica\Core\Cache\Type\MemcacheCache;
|
||||
use Friendica\Core\Config\IConfig;
|
||||
use Mockery;
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
namespace Friendica\Test\src\Core\Cache;
|
||||
|
||||
use Exception;
|
||||
use Friendica\Core\Cache\MemcachedCache;
|
||||
use Friendica\Core\Cache\Type\MemcachedCache;
|
||||
use Friendica\Core\Config\IConfig;
|
||||
use Mockery;
|
||||
use Psr\Log\NullLogger;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
namespace Friendica\Test\src\Core\Cache;
|
||||
|
||||
use Exception;
|
||||
use Friendica\Core\Cache\RedisCache;
|
||||
use Friendica\Core\Cache\Type\RedisCache;
|
||||
use Friendica\Core\Config\IConfig;
|
||||
use Mockery;
|
||||
|
||||
|
@ -58,7 +58,7 @@ class RedisCacheTest extends MemoryCacheTest
|
|||
->andReturn(null);
|
||||
|
||||
try {
|
||||
$this->cache = new RedisCache($host, $configMock);
|
||||
$this->cache = new \Friendica\Core\Cache\Type\RedisCache($host, $configMock);
|
||||
} catch (Exception $e) {
|
||||
static::markTestSkipped('Redis is not available. Failure: ' . $e->getMessage());
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace Friendica\Test\src\Core\Lock;
|
||||
|
||||
use Friendica\Core\Cache\APCuCache;
|
||||
use Friendica\Core\Cache\Type\APCuCache;
|
||||
use Friendica\Core\Lock\CacheLock;
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace Friendica\Test\src\Core\Lock;
|
||||
|
||||
use Friendica\Core\Cache\ArrayCache;
|
||||
use Friendica\Core\Cache\Type\ArrayCache;
|
||||
use Friendica\Core\Lock\CacheLock;
|
||||
|
||||
class ArrayCacheLockTest extends LockTest
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
namespace Friendica\Test\src\Core\Lock;
|
||||
|
||||
use Exception;
|
||||
use Friendica\Core\Cache\MemcacheCache;
|
||||
use Friendica\Core\Cache\Type\MemcacheCache;
|
||||
use Friendica\Core\Config\IConfig;
|
||||
use Friendica\Core\Lock\CacheLock;
|
||||
use Mockery;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
namespace Friendica\Test\src\Core\Lock;
|
||||
|
||||
use Exception;
|
||||
use Friendica\Core\Cache\MemcachedCache;
|
||||
use Friendica\Core\Cache\Type\MemcachedCache;
|
||||
use Friendica\Core\Config\IConfig;
|
||||
use Friendica\Core\Lock\CacheLock;
|
||||
use Mockery;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
namespace Friendica\Test\src\Core\Lock;
|
||||
|
||||
use Exception;
|
||||
use Friendica\Core\Cache\RedisCache;
|
||||
use Friendica\Core\Cache\Type\RedisCache;
|
||||
use Friendica\Core\Config\IConfig;
|
||||
use Friendica\Core\Lock\CacheLock;
|
||||
use Mockery;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue