]> git.mxchange.org Git - friendica.git/blobdiff - src/Factory/CacheFactory.php
@brief is removed completely
[friendica.git] / src / Factory / CacheFactory.php
index 4e4fc67915d10b94373231e5cbdeaa9ec609c13b..8cf7fcd66aa0fbdc1ddda117dab069792dd1c872 100644 (file)
@@ -22,7 +22,7 @@ class CacheFactory
        /**
         * @var string The default cache if nothing set
         */
-       const DEFAULT_TYPE = Cache\Cache::TYPE_DATABASE;
+       const DEFAULT_TYPE = Cache\Type::DATABASE;
 
        /**
         * @var IConfiguration The IConfiguration to read parameters out of the config
@@ -73,16 +73,16 @@ class CacheFactory
                }
 
                switch ($type) {
-                       case Cache\Cache::TYPE_MEMCACHE:
+                       case Cache\Type::MEMCACHE:
                                $cache = new Cache\MemcacheCache($this->hostname, $this->config);
                                break;
-                       case Cache\Cache::TYPE_MEMCACHED:
+                       case Cache\Type::MEMCACHED:
                                $cache = new Cache\MemcachedCache($this->hostname, $this->config, $this->logger);
                                break;
-                       case Cache\Cache::TYPE_REDIS:
+                       case Cache\Type::REDIS:
                                $cache = new Cache\RedisCache($this->hostname, $this->config);
                                break;
-                       case Cache\Cache::TYPE_APCU:
+                       case Cache\Type::APCU:
                                $cache = new Cache\APCuCache($this->hostname);
                                break;
                        default: