Свойство | Type | Description | |
---|---|---|---|
$eventManager | Zend\EventManager\EventManagerInterface | Static event manager |
Méthode | Description | |
---|---|---|
__construct ( Zend\Cache\Storage\StorageInterface $cacheStorage ) | Constructor | |
getEventManager ( ) : Zend\EventManager\EventManagerInterface | Retrieve the event manager | |
load ( |
Check if a page is saved in the cache and return contents. | |
save ( |
Save the page contents to the cache storage. | |
setEventManager ( Zend\EventManager\EventManagerInterface $eventManager ) : self | Inject an EventManager instance |
Méthode | Description | |
---|---|---|
createId ( Zend\Http\PhpEnvironment\Request $request ) : string | Determine the page to save from the request | |
shouldCache ( |
Define if the page should be cached | |
shouldCacheRequest ( |
Determine if we should cache the current request |
public __construct ( Zend\Cache\Storage\StorageInterface $cacheStorage ) | ||
$cacheStorage | Zend\Cache\Storage\StorageInterface | Cache storage |
public getEventManager ( ) : Zend\EventManager\EventManagerInterface | ||
Résultat | Zend\EventManager\EventManagerInterface |
public setEventManager ( Zend\EventManager\EventManagerInterface $eventManager ) : self | ||
$eventManager | Zend\EventManager\EventManagerInterface | Event Manager |
Résultat | self |
protected shouldCache ( |
||
$event | Event | |
Résultat | boolean |
protected shouldCacheRequest ( |
||
$e | Mvc Event | |
Résultat | boolean |