Browse Source

Remove Cache::gc()

ADmad 7 years ago
parent
commit
10566f7a4d
1 changed files with 0 additions and 15 deletions
  1. 0 15
      src/Cache/Cache.php

+ 0 - 15
src/Cache/Cache.php

@@ -215,21 +215,6 @@ class Cache
     }
 
     /**
-     * Garbage collection
-     *
-     * Permanently remove all expired and deleted data
-     *
-     * @param string $config [optional] The config name you wish to have garbage collected. Defaults to 'default'
-     * @param int|null $expires [optional] An expires timestamp. Defaults to NULL
-     * @return void
-     */
-    public static function gc(string $config = 'default', ?int $expires = null): void
-    {
-        $engine = static::engine($config);
-        $engine->gc($expires);
-    }
-
-    /**
      * Write data for key into cache.
      *
      * ### Usage: