« Constantes pré-définies
Search
Yac::add »
PHP Manual
Yac
La classe Yac
La classe Yac
(PECL yac >= 1.0.0)
Introduction
Synopsis de la classe
class
Yac
{
/* Propriétés */
protected
$
_prefix
;
/* Méthodes */
public
function
__construct
(
string
$prefix
= ""
)
public
function
add
(
string
$keys
,
mixed
$value
,
int
$ttl
= 0
):
bool
public
function
add
(
array
$key_vals
):
bool
public
function
delete
(
string
|
array
$keys
,
int
$ttl
= ?
):
bool
public
function
dump
(
int
$$num
):
mixed
public
function
flush
():
bool
public
function
get
(
string
|
array
$key
,
int
&$cas
=
null
):
mixed
public
function
__get
(
string
$key
):
mixed
public
function
info
():
array
public
function
set
(
string
$keys
,
mixed
$value
,
int
$ttl
= 0
):
bool
public
function
add
(
array
$key_vals
):
bool
public
function
__set
(
string
$keys
,
mixed
$value
):
mixed
}
Propriétés
_prefix
Sommaire
Yac::add
— Stocke un élément dans le cache
Yac::__construct
— Constructeur
Yac::delete
— Supprime un ou plusieurs éléments du cache
Yac::dump
— Extrait les valeurs du cache
Yac::flush
— Supprime toutes les valeurs mises en cache
Yac::get
— Récupère un élément du cache
Yac::__get
— Récupère un élément du cache
Yac::info
— Statut du cache
Yac::set
— Stocke une valeur dans le cache
Yac::__set
— Stocke un élément dans le cache
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open