PHP 클래스 CacheApc, thinksns

상속: extends ObjectCache
파일 보기 프로젝트 열기: medz/thinksns-4 1 사용 예제들

공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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

clear() 공개 메소드

清除缓存
public clear ( ) : boolen
리턴 boolen

get() 공개 메소드

读取缓存
public get ( string $name ) : mixed
$name string 缓存变量名
리턴 mixed

rm() 공개 메소드

删除缓存
public rm ( string $name ) : boolen
$name string 缓存变量名
리턴 boolen

set() 공개 메소드

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