Referencia de la Clase Cache
|
Métodos públicos estáticos |
static | get ($id, $group= 'default') |
static | save ($value, $lifetime=null, $id=false, $group= 'default') |
static | start ($lifetime, $id, $group= 'default') |
static | end ($save=true) |
static | clean ($group=false) |
static | remove ($id, $group= 'default') |
static | get_driver () |
static | active ($active) |
Atributos protegidos estáticos |
static | $_id = null |
static | $_group = 'default' |
static | $_lifetime = null |
static | $_active = true |
Descripción detallada
- Ver también:
- CacheInterface
FileCache Clase que implementa un componente de cacheo
Definición en la línea 33 del archivo cache.php.
Documentación de las funciones miembro
static active |
( |
$ |
active |
) |
[static] |
Activa la cache
- Parámetros:
-
Definición en la línea 164 del archivo cache.php.
static clean |
( |
$ |
group = false |
) |
[static] |
Limpia la cache
- Parámetros:
-
- Devuelve:
- boolean
Definición en la línea 135 del archivo cache.php.
static end |
( |
$ |
save = true |
) |
[static] |
Termina el buffer de salida
- Parámetros:
-
| boolean | $save indica si al terminar guarda la cache |
- Devuelve:
- boolean
Definición en la línea 119 del archivo cache.php.
static get |
( |
$ |
id, |
|
|
$ |
group = 'default' | |
|
) |
| | [static] |
Carga un elemento cacheado
- Parámetros:
-
- Devuelve:
- string
Definición en la línea 66 del archivo cache.php.
static get_driver |
( |
|
) |
[static] |
Obtiene el driver para cache
- Devuelve:
- string
Definición en la línea 155 del archivo cache.php.
static remove |
( |
$ |
id, |
|
|
$ |
group = 'default' | |
|
) |
| | [static] |
Elimina un elemento de la cache
- Parámetros:
-
- Devuelve:
- boolean
Definición en la línea 146 del archivo cache.php.
static save |
( |
$ |
value, |
|
|
$ |
lifetime = null , |
|
|
$ |
id = false , |
|
|
$ |
group = 'default' | |
|
) |
| | [static] |
Guarda un elemento en la cache con nombre $id y valor $value
- Parámetros:
-
| string | $value |
| string | $lifetime tiempo de vida con formato strtotime, utilizado para cache de tiempo constante |
| string | $id |
| string | $group |
- Devuelve:
- boolean
Verifica si se ha pasado un id
Definición en la línea 83 del archivo cache.php.
static start |
( |
$ |
lifetime, |
|
|
$ |
id, |
|
|
$ |
group = 'default' | |
|
) |
| | [static] |
Inicia el cacheo del buffer de salida hasta que se llame a end
- Parámetros:
-
| string | $lifetime tiempo de vida con formato strtotime, utilizado para cache de tiempo constante |
| string | $id |
| string | $group |
- Devuelve:
- string
Definición en la línea 106 del archivo cache.php.
Documentación de los campos
$_active = true [static, protected] |
$_group = 'default' [static, protected] |
$_id = null [static, protected] |
$_lifetime = null [static, protected] |
La documentación para esta clase fue generada a partir del siguiente fichero:
- /home/joan/000www/repo/spirit/1.0/core/extensions/cache/cache.php