2 namespace dns\system\cache\source
;
5 * Any cache sources should implement this interface.
7 * @author Alexander Ebert
8 * @copyright 2001-2014 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package com.woltlab.wcf
11 * @subpackage system.cache.source
12 * @category Community Framework
14 interface ICacheSource
{
16 * Flushes a specific cache, optionally removing caches which share the same name.
18 * @param string $cacheName
19 * @param boolean $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 integer $maxLifetime
35 public function get($cacheName, $maxLifetime);
38 * Stores a variable in the cache.
40 * @param string $cacheName
42 * @param integer $maxLifetime
44 public function set($cacheName, $value, $maxLifetime);