MIOLO20
|
Membros públicos | |
setNamespace ($namespace) | |
fetch ($id) | |
contains ($id) | |
save ($id, $data, $lifeTime=0) | |
delete ($id) | |
deleteAll () | |
deleteByRegex ($regex) | |
deleteByPrefix ($prefix) | |
deleteBySuffix ($suffix) | |
getIds () | |
Membros protegidos | |
_doFetch ($id) | |
_doContains ($id) | |
_doSave ($id, $data, $lifeTime=false) | |
_doDelete ($id) | |
Base class for cache driver implementations.
Definido na linha 31 do ficheiro AbstractCache.php.
|
abstractprotected |
Test if an entry exists in the cache.
string | $id | cache id The cache id of the entry to check for. |
Reimplementado em ApcCache, ArrayCache, MemcacheCache e XcacheCache.
|
abstractprotected |
Deletes a cache entry.
string | $id | cache id |
Reimplementado em ApcCache, ArrayCache, MemcacheCache e XcacheCache.
|
abstractprotected |
Fetches an entry from the cache.
string | $id | cache id The id of the cache entry to fetch. |
Reimplementado em ApcCache, ArrayCache, MemcacheCache e XcacheCache.
|
abstractprotected |
Puts data into the cache.
string | $id | The cache id. |
string | $data | The cache entry/data. |
int | $lifeTime | The lifetime. If != false, sets a specific lifetime for this cache entry (null => infinite lifeTime). |
Reimplementado em ApcCache, ArrayCache, MemcacheCache e XcacheCache.
contains | ( | $id | ) |
{Test if an entry exists in the cache.
string | $id | cache id The cache id of the entry to check for. |
Implementa Cache.
Definido na linha 61 do ficheiro AbstractCache.php.
delete | ( | $id | ) |
{Deletes a cache entry.
string | $id | cache id |
Implementa Cache.
Definido na linha 77 do ficheiro AbstractCache.php.
deleteAll | ( | ) |
Delete all cache entries.
Definido na linha 93 do ficheiro AbstractCache.php.
deleteByPrefix | ( | $prefix | ) |
Delete cache entries where the id has the passed prefix
string | $prefix |
Definido na linha 132 do ficheiro AbstractCache.php.
deleteByRegex | ( | $regex | ) |
Delete cache entries where the id matches a PHP regular expressions
string | $regex |
Definido na linha 110 do ficheiro AbstractCache.php.
deleteBySuffix | ( | $suffix | ) |
Delete cache entries where the id has the passed suffix
string | $suffix |
Definido na linha 155 do ficheiro AbstractCache.php.
fetch | ( | $id | ) |
{Fetches an entry from the cache.
string | $id | cache id The id of the cache entry to fetch. |
Implementa Cache.
Definido na linha 53 do ficheiro AbstractCache.php.
|
abstract |
Get an array of all the cache ids stored
Reimplementado em ApcCache, ArrayCache, MemcacheCache e XcacheCache.
save | ( | $id, | |
$data, | |||
$lifeTime = 0 ) |
{Puts data into the cache.
string | $id | The cache id. |
string | $data | The cache entry/data. |
int | $lifeTime | The lifetime. If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime). |
Implementa Cache.
Definido na linha 69 do ficheiro AbstractCache.php.
setNamespace | ( | $namespace | ) |
Set the namespace to prefix all cache ids with.
string | $namespace |
Definido na linha 45 do ficheiro AbstractCache.php.