PHP 클래스 CacheBae, thinksns

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

공개 프로퍼티들

프로퍼티 타입 설명
$_cache

공개 메소드들

메소드 설명
__construct ( $options = '' ) +---------------------------------------------------------- 架构函数 +---------------------------------------------------------- +----------------------------------------------------------
get ( string $name ) : mixed +---------------------------------------------------------- 读取缓存 +---------------------------------------------------------- +----------------------------------------------------------
queueGet ( $name )
queueSet ( $name, $value )
rm ( string $name ) : boolen +---------------------------------------------------------- 删除缓存 +---------------------------------------------------------- +----------------------------------------------------------
set ( string $name, mixed $value, integer $expire = null ) : boolen +---------------------------------------------------------- 写入缓存 +---------------------------------------------------------- +----------------------------------------------------------

비공개 메소드들

메소드 설명
init ( ) : boolen +---------------------------------------------------------- 初始化检查 +---------------------------------------------------------- +----------------------------------------------------------
isConnected ( ) : boolen +---------------------------------------------------------- 是否连接 +---------------------------------------------------------- +----------------------------------------------------------

메소드 상세

__construct() 공개 메소드

+---------------------------------------------------------- 架构函数 +---------------------------------------------------------- +----------------------------------------------------------
public __construct ( $options = '' )

get() 공개 메소드

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

queueGet() 공개 정적인 메소드

public static queueGet ( $name )

queueSet() 공개 정적인 메소드

public static queueSet ( $name, $value )

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 有效时间 0为永久 +----------------------------------------------------------
리턴 boolen +----------------------------------------------------------

프로퍼티 상세

$_cache 공개적으로 정적으로 프로퍼티

public static $_cache