-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdriver.php
More file actions
53 lines (39 loc) · 974 Bytes
/
driver.php
File metadata and controls
53 lines (39 loc) · 974 Bytes
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
43
44
45
46
47
48
49
50
51
52
53
<?php
/*
* khoaofgod@yahoo.com
* Website: http://www.phpfastcache.com
* Example at our website, any bugs, problems, please visit http://www.codehelper.io
*/
interface phpfastcache_driver {
/*
* Check if this Cache driver is available for server or not
*/
function __construct($option = array());
function checkdriver();
/*
* SET
* set a obj to cache
*/
function driver_set($keyword, $value = "", $time = 300, $option = array() );
/*
* GET
* return null or value of cache
*/
function driver_get($keyword, $option = array());
/*
* Stats
* Show stats of caching
* Return array ("info","size","data")
*/
function driver_stats($option = array());
/*
* Delete
* Delete a cache
*/
function driver_delete($keyword, $option = array());
/*
* clean
* Clean up whole cache
*/
function driver_clean($option = array());
}