Browse Source

Restructure Cache to follow new paradigm

pull/10918/head
Philipp 7 months ago
parent
commit
68046573a4
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432
  1. 2
      mod/ping.php
  2. 2
      src/App/Router.php
  3. 2
      src/Console/Cache.php
  4. 2
      src/Content/OEmbed.php
  5. 2
      src/Content/Widget.php
  6. 2
      src/Core/Cache/Enum/Duration.php
  7. 2
      src/Core/Cache/Enum/Type.php
  8. 24
      src/Core/Cache/Factory/CacheFactory.php
  9. 2
      src/Core/Cache/ICache.php
  10. 2
      src/Core/Cache/IMemoryCache.php
  11. 8
      src/Core/Cache/Type/APCuCache.php
  12. 7
      src/Core/Cache/Type/ArrayCache.php
  13. 2
      src/Core/Cache/Type/BaseCache.php
  14. 6
      src/Core/Cache/Type/DatabaseCache.php
  15. 9
      src/Core/Cache/Type/MemcacheCache.php
  16. 9
      src/Core/Cache/Type/MemcachedCache.php
  17. 6
      src/Core/Cache/Type/ProfilerCache.php
  18. 6
      src/Core/Cache/Type/RedisCache.php
  19. 4
      src/Core/Cache/Type/TraitCompareDelete.php
  20. 4
      src/Core/Cache/Type/TraitCompareSet.php
  21. 2
      src/Core/Cache/Type/TraitMemcacheCommand.php
  22. 2
      src/Core/Lock/CacheLock.php
  23. 2
      src/Core/Lock/DatabaseLock.php
  24. 2
      src/Core/Lock/ILock.php
  25. 2
      src/Core/Lock/SemaphoreLock.php
  26. 2
      src/Core/Lock/Type.php
  27. 4
      src/Core/Update.php
  28. 3
      src/Factory/LockFactory.php
  29. 2
      src/Factory/SessionFactory.php
  30. 2
      src/Model/APContact.php
  31. 2
      src/Model/Photo.php
  32. 2
      src/Model/Profile.php
  33. 2
      src/Model/Tag.php
  34. 2
      src/Module/Search/Index.php
  35. 2
      src/Protocol/ActivityPub/Transmitter.php
  36. 2
      src/Protocol/Diaspora.php
  37. 2
      src/Protocol/Feed.php
  38. 2
      src/Protocol/OStatus.php
  39. 2
      src/Util/JsonLD.php
  40. 2
      src/Worker/SearchDirectory.php
  41. 4
      static/dependencies.config.php
  42. 2
      tests/src/Core/Cache/APCuCacheTest.php
  43. 2
      tests/src/Core/Cache/ArrayCacheTest.php
  44. 2
      tests/src/Core/Cache/DatabaseCacheTest.php
  45. 2
      tests/src/Core/Cache/MemcacheCacheTest.php
  46. 2
      tests/src/Core/Cache/MemcachedCacheTest.php
  47. 4
      tests/src/Core/Cache/RedisCacheTest.php
  48. 2
      tests/src/Core/Lock/APCuCacheLockTest.php
  49. 2
      tests/src/Core/Lock/ArrayCacheLockTest.php
  50. 2
      tests/src/Core/Lock/MemcacheCacheLockTest.php
  51. 2
      tests/src/Core/Lock/MemcachedCacheLockTest.php
  52. 2
      tests/src/Core/Lock/RedisCacheLockTest.php

2
mod/ping.php

@ -22,7 +22,7 @@
use Friendica\App;
use Friendica\Content\ForumManager;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Hook;
use Friendica\Database\DBA;
use Friendica\DI;

2
src/App/Router.php

@ -26,7 +26,7 @@ use FastRoute\DataGenerator\GroupCountBased;
use FastRoute\Dispatcher;
use FastRoute\RouteCollector;
use FastRoute\RouteParser\Std;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\ICache;
use Friendica\Core\Hook;
use Friendica\Core\L10n;

2
src/Console/Cache.php

@ -23,7 +23,7 @@ namespace Friendica\Console;
use Asika\SimpleConsole\CommandArgsException;
use Friendica\App;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\ICache;
use RuntimeException;

2
src/Content/OEmbed.php

@ -26,7 +26,7 @@ use DOMNode;
use DOMText;
use DOMXPath;
use Exception;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Hook;
use Friendica\Core\Renderer;
use Friendica\Database\Database;

2
src/Content/Widget.php

@ -22,7 +22,7 @@
namespace Friendica\Content;
use Friendica\Core\Addon;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Protocol;
use Friendica\Core\Renderer;
use Friendica\Database\DBA;

