Свойство | Type | Description | |
---|---|---|---|
$_directory | string | directory of the cache | |
$_extension | string | extension of the cached files |
Méthode | Description | |
---|---|---|
clear ( mixed $bundle = null ) : |
clear the cache | |
clearInvalid ( integer $lifetime = 3600 ) : |
clear the invalid cache | |
getDirectory ( ) : string | get the directory | |
getPath ( mixed $bundle = null ) : string | get the path | |
init ( string $directory = null, string $extension = null ) : |
init the class | |
retrieve ( mixed $bundle = null ) : mixed | retrieve from cache | |
store ( mixed $bundle = null, string $content = null ) : |
store to cache | |
validate ( mixed $bundle = null, integer $lifetime = 3600 ) : boolean | validate the cache |
Méthode | Description | |
---|---|---|
_getFile ( mixed $bundle = null ) : string | get the file | |
_validateFile ( string $path = null, integer $lifetime = 3600 ) : boolean | validate the file |
public clearInvalid ( integer $lifetime = 3600 ) : |
||
$lifetime | integer | lifetime of the bundle |
Résultat |
protected string $_directory | ||
Résultat | string |
protected string $_extension | ||
Résultat | string |