3 namespace wcf\system\cache\source
;
6 * Any cache sources should implement this interface.
8 * @author Alexander Ebert
9 * @copyright 2001-2019 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\Cache\Source
13 interface ICacheSource
16 * Flushes a specific cache, optionally removing caches which share the same name.
18 * @param string $cacheName
19 * @param bool $useWildcard
21 public function flush($cacheName, $useWildcard);
24 * Clears the cache completely.
26 public function flushAll();
29 * Returns a cached variable.
31 * @param string $cacheName
32 * @param int $maxLifetime
35 public function get($cacheName, $maxLifetime);
38 * Stores a variable in the cache.
40 * @param string $cacheName
42 * @param int $maxLifetime
44 public function set($cacheName, $value, $maxLifetime);