PHP Class phprs\util\RedisCache

Inheritance: implements phprs\util\KVCatchInterface
显示文件 Open project: caoym/phprs-restful

Public Methods

Method Description
del ( string $key ) : boolean 删除key
get ( string $key, boolean &$succeeded = null ) : mixed get key
set ( string $key, mixed $var, integer $ttl = null ) : boolean 设置key

Private Methods

Method Description
getImpl ( )

Method Details

del() public method

删除key
public del ( string $key ) : boolean
$key string
return boolean

get() public method

get key
public get ( string $key, boolean &$succeeded = null ) : mixed
$key string
$succeeded boolean
return mixed

set() public method

设置key
public set ( string $key, mixed $var, integer $ttl = null ) : boolean
$key string
$var mixed
$ttl integer
return boolean