2
src/Core/Cache/Duration.php → src/Core/Cache/Enum/Duration.php

@ -19,7 +19,7 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Enum;
/**
* Enumeration for cache durations

2
src/Core/Cache/Type.php → src/Core/Cache/Enum/Type.php

@ -19,7 +19,7 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Enum;
/**
* Enumeration for cache types

24
src/Factory/CacheFactory.php → src/Core/Cache/Factory/CacheFactory.php

@ -19,7 +19,7 @@
*
*/
namespace Friendica\Factory;
namespace Friendica\Core\Cache\Factory;
use Friendica\App\BaseURL;
use Friendica\Core\Cache;
@ -41,7 +41,7 @@ class CacheFactory
/**
* @var string The default cache if nothing set
*/
const DEFAULT_TYPE = Cache\Type::DATABASE;
const DEFAULT_TYPE = Cache\Enum\Type::DATABASE;
/**
* @var IConfig The IConfiguration to read parameters out of the config
@ -92,27 +92,27 @@ class CacheFactory
}
switch ($type) {
case Cache\Type::MEMCACHE:
$cache = new Cache\MemcacheCache($this->hostname, $this->config);
case Cache\Enum\Type::MEMCACHE:
$cache = new Cache\Type\MemcacheCache($this->hostname, $this->config);
break;
case Cache\Type::MEMCACHED:
$cache = new Cache\MemcachedCache($this->hostname, $this->config, $this->logger);
case Cache\Enum\Type::MEMCACHED:
$cache = new Cache\Type\MemcachedCache($this->hostname, $this->config, $this->logger);
break;
case Cache\Type::REDIS:
$cache = new Cache\RedisCache($this->hostname, $this->config);
case Cache\Enum\Type::REDIS:
$cache = new Cache\Type\RedisCache($this->hostname, $this->config);
break;
case Cache\Type::APCU:
$cache = new Cache\APCuCache($this->hostname);
case Cache\Enum\Type::APCU:
$cache = new Cache\Type\APCuCache($this->hostname);
break;
default:
$cache = new Cache\DatabaseCache($this->hostname, $this->dba);
$cache = new Cache\Type\DatabaseCache($this->hostname, $this->dba);
}
$profiling = $this->config->get('system', 'profiling', false);
// In case profiling is enabled, wrap the ProfilerCache around the current cache
if (isset($profiling) && $profiling !== false) {
return new Cache\ProfilerCache($cache, $this->profiler);
return new Cache\Type\ProfilerCache($cache, $this->profiler);
} else {
return $cache;
}

2
src/Core/Cache/ICache.php

@ -21,6 +21,8 @@
namespace Friendica\Core\Cache;
use Friendica\Core\Cache\Enum\Duration;
/**
* Cache Interface
*/

2
src/Core/Cache/IMemoryCache.php

@ -21,6 +21,8 @@
namespace Friendica\Core\Cache;
use Friendica\Core\Cache\Enum\Duration;
/**
* This interface defines methods for Memory-Caches only
*/

8
src/Core/Cache/APCuCache.php → src/Core/Cache/Type/APCuCache.php

@ -19,10 +19,14 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Exception;
use Friendica\Core\BaseCache;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\IMemoryCache;
use Friendica\Core\Cache\Type\TraitCompareDelete;
use Friendica\Core\Cache\Type\TraitCompareSet;
use Friendica\Core\Cache\Enum\Type;
/**
* APCu Cache.

7
src/Core/Cache/ArrayCache.php → src/Core/Cache/Type/ArrayCache.php

@ -19,9 +19,12 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Friendica\Core\BaseCache;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\IMemoryCache;
use Friendica\Core\Cache\Type\TraitCompareDelete;
use Friendica\Core\Cache\Enum\Type;
/**
* Implementation of the IMemoryCache mainly for testing purpose

2
src/Core/BaseCache.php → src/Core/Cache/Type/BaseCache.php

@ -19,7 +19,7 @@
*
*/
namespace Friendica\Core;
namespace Friendica\Core\Cache\Type;
use Friendica\Core\Cache\ICache;

6
src/Core/Cache/DatabaseCache.php → src/Core/Cache/Type/DatabaseCache.php

