프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$eventManager | Zend\EventManager\EventManagerInterface | Static event manager |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | Zend\EventManager\EventManagerInterface |
public setEventManager ( Zend\EventManager\EventManagerInterface $eventManager ) : self | ||
$eventManager | Zend\EventManager\EventManagerInterface | Event Manager |
리턴 | self |
protected shouldCache ( |
||
$event | Event | |
리턴 | boolean |
protected shouldCacheRequest ( |
||
$e | Mvc Event | |
리턴 | boolean |