blob: 9741509698e116765a44f2e9efde36d12c752657 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* Cache driver abstract class.
*
* $Id$
*
* @package Cache
* @author Kohana Team
* @copyright (c) 2007-2009 Kohana Team
* @license http://kohanaphp.com/license
*/
abstract class Cache_Driver {
/**
* Set cache items
*/
abstract public function set($items, $tags = NULL, $lifetime = NULL);
/**
* Get a cache items by key
*/
abstract public function get($keys, $single = FALSE);
/**
* Get cache items by tag
*/
abstract public function get_tag($tags);
/**
* Delete cache item by key
*/
abstract public function delete($keys);
/**
* Delete cache items by tag
*/
abstract public function delete_tag($tags);
/**
* Empty the cache
*/
abstract public function delete_all();
} // End Cache Driver
|