PHP Class phprs\util\FileCache

Author: caoym
Inheritance: implements phprs\util\KVCatchInterface
Afficher le fichier Open project: caoym/phprs-restful

Méthodes publiques

Méthode Description
__construct ( $cache_dir = null )
del ( string $key ) : boolean 删除key
get ( string $key, boolean &$succeeded = null ) : mixed 模拟apc, 只在没有apc的开发环境使用
set ( string $key, mixed $var, integer $ttl ) : void 设置key

Method Details

__construct() public méthode

public __construct ( $cache_dir = null )

del() public méthode

删除key
public del ( string $key ) : boolean
$key string
Résultat boolean Returns true on success or false on failure.

get() public méthode

模拟apc, 只在没有apc的开发环境使用
public get ( string $key, boolean &$succeeded = null ) : mixed
$key string
$succeeded boolean
Résultat mixed object on success or false on failure

set() public méthode

设置key
public set ( string $key, mixed $var, integer $ttl ) : void
$key string
$var mixed
$ttl integer TODO: 暂不支持
Résultat void