]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache.php
Move Cache::clear() to DI::cache()->clear()
[friendica.git] / src / Core / Cache.php
index d0a04b9ec16ec805bddd0dca4e14a124a9b783e4..3e8a3f00475656a6c560e32a8cc1d5398cf11f53 100644 (file)
@@ -31,19 +31,6 @@ class Cache
        /** @deprecated Use CacheClass::INFINITE */
        const INFINITE     = CacheClass::INFINITE;
 
-       /**
-        * @brief Returns all the cache keys sorted alphabetically
-        *
-        * @param string $prefix Prefix of the keys (optional)
-        *
-        * @return array Empty if the driver doesn't support this feature
-        * @throws \Exception
-        */
-       public static function getAllKeys($prefix = null)
-       {
-               return DI::cache()->getAllKeys($prefix);
-       }
-
        /**
         * @brief Fetch cached data according to the key
         *
@@ -86,17 +73,4 @@ class Cache
        {
                return DI::cache()->delete($key);
        }
-
-       /**
-        * @brief Remove outdated data from the cache
-        *
-        * @param boolean $outdated just remove outdated values
-        *
-        * @return bool
-        * @throws \Exception
-        */
-       public static function clear($outdated = true)
-       {
-               return DI::cache()->clear($outdated);
-       }
 }