PHP Class Networking\InitCmsBundle\Lib\PhpCache

Inheritance: implements Networking\InitCmsBundle\Lib\PhpCacheInterface
Afficher le fichier Open project: networking/init-cms-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$active boolean
$cacheDir string
$cacheTime string
$env string
$phpFastCache phpFastCache

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
createDir ( $rootDir, $env ) : string

Method Details

__construct() public méthode

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 méthode

public clean ( array $option = [] ) : mixed
$option array
Résultat mixed

createDir() protected méthode

protected createDir ( $rootDir, $env ) : string
$rootDir
$env
Résultat string

delete() public méthode

public delete ( $keyword, array $options = [] ) : boolean | string[]
$keyword
$options array
Résultat boolean | string[]

get() public méthode

public get ( $keyword, array $option = [] ) : mixed | null | string
$keyword
$option array
Résultat mixed | null | string

getInfo() public méthode

public getInfo ( $keyword, array $option = [] ) : null
$keyword
$option array
Résultat null

getPhpFastCache() public méthode

public getPhpFastCache ( ) : phpFastCache
Résultat phpFastCache

isActive() public méthode

public isActive ( ) : boolean
Résultat boolean

isCacheable() public méthode

public isCacheable ( Request $request, $user ) : boolean
$request Symfony\Component\HttpFoundation\Request
$user
Résultat boolean

set() public méthode

public set ( $keyword, string $value = "", integer $time = null, array $option = [] ) : array | boolean | string
$keyword
$value string
$time integer
$option array
Résultat array | boolean | string

setPhpFastCache() public méthode

public setPhpFastCache ( phpFastCache $phpFastCache )
$phpFastCache phpFastCache

touch() public méthode

public touch ( $keyword, integer $time = null, array $option = [] ) : boolean
$keyword
$time integer
$option array
Résultat boolean

Property Details

$active protected_oe property

protected bool $active
Résultat boolean

$cacheDir protected_oe property

protected string $cacheDir
Résultat string

$cacheTime protected_oe property

protected string $cacheTime
Résultat string

$env protected_oe property

protected string $env
Résultat string

$phpFastCache protected_oe property

protected phpFastCache $phpFastCache
Résultat phpFastCache