PHP Class Bolt\Cache

. Useful for storing non-vital information like feeds, and other stuff that can be recovered easily.
Author: Bob den Otter, [email protected]
Inheritance: extends Doctrine\Common\Cache\FilesystemCache
Afficher le fichier Open project: bolt/bolt Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $directory, string $extension = self::EXTENSION, integer $umask = 2, Bolt\Filesystem\AggregateFilesystemInterface $filesystem = null ) Cache constructor.

Méthodes protégées

Méthode Description
doFlush ( ) : boolean Clear the cache. Both the doctrine FilesystemCache, as well as twig and thumbnail temp files.

Private Methods

Méthode Description
flushDirectory ( Bolt\Filesystem\Handler\DirectoryInterface $directory ) Helper function for doFlush().

Method Details

__construct() public méthode

Cache constructor.
public __construct ( string $directory, string $extension = self::EXTENSION, integer $umask = 2, Bolt\Filesystem\AggregateFilesystemInterface $filesystem = null )
$directory string
$extension string
$umask integer
$filesystem Bolt\Filesystem\AggregateFilesystemInterface

doFlush() protected méthode

Clear the cache. Both the doctrine FilesystemCache, as well as twig and thumbnail temp files.
protected doFlush ( ) : boolean
Résultat boolean