Avail feature updated
[ninja.git] / system / libraries / drivers / Cache.php
blob62dcb4c3c47cac18e629fafbd73001e8e7e99139
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 /**
3 * Cache driver interface.
5 * $Id: Cache.php 3917 2009-01-21 03:06:22Z zombor $
7 * @package Cache
8 * @author Kohana Team
9 * @copyright (c) 2007-2008 Kohana Team
10 * @license http://kohanaphp.com/license.html
12 interface Cache_Driver {
14 /**
15 * Set a cache item.
17 public function set($id, $data, $tags, $lifetime);
19 /**
20 * Find all of the cache ids for a given tag.
22 public function find($tag);
24 /**
25 * Get a cache item.
26 * Return NULL if the cache item is not found.
28 public function get($id);
30 /**
31 * Delete cache items by id or tag.
33 public function delete($id, $tag = FALSE);
35 /**
36 * Deletes all expired cache items.
38 public function delete_expired();
40 } // End Cache Driver