@ -19,11 +19,13 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\ICache;
use Friendica\Core\Cache\Enum\Type;
use Friendica\Database\Database;
use Friendica\Util\DateTimeFormat;
use Friendica\Core\BaseCache;
/**
* Database Cache

9
src/Core/Cache/MemcacheCache.php → src/Core/Cache/Type/MemcacheCache.php

@ -19,10 +19,15 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Exception;
use Friendica\Core\BaseCache;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\IMemoryCache;
use Friendica\Core\Cache\Type\TraitCompareDelete;
use Friendica\Core\Cache\Type\TraitCompareSet;
use Friendica\Core\Cache\Type\TraitMemcacheCommand;
use Friendica\Core\Cache\Enum\Type;
use Friendica\Core\Config\IConfig;
use Memcache;

9
src/Core/Cache/MemcachedCache.php → src/Core/Cache/Type/MemcachedCache.php

@ -19,10 +19,15 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Exception;
use Friendica\Core\BaseCache;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\IMemoryCache;
use Friendica\Core\Cache\Type\TraitCompareDelete;
use Friendica\Core\Cache\Type\TraitCompareSet;
use Friendica\Core\Cache\Type\TraitMemcacheCommand;
use Friendica\Core\Cache\Enum\Type;
use Friendica\Core\Config\IConfig;
use Memcached;
use Psr\Log\LoggerInterface;

6
src/Core/Cache/ProfilerCache.php → src/Core/Cache/Type/ProfilerCache.php

@ -19,9 +19,11 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Friendica\Core\System;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\ICache;
use Friendica\Core\Cache\IMemoryCache;
use Friendica\Util\Profiler;
/**

6
src/Core/Cache/RedisCache.php → src/Core/Cache/Type/RedisCache.php

@ -19,10 +19,12 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Exception;
use Friendica\Core\BaseCache;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\IMemoryCache;
use Friendica\Core\Cache\Enum\Type;
use Friendica\Core\Config\IConfig;
use Redis;

4
src/Core/Cache/TraitCompareDelete.php → src/Core/Cache/Type/TraitCompareDelete.php

@ -19,7 +19,9 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Friendica\Core\Cache\Enum\Duration;
/**
* Trait TraitCompareSetDelete

4
src/Core/Cache/TraitCompareSet.php → src/Core/Cache/Type/TraitCompareSet.php

@ -19,7 +19,9 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Friendica\Core\Cache\Enum\Duration;
/**
* Trait TraitCompareSetDelete

2
src/Core/Cache/TraitMemcacheCommand.php → src/Core/Cache/Type/TraitMemcacheCommand.php

@ -19,7 +19,7 @@
*
*/
namespace Friendica\Core\Cache;
namespace Friendica\Core\Cache\Type;
use Friendica\Network\HTTPException\InternalServerErrorException;

2
src/Core/Lock/CacheLock.php

@ -22,7 +22,7 @@
namespace Friendica\Core\Lock;
use Friendica\Core\BaseLock;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Cache\IMemoryCache;
class CacheLock extends BaseLock

2
src/Core/Lock/DatabaseLock.php

@ -22,7 +22,7 @@
namespace Friendica\Core\Lock;
use Friendica\Core\BaseLock;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Database\Database;
use Friendica\Util\DateTimeFormat;

2
src/Core/Lock/ILock.php

