Метод | Описание | |
---|---|---|
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 ( |
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 |
public static getCache ( ) : Pinq\Caching\IQueryCache | ||
Результат | Pinq\Caching\IQueryCache |
public static getCacheAdapter ( ) : Pinq\Caching\ICacheAdapter | ||
Результат | Pinq\Caching\ICacheAdapter |
public static removeCache ( ) : void | ||
Результат | void |
public static setArrayAccessCache ( ArrayAccess $cache ) : void | ||
$cache | ArrayAccess | The array access cache |
Результат | void |
public static setCustomCache ( Pinq\Caching\ICacheAdapter $cache ) : void | ||
$cache | Pinq\Caching\ICacheAdapter | The cache implementations |
Результат | void |
public static setDevelopmentMode ( boolean $isDevelopmentMode ) : void | ||
$isDevelopmentMode | boolean | |
Результат | void |
public static setDoctrineCache ( |
||
$cache | The doctrine cache | |
Результат | void |
public static setFileCache ( string $fileName ) : void | ||
$fileName | string | The file to cache the data |
Результат | void |