PHP Class phprs\util\ApcCache

Author: caoym
Inheritance: implements phprs\util\KVCatchInterface
Datei anzeigen Open project: caoym/phprs-restful

Public Methods

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

Method Details

del() public method

public del ( string $key ) : boolean
$key string
return boolean mixed Returns true on success or false on failure.

get() public method

get
public get ( string $key, boolean &$succeeded ) : mixed
$key string
$succeeded boolean
return mixed The stored variable or array of variables on success; false on failure

set() public method

public set ( string $key, string $var, integer $ttl ) : boolean
$key string
$var string
$ttl integer
return boolean bool Returns true on success or false on failure. Second syntax returns array with error keys.