1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
3 * Cache driver interface.
5 * $Id: Cache.php 3917 2009-01-21 03:06:22Z zombor $
9 * @copyright (c) 2007-2008 Kohana Team
10 * @license http://kohanaphp.com/license.html
12 interface Cache_Driver
{
17 public function set($id, $data, $tags, $lifetime);
20 * Find all of the cache ids for a given tag.
22 public function find($tag);
26 * Return NULL if the cache item is not found.
28 public function get($id);
31 * Delete cache items by id or tag.
33 public function delete($id, $tag = FALSE);
36 * Deletes all expired cache items.
38 public function delete_expired();