\think\saeCache

SAE Memcache缓存驱动

Summary

Methods
Properties
Constants
__construct()
get()
set()
rm()
clear()
No public properties found
No constants found
No protected methods found
$handler
$options
N/A
getKv()
No private properties found
N/A

Properties

$handler

$handler : 

Type

$options

$options : 

Type

Methods

__construct()

__construct(array  $options = array()) 

架构函数

Parameters

array $options

缓存参数

get()

get(string  $name) : mixed

读取缓存

Parameters

string $name

缓存变量名

Returns

mixed

set()

set(string  $name, mixed  $value, integer  $expire = null) : boolean

写入缓存

Parameters

string $name

缓存变量名

mixed $value

存储数据

integer $expire

有效时间(秒)

Returns

boolean

rm()

rm(string  $name, boolean|false  $ttl = false) : boolean

删除缓存

Parameters

string $name

缓存变量名

boolean|false $ttl

Returns

boolean

clear()

clear() : boolean

清除缓存

Returns

boolean

getKv()

getKv() 

获得SaeKv对象