PHP Класс Cache\Bridge\DoctrineCacheBridge

Автор: Aaron Scherer ([email protected])
Наследование: extends Doctrine\Common\Cache\CacheProvider
Показать файл Открыть проект

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

Метод Описание
__construct ( Psr\Cache\CacheItemPoolInterface $cachePool ) DoctrineCacheBridge constructor.
getCachePool ( ) : Psr\Cache\CacheItemPoolInterface

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

Метод Описание
doContains ( string $id ) : boolean Tests if an entry exists in the cache.
doDelete ( string $id ) : boolean Deletes a cache entry.
doFetch ( string $id ) : mixed | false Fetches an entry from the cache.
doFlush ( ) : boolean Flushes all cache entries.
doGetStats ( ) : array | null Retrieves cached information from the data store.
doSave ( string $id, string $data, integer $lifeTime ) : boolean Puts data into the cache.

Приватные методы

Метод Описание
normalizeKey ( string $key ) : string We need to make sure we do not use any characters not supported.

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

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

DoctrineCacheBridge constructor.
public __construct ( Psr\Cache\CacheItemPoolInterface $cachePool )
$cachePool Psr\Cache\CacheItemPoolInterface

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

Tests if an entry exists in the cache.
protected doContains ( 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.

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

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

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

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

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

Flushes all cache entries.
protected doFlush ( ) : boolean
Результат boolean TRUE if the cache entries were successfully flushed, FALSE otherwise.

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

Retrieves cached information from the data store.
С версии: 2.2
protected doGetStats ( ) : array | null
Результат array | null An associative array with server's statistics if available, NULL otherwise.

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

Puts data into the cache.
protected doSave ( string $id, string $data, integer $lifeTime ) : boolean
$id string The cache id.
$data string The cache entry/data.
$lifeTime integer The 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.

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

public getCachePool ( ) : Psr\Cache\CacheItemPoolInterface
Результат Psr\Cache\CacheItemPoolInterface