@ -21,7 +21,7 @@
namespace Friendica\Core\Lock;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
/**
* Lock Interface

2
src/Core/Lock/SemaphoreLock.php

@ -22,7 +22,7 @@
namespace Friendica\Core\Lock;
use Friendica\Core\BaseLock;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
class SemaphoreLock extends BaseLock
{

2
src/Core/Lock/Type.php

@ -21,7 +21,7 @@
namespace Friendica\Core\Lock;
use Friendica\Core\Cache\Type as CacheType;
use Friendica\Core\Cache\Enum\Type as CacheType;
/**
* Enumeration for lock types

4
src/Core/Update.php

@ -132,7 +132,7 @@ class Update
// Compare the current structure with the defined structure
// If the Lock is acquired, never release it automatically to avoid double updates
if (DI::lock()->acquire('dbupdate', 0, Cache\Duration::INFINITE)) {
if (DI::lock()->acquire('dbupdate', 0, Cache\Enum\Duration::INFINITE)) {
Logger::notice('Update starting.', ['from' => $stored, 'to' => $current]);
@ -246,7 +246,7 @@ class Update
// If the update fails or times-out completely you may need to
// delete the config entry to try again.
if (DI::lock()->acquire('dbupdate_function', 120, Cache\Duration::INFINITE)) {
if (DI::lock()->acquire('dbupdate_function', 120, Cache\Enum\Duration::INFINITE)) {
// call the specific update
Logger::notice('Pre update function start.', ['function' => $funcname]);

3
src/Factory/LockFactory.php

@ -21,8 +21,9 @@
namespace Friendica\Factory;
use Friendica\Core\Cache\Factory\CacheFactory;
use Friendica\Core\Cache\IMemoryCache;
use Friendica\Core\Cache\Type;
use Friendica\Core\Cache\Enum\Type;
use Friendica\Core\Config\IConfig;
use Friendica\Core\Lock;
use Friendica\Database\Database;

2
src/Factory/SessionFactory.php

@ -23,7 +23,7 @@ namespace Friendica\Factory;
use Friendica\App;
use Friendica\Core\Cache\ICache;
use Friendica\Core\Cache\Type;
use Friendica\Core\Cache\Enum\Type;
use Friendica\Core\Config\IConfig;
use Friendica\Core\Session;
use Friendica\Core\System;

2
src/Model/APContact.php

@ -22,7 +22,7 @@
namespace Friendica\Model;
use Friendica\Content\Text\HTML;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Database\DBA;

2
src/Model/Photo.php

@ -21,7 +21,7 @@
namespace Friendica\Model;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Friendica\Core\System;
use Friendica\Database\DBA;

2
src/Model/Profile.php

@ -24,7 +24,7 @@ namespace Friendica\Model;
use Friendica\App;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Widget\ContactBlock;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;

2
src/Model/Tag.php

@ -22,7 +22,7 @@
namespace Friendica\Model;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;

2
src/Module/Search/Index.php

@ -25,7 +25,7 @@ use Friendica\Content\Nav;
use Friendica\Content\Pager;
use Friendica\Content\Text\HTML;
use Friendica\Content\Widget;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Friendica\Core\Renderer;
use Friendica\Core\Search;

2
src/Protocol/ActivityPub/Transmitter.php

@ -23,7 +23,7 @@ namespace Friendica\Protocol\ActivityPub;
use Friendica\Content\Feature;
use Friendica\Content\Text\BBCode;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;

2
src/Protocol/Diaspora.php

@ -24,7 +24,7 @@ namespace Friendica\Protocol;
use Friendica\Content\Feature;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\Markdown;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Core\System;

2
src/Protocol/Feed.php

@ -26,7 +26,7 @@ use DOMXPath;
use Friendica\Content\PageInfo;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;

2
src/Protocol/OStatus.php

@ -25,7 +25,7 @@ use DOMDocument;
use DOMXPath;
use Friendica\Content\Text\BBCode;
use Friendica\Content\Text\HTML;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Friendica\Core\Protocol;
use Friendica\Database\DBA;

2
src/Util/JsonLD.php

@ -21,7 +21,7 @@
namespace Friendica\Util;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Exception;
use Friendica\DI;

2
src/Worker/SearchDirectory.php

@ -21,7 +21,7 @@
namespace Friendica\Worker;
use Friendica\Core\Cache\Duration;
use Friendica\Core\Cache\Enum\Duration;
use Friendica\Core\Logger;
use Friendica\Core\Search;
use Friendica\DI;

4
static/dependencies.config.php

@ -158,13 +158,13 @@ return [
]
],
Cache\ICache::class => [
'instanceOf' => Factory\CacheFactory::class,
'instanceOf' => Cache\Factory\CacheFactory::class,
'call' => [
['create', [], Dice::CHAIN_CALL],
],
],
Cache\IMemoryCache::class => [
'instanceOf' => Factory\CacheFactory::class,
'instanceOf' => Cache\Factory\CacheFactory::class,
'call' => [
['create', [], Dice::CHAIN_CALL],
],

2
tests/src/Core/Cache/APCuCacheTest.php

@ -21,7 +21,7 @@
namespace Friendica\Test\src\Core\Cache;
use Friendica\Core\Cache\APCuCache;
use Friendica\Core\Cache\Type\APCuCache;
/**
* @group APCU

2
tests/src/Core/Cache/ArrayCacheTest.php

@ -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
{

2
tests/src/Core/Cache/DatabaseCacheTest.php

@ -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;
}

2
tests/src/Core/Cache/MemcacheCacheTest.php

@ -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;

2
tests/src/Core/Cache/MemcachedCacheTest.php

@ -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;

4
tests/src/Core/Cache/RedisCacheTest.php

@ -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());
}

2
tests/src/Core/Lock/APCuCacheLockTest.php

@ -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;
/**

2
tests/src/Core/Lock/ArrayCacheLockTest.php

@ -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

2
tests/src/Core/Lock/MemcacheCacheLockTest.php

@ -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;

2
tests/src/Core/Lock/MemcachedCacheLockTest.php

@ -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;

2
tests/src/Core/Lock/RedisCacheLockTest.php

@ -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…
Cancel
Save