PHP 클래스 Pinq\Caching\CacheProvider

저자: Elliot Levin ([email protected])
파일 보기 프로젝트 열기: timetoogo/pinq 1 사용 예제들

공개 메소드들

메소드 설명
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