Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
CacheWincache
PHP Class CacheWincache, thinksns
Author:
liu21st (
[email protected]
)
Inheritance:
extends
Cache
Mostrar archivo
Open project: medz/thinksns-4
Class Usage Examples
Public Methods
Method
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
method
架构函数
public
__construct
(
array
$options
= [] )
$options
array
缓存参数
clear()
public
method
清除缓存
public
clear
( ) :
boolen
return
boolen
get()
public
method
读取缓存
public
get
(
string
$name
) :
mixed
$name
string
缓存变量名
return
mixed
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
有效时间(秒)
return
boolen