PHP Класс Pinq\Caching\CacheProvider

Автор: Elliot Levin ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getCache ( ) : Pinq\Caching\IQueryCache Returns a query cache with the configured adapter.
getCacheAdapter ( ) : Pinq\Caching\ICacheAdapter Returns the configured cache implementation
removeCache ( ) : void Removes the configured cache implementation.
setArrayAccessCache ( ArrayAccess $cache ) : void Uses the supplied array access cache to store the parsed queries.
setCustomCache ( Pinq\Caching\ICacheAdapter $cache ) : void Uses the supplied cache to store the parsed queries.
setDevelopmentMode ( boolean $isDevelopmentMode ) : void If set to true, the cache will be cleared when needed.
setDirectoryCache ( string $directory, string $fileExtension = DirectoryCache::DEFAULT_EXTENSION ) : void Uses the supplied directory to store the parsed queries.
setDoctrineCache ( CacheProvider $cache ) : void Uses the supplied doctrine cache to store the parsed queries.
setFileCache ( string $fileName ) : void Uses the supplied file to store the parsed queries.

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

Метод Описание
__construct ( )
getImplementation ( ) : Pinq\Caching\ICacheAdapter

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

getCache() публичный статический Метод

Returns a query cache with the configured adapter.
public static getCache ( ) : Pinq\Caching\IQueryCache
Результат Pinq\Caching\IQueryCache

getCacheAdapter() публичный статический Метод

Returns the configured cache implementation
public static getCacheAdapter ( ) : Pinq\Caching\ICacheAdapter
Результат Pinq\Caching\ICacheAdapter

removeCache() публичный статический Метод

Removes the configured cache implementation.
public static removeCache ( ) : void
Результат void

setArrayAccessCache() публичный статический Метод

Uses the supplied array access cache to store the parsed queries.
public static setArrayAccessCache ( ArrayAccess $cache ) : void
$cache ArrayAccess The array access cache
Результат void

setCustomCache() публичный статический Метод

Uses the supplied cache to store the parsed queries.
public static setCustomCache ( Pinq\Caching\ICacheAdapter $cache ) : void
$cache Pinq\Caching\ICacheAdapter The cache implementations
Результат void

setDevelopmentMode() публичный статический Метод

If set to true, the cache will be cleared when needed.
public static setDevelopmentMode ( boolean $isDevelopmentMode ) : void
$isDevelopmentMode boolean
Результат void

setDirectoryCache() публичный статический Метод

Uses the supplied directory to store the parsed queries.
public static setDirectoryCache ( string $directory, string $fileExtension = DirectoryCache::DEFAULT_EXTENSION ) : void
$directory string The directory to cache the data
$fileExtension string The file extension for every cache file
Результат void

setDoctrineCache() публичный статический Метод

Uses the supplied doctrine cache to store the parsed queries.
public static setDoctrineCache ( CacheProvider $cache ) : void
$cache Doctrine\Common\Cache\CacheProvider The doctrine cache
Результат void

setFileCache() публичный статический Метод

Uses the supplied file to store the parsed queries.
public static setFileCache ( string $fileName ) : void
$fileName string The file to cache the data
Результат void