PHP Класс Networking\InitCmsBundle\Lib\PhpCache

Наследование: implements Networking\InitCmsBundle\Lib\PhpCacheInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$active boolean
$cacheDir string
$cacheTime string
$env string
$phpFastCache phpFastCache

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

Метод Описание
__construct ( string $type = '', string $rootDir = '', string $env = '', boolean $active = false, string $cacheTime = '', null $securityKey = null )
clean ( array $option = [] ) : mixed
delete ( $keyword, array $options = [] ) : boolean | string[]
get ( $keyword, array $option = [] ) : mixed | null | string
getInfo ( $keyword, array $option = [] ) : null
getPhpFastCache ( ) : phpFastCache
isActive ( ) : boolean
isCacheable ( Request $request, $user ) : boolean
set ( $keyword, string $value = "", integer $time = null, array $option = [] ) : array | boolean | string
setPhpFastCache ( phpFastCache $phpFastCache )
touch ( $keyword, integer $time = null, array $option = [] ) : boolean

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

Метод Описание
createDir ( $rootDir, $env ) : string

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

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

public __construct ( string $type = '', string $rootDir = '', string $env = '', boolean $active = false, string $cacheTime = '', null $securityKey = null )
$type string
$rootDir string
$env string
$active boolean
$cacheTime string
$securityKey null possibilities are auto (domain name), a string or null

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

public clean ( array $option = [] ) : mixed
$option array
Результат mixed

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

protected createDir ( $rootDir, $env ) : string
$rootDir
$env
Результат string

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

public delete ( $keyword, array $options = [] ) : boolean | string[]
$keyword
$options array
Результат boolean | string[]

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

public get ( $keyword, array $option = [] ) : mixed | null | string
$keyword
$option array
Результат mixed | null | string

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

public getInfo ( $keyword, array $option = [] ) : null
$keyword
$option array
Результат null

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

public getPhpFastCache ( ) : phpFastCache
Результат phpFastCache

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

public isActive ( ) : boolean
Результат boolean

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

public isCacheable ( Request $request, $user ) : boolean
$request Symfony\Component\HttpFoundation\Request
$user
Результат boolean

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

public set ( $keyword, string $value = "", integer $time = null, array $option = [] ) : array | boolean | string
$keyword
$value string
$time integer
$option array
Результат array | boolean | string

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

public setPhpFastCache ( phpFastCache $phpFastCache )
$phpFastCache phpFastCache

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

public touch ( $keyword, integer $time = null, array $option = [] ) : boolean
$keyword
$time integer
$option array
Результат boolean

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

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

protected bool $active
Результат boolean

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

protected string $cacheDir
Результат string

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

protected string $cacheTime
Результат string

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

protected string $env
Результат string

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

protected phpFastCache $phpFastCache
Результат phpFastCache