PHP Class Networking\InitCmsBundle\Lib\PhpCache

Inheritance: implements Networking\InitCmsBundle\Lib\PhpCacheInterface
Datei anzeigen Open project: networking/init-cms-bundle Class Usage Examples

Protected Properties

Property Type Description
$active boolean
$cacheDir string
$cacheTime string
$env string
$phpFastCache phpFastCache

Public Methods

Method 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

Protected Methods

Method Description
createDir ( $rootDir, $env ) : string

Method Details

__construct() public method

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 method

public clean ( array $option = [] ) : mixed
$option array
return mixed

createDir() protected method

protected createDir ( $rootDir, $env ) : string
$rootDir
$env
return string

delete() public method

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

get() public method

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

getInfo() public method

public getInfo ( $keyword, array $option = [] ) : null
$keyword
$option array
return null

getPhpFastCache() public method

public getPhpFastCache ( ) : phpFastCache
return phpFastCache

isActive() public method

public isActive ( ) : boolean
return boolean

isCacheable() public method

public isCacheable ( Request $request, $user ) : boolean
$request Symfony\Component\HttpFoundation\Request
$user
return boolean

set() public method

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

setPhpFastCache() public method

public setPhpFastCache ( phpFastCache $phpFastCache )
$phpFastCache phpFastCache

touch() public method

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

Property Details

$active protected_oe property

protected bool $active
return boolean

$cacheDir protected_oe property

protected string $cacheDir
return string

$cacheTime protected_oe property

protected string $cacheTime
return string

$env protected_oe property

protected string $env
return string

$phpFastCache protected_oe property

protected phpFastCache $phpFastCache
return phpFastCache