PHP Класс Neos\Flow\Persistence\Doctrine\CacheAdapter

Наследование: implements Doctrine\Common\Cache\Cache
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$cache Neos\Cache\Frontend\FrontendInterface
$securityContext Neos\Flow\Security\Context

Открытые методы

Метод Описание
contains ( string $id ) : boolean Tests if an entry exists in the cache.
delete ( string $id ) : boolean Deletes a cache entry.
fetch ( string $id ) : mixed Fetches an entry from the cache.
getStats ( ) : array | null Retrieves cached information from the data store.
save ( string $id, mixed $data, integer $lifeTime ) : boolean Puts data into the cache.
setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void Set the cache this adapter should use.

Защищенные методы

Метод Описание
convertCacheIdentifier ( string $id ) : string

Описание методов

contains() публичный Метод

Tests if an entry exists in the cache.
public contains ( string $id ) : boolean
$id string The cache id of the entry to check for.
Результат boolean TRUE if a cache entry exists for the given cache id, FALSE otherwise.

convertCacheIdentifier() защищенный Метод

protected convertCacheIdentifier ( string $id ) : string
$id string
Результат string

delete() публичный Метод

Deletes a cache entry.
public delete ( string $id ) : boolean
$id string The cache id.
Результат boolean TRUE if the cache entry was successfully deleted, FALSE otherwise.

fetch() публичный Метод

Fetches an entry from the cache.
public fetch ( string $id ) : mixed
$id string The id of the cache entry to fetch.
Результат mixed The cached data or FALSE, if no cache entry exists for the given id.

getStats() публичный Метод

The server's statistics array has the following values: - hits Number of keys that have been requested and found present. - misses Number of items that have been requested and not found. - uptime Time that the server is running. - memory_usage Memory used by this server to store items. - memory_available Memory allowed to use for storage.
public getStats ( ) : array | null
Результат array | null An associative array with server's statistics if available, NULL otherwise.

save() публичный Метод

Puts data into the cache.
public save ( string $id, mixed $data, integer $lifeTime ) : boolean
$id string The cache id.
$data mixed The cache entry/data.
$lifeTime integer The cache lifetime. If != 0, sets a specific lifetime for this cache entry (0 => infinite lifeTime).
Результат boolean TRUE if the entry was successfully stored in the cache, FALSE otherwise.

setCache() публичный Метод

Set the cache this adapter should use.
public setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void
$cache Neos\Cache\Frontend\FrontendInterface
Результат void

Описание свойств

$cache защищенное свойство

protected FrontendInterface,Neos\Cache\Frontend $cache
Результат Neos\Cache\Frontend\FrontendInterface

$securityContext защищенное свойство

protected Context,Neos\Flow\Security $securityContext
Результат Neos\Flow\Security\Context