]> git.mxchange.org Git - friendica.git/blobdiff - src/Factory/CacheFactory.php
Group selection: Respect "pubmail" and ignore atchived or blocked contacts
[friendica.git] / src / Factory / CacheFactory.php
index afb799e01c328b0db085c4ca0edd14c0a3b69beb..39b0b94ff7b5d8e6ddcd7fd07a38bd33cd0e8de3 100644 (file)
@@ -2,11 +2,11 @@
 
 namespace Friendica\Factory;
 
+use Friendica\App\BaseURL;
 use Friendica\Core\Cache;
 use Friendica\Core\Cache\ICache;
 use Friendica\Core\Config\Configuration;
 use Friendica\Database\Database;
-use Friendica\Util\BaseURL;
 use Friendica\Util\Profiler;
 use Psr\Log\LoggerInterface;
 
@@ -22,7 +22,7 @@ class CacheFactory
        /**
         * @var string The default cache if nothing set
         */
-       const DEFAULT_TYPE = Cache\AbstractCache::TYPE_DATABASE;
+       const DEFAULT_TYPE = Cache\Cache::TYPE_DATABASE;
 
        /**
         * @var Configuration The configuration to read parameters out of the config
@@ -73,16 +73,16 @@ class CacheFactory
                }
 
                switch ($type) {
-                       case Cache\AbstractCache::TYPE_MEMCACHE:
+                       case Cache\Cache::TYPE_MEMCACHE:
                                $cache = new Cache\MemcacheCache($this->hostname, $this->config);
                                break;
-                       case Cache\AbstractCache::TYPE_MEMCACHED:
+                       case Cache\Cache::TYPE_MEMCACHED:
                                $cache = new Cache\MemcachedCache($this->hostname, $this->config, $this->logger);
                                break;
-                       case Cache\AbstractCache::TYPE_REDIS:
+                       case Cache\Cache::TYPE_REDIS:
                                $cache = new Cache\RedisCache($this->hostname, $this->config);
                                break;
-                       case Cache\AbstractCache::TYPE_APCU:
+                       case Cache\Cache::TYPE_APCU:
                                $cache = new Cache\APCuCache($this->hostname);
                                break;
                        default: