MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MemcacheCache
Diagrama de heranças da classe MemcacheCache
AbstractCache Cache

Membros públicos

 setMemcache (Memcache $memcache)
 
 getMemcache ()
 
 getIds ()
 
- Membros públicos herdados de AbstractCache
 setNamespace ($namespace)
 
 fetch ($id)
 
 contains ($id)
 
 save ($id, $data, $lifeTime=0)
 
 delete ($id)
 
 deleteAll ()
 
 deleteByRegex ($regex)
 
 deleteByPrefix ($prefix)
 
 deleteBySuffix ($suffix)
 

Membros protegidos

 _doFetch ($id)
 
 _doContains ($id)
 
 _doSave ($id, $data, $lifeTime=0)
 
 _doDelete ($id)
 

Descrição detalhada

Documentação das funções

◆ _doContains()

_doContains ( $id)
protected

{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.
}

Reimplementado de AbstractCache.

Definido na linha 103 do ficheiro MemcacheCache.php.

◆ _doDelete()

_doDelete ( $id)
protected

{Deletes a cache entry.

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

Reimplementado de AbstractCache.

Definido na linha 119 do ficheiro MemcacheCache.php.

◆ _doFetch()

_doFetch ( $id)
protected

{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.
}

Reimplementado de AbstractCache.

Definido na linha 95 do ficheiro MemcacheCache.php.

◆ _doSave()

_doSave ( $id,
$data,
$lifeTime = 0 )
protected

{Puts data into the cache.

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

Reimplementado de AbstractCache.

Definido na linha 111 do ficheiro MemcacheCache.php.

◆ getIds()

getIds ( )

{Get an array of all the cache ids stored

Retorna
array $ids
}

Reimplementado de AbstractCache.

Definido na linha 69 do ficheiro MemcacheCache.php.

◆ getMemcache()

getMemcache ( )

Gets the memcache instance used by the cache.

Retorna
Memcache

Definido na linha 61 do ficheiro MemcacheCache.php.

◆ setMemcache()

setMemcache ( Memcache $memcache)

Sets the memcache instance to use.

Parâmetros
Memcache$memcache

Definido na linha 51 do ficheiro MemcacheCache.php.


A documentação para esta classe foi gerada a partir do seguinte ficheiro: