PHP Interface phprs\util\KVCatchInterface

Show file Open project: caoym/phprs-restful

Public Methods

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

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 ) : mixed
$key string
$succeeded boolean
return mixed

set() public method

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