2 namespace dns\system\cache\builder
;
5 * A cache builder provides data for the cache handler that ought to be cached.
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.builder
12 * @category Community Framework
14 interface ICacheBuilder
{
16 * Returns the data that ought to be cached.
18 * @param array $parameters
19 * @param string $arrayIndex
22 public function getData(array $parameters = array(), $arrayIndex = '');
25 * Returns maximum lifetime for cache resource.
29 public function getMaxLifetime();
32 * Flushes cache. If no parameters are given, all caches starting with
33 * the same cache name will be flushed too.
35 * @param array $parameters
37 public function reset(array $parameters = array());