PHP Class CacheBae, thinksns

Inheritance: extends Cache
ファイルを表示 Open project: medz/thinksns-4 Class Usage Examples

Public Properties

Property Type Description
$_cache

Public Methods

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

Private Methods

Method Description
init ( ) : boolen +---------------------------------------------------------- 初始化检查 +---------------------------------------------------------- +----------------------------------------------------------
isConnected ( ) : boolen +---------------------------------------------------------- 是否连接 +---------------------------------------------------------- +----------------------------------------------------------

Method Details

__construct() public method

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

get() public method

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

queueGet() public static method

public static queueGet ( $name )

queueSet() public static method

public static queueSet ( $name, $value )

rm() public method

+---------------------------------------------------------- 删除缓存 +---------------------------------------------------------- +----------------------------------------------------------
public rm ( string $name ) : boolen
$name string 缓存变量名 +----------------------------------------------------------
return boolen +----------------------------------------------------------

set() public method

+---------------------------------------------------------- 写入缓存 +---------------------------------------------------------- +----------------------------------------------------------
public set ( string $name, mixed $value, integer $expire = null ) : boolen
$name string 缓存变量名
$value mixed 存储数据
$expire integer 有效时间 0为永久 +----------------------------------------------------------
return boolen +----------------------------------------------------------

Property Details

$_cache public_oe static_oe property

public static $_cache