KumbiaPHP
beta2
Framework PHP
Página principal
Páginas relacionadas
Namespaces
Estructuras de Datos
Archivos
Ejemplos
Lista de archivos
Globales
Todo
Estructuras de Datos
Namespaces
Archivos
Funciones
Variables
Páginas
git
KumbiaPHP
core
libs
cache
drivers
APC_cache.php
Ir a la documentación de este archivo.
1
<?php
29
class
APCCache
extends
Cache
30
{
31
39
public
function
get
($id, $group=
'default'
)
40
{
41
$this->_id = $id;
42
$this->_group = $group;
43
44
$data = apc_fetch(
"$id.$group"
);
45
if
($data === FALSE) {
46
return
null;
47
}
48
return
$data;
49
}
50
60
public
function
save
($id, $group, $value, $lifetime)
61
{
62
if
(!$id) {
63
$id =
$this->_id
;
64
$group =
$this->_group
;
65
}
66
67
if
($lifetime) {
68
$lifetime = strtotime($lifetime) - time();
69
}
else
{
70
$lifetime =
'0'
;
71
}
72
73
return
apc_store(
"$id.$group"
, $value, $lifetime);
74
}
75
82
public
function
clean
($group=
false
)
83
{
84
return
apc_clear_cache(
'user'
);
85
}
86
94
public
function
remove
($id, $group=
'default'
)
95
{
96
return
apc_delete(
"$id.$group"
);
97
}
98
99
}
Generado el Viernes, 14 de Marzo de 2014 20:14:04 para KumbiaPHP por
1.8.4