MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência ao interface Cache
Diagrama de heranças da classe Cache
AbstractCache ApcCache ArrayCache MemcacheCache XcacheCache

Membros públicos

 fetch ($id)
 
 contains ($id)
 
 save ($id, $data, $lifeTime=0)
 
 delete ($id)
 

Descrição detalhada

Documentação das funções

◆ contains()

contains ( $id)

Test if an entry exists in the cache.

Parâmetros
string$idcache id The cache id of the entry to check for.
Retorna
boolean TRUE if a cache entry exists for the given cache id, FALSE otherwise.

Implementado em AbstractCache.

◆ delete()

delete ( $id)

Deletes a cache entry.

Parâmetros
string$idcache id
Retorna
boolean TRUE if the cache entry was successfully deleted, FALSE otherwise.

Implementado em AbstractCache.

◆ fetch()

fetch ( $id)

Fetches an entry from the cache.

Parâmetros
string$idcache id The id of the cache entry to fetch.
Retorna
string The cached data or FALSE, if no cache entry exists for the given id.

Implementado em AbstractCache.

◆ save()

save ( $id,
$data,
$lifeTime = 0 )

Puts data into the cache.

Parâmetros
string$idThe cache id.
string$dataThe cache entry/data.
int$lifeTimeThe lifetime. If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime).
Retorna
boolean TRUE if the entry was successfully stored in the cache, FALSE otherwise.

Implementado em AbstractCache.


A documentação para este interface foi gerada a partir do seguinte ficheiro: