You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?php |
|
|
|
|
|
interface TpCache |
|
{ |
|
//初始化 |
|
public function init($option); |
|
|
|
//添加缓存 |
|
public function add($key, $value, $expire=null); |
|
|
|
//删除缓存 |
|
public function delete($key); |
|
|
|
//设置缓存 |
|
public function set($key, $value, $expire=null); |
|
|
|
//获取缓存 |
|
public function get($key); |
|
|
|
//清空缓存 |
|
public function flush(); |
|
} |