]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/Cache.php
Increase cache lifespan / clear cache upon changes
[friendica.git] / src / Console / Cache.php
index 049ffd0ffb39825e2606efe8b07d863f70f2fe5f..e02d2225a2234698f741fdb5e866039bd3c54db4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -23,8 +23,8 @@ namespace Friendica\Console;
 
 use Asika\SimpleConsole\CommandArgsException;
 use Friendica\App;
-use Friendica\Core\Cache\Duration;
-use Friendica\Core\Cache\ICache;
+use Friendica\Core\Cache\Enum\Duration;
+use Friendica\Core\Cache\Capability\ICanCache;
 use RuntimeException;
 
 /**
@@ -44,7 +44,7 @@ class Cache extends \Asika\SimpleConsole\Console
        private $appMode;
 
        /**
-        * @var ICache
+        * @var ICanCache
         */
        private $cache;
 
@@ -82,7 +82,7 @@ HELP;
                return $help;
        }
 
-       public function __construct(App\Mode $appMode, ICache $cache, array $argv = null)
+       public function __construct(App\Mode $appMode, ICanCache $cache, array $argv = null)
        {
                parent::__construct($argv);