PHP Class CacheApc, thinksns

Inheritance: extends ObjectCache
Afficher le fichier Open project: medz/thinksns-4 Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $options = [] ) 架构函数
clear ( ) : boolen 清除缓存
get ( string $name ) : mixed 读取缓存
rm ( string $name ) : boolen 删除缓存
set ( string $name, mixed $value, integer $expire = null ) : boolen 写入缓存

Method Details

__construct() public méthode

架构函数
public __construct ( array $options = [] )
$options array 缓存参数

clear() public méthode

清除缓存
public clear ( ) : boolen
Résultat boolen

get() public méthode

读取缓存
public get ( string $name ) : mixed
$name string 缓存变量名
Résultat mixed

rm() public méthode

删除缓存
public rm ( string $name ) : boolen
$name string 缓存变量名
Résultat boolen

set() public méthode

写入缓存
public set ( string $name, mixed $value, integer $expire = null ) : boolen
$name string 缓存变量名
$value mixed 存储数据
$expire integer 有效时间(秒)
Résultat boolen