PHP Class Cache

Afficher le fichier Open project: bcosca/fatfree Class Usage Examples

Protected Properties

Свойство Type Description
$dsn
$prefix
$ref

Méthodes publiques

Méthode Description
__construct ( $dsn = FALSE ) : object Class constructor
clear ( $key ) : boolean Delete cache entry
exists ( $key, &$val = NULL ) : array | FALSE Return timestamp and TTL of cache entry or FALSE if not found
get ( $key ) : mixed | FALSE Retrieve value of cache entry
load ( $dsn ) : string Load/auto-detect cache backend
reset ( $suffix = NULL, $lifetime ) : boolean Clear contents of cache backend
set ( $key, $val, $ttl ) : mixed | FALSE Store value in cache

Method Details

__construct() public méthode

Class constructor
public __construct ( $dsn = FALSE ) : object
$dsn bool|string
Résultat object

clear() public méthode

Delete cache entry
public clear ( $key ) : boolean
$key string
Résultat boolean

exists() public méthode

Return timestamp and TTL of cache entry or FALSE if not found
public exists ( $key, &$val = NULL ) : array | FALSE
$key string
$val mixed
Résultat array | FALSE

get() public méthode

Retrieve value of cache entry
public get ( $key ) : mixed | FALSE
$key string
Résultat mixed | FALSE

load() public méthode

Load/auto-detect cache backend
public load ( $dsn ) : string
$dsn bool|string
Résultat string

reset() public méthode

Clear contents of cache backend
public reset ( $suffix = NULL, $lifetime ) : boolean
$suffix string
$lifetime int
Résultat boolean

set() public méthode

Store value in cache
public set ( $key, $val, $ttl ) : mixed | FALSE
$key string
$val mixed
$ttl int
Résultat mixed | FALSE

Property Details

$dsn protected_oe property

protected $dsn

$prefix protected_oe property

protected $prefix

$ref protected_oe property

protected $ref