2 namespace wcf\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-2017 WoltLab GmbH
9 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
10 * @package WoltLabSuite\Core\System\Cache\Builder
12 interface ICacheBuilder
{
14 * Returns the data that ought to be cached.
16 * @param array $parameters
17 * @param string $arrayIndex
20 public function getData(array $parameters = [], $arrayIndex = '');
23 * Returns maximum lifetime for cache resource.
27 public function getMaxLifetime();
30 * Flushes cache. If no parameters are given, all caches starting with
31 * the same cache name will be flushed too.
33 * @param array $parameters
35 public function reset(array $parameters = []);