PHP 클래스 Gc\Mvc\Service\CacheService

상속: implements Zend\EventManager\EventManagerAwareInterface
파일 보기 프로젝트 열기: gotcms/gotcms

보호된 프로퍼티들

프로퍼티 타입 설명
$eventManager Zend\EventManager\EventManagerInterface Static event manager

공개 메소드들

메소드 설명
__construct ( Zend\Cache\Storage\StorageInterface $cacheStorage ) Constructor
getEventManager ( ) : Zend\EventManager\EventManagerInterface Retrieve the event manager
load ( MvcEvent $e ) : mixed Check if a page is saved in the cache and return contents.
save ( MvcEvent $e ) : void 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 ( MvcEvent $event ) : boolean Define if the page should be cached
shouldCacheRequest ( MvcEvent $e ) : boolean Determine if we should cache the current request

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Zend\Cache\Storage\StorageInterface $cacheStorage )
$cacheStorage Zend\Cache\Storage\StorageInterface Cache storage

createId() 보호된 메소드

Determine the page to save from the request
protected createId ( Zend\Http\PhpEnvironment\Request $request ) : string
$request Zend\Http\PhpEnvironment\Request Http Request
리턴 string

getEventManager() 공개 메소드

Lazy-loads an EventManager instance if none registered.
public getEventManager ( ) : Zend\EventManager\EventManagerInterface
리턴 Zend\EventManager\EventManagerInterface

load() 공개 메소드

Return null when no item is found.
public load ( MvcEvent $e ) : mixed
$e Zend\Mvc\MvcEvent Mvc Event
리턴 mixed

save() 공개 메소드

Save the page contents to the cache storage.
public save ( MvcEvent $e ) : void
$e Zend\Mvc\MvcEvent Mvc Event
리턴 void

setEventManager() 공개 메소드

Inject an EventManager instance
public setEventManager ( Zend\EventManager\EventManagerInterface $eventManager ) : self
$eventManager Zend\EventManager\EventManagerInterface Event Manager
리턴 self

shouldCache() 보호된 메소드

Define if the page should be cached
protected shouldCache ( MvcEvent $event ) : boolean
$event Zend\Mvc\MvcEvent Event
리턴 boolean

shouldCacheRequest() 보호된 메소드

Determine if we should cache the current request
protected shouldCacheRequest ( MvcEvent $e ) : boolean
$e Zend\Mvc\MvcEvent Mvc Event
리턴 boolean

프로퍼티 상세

$eventManager 보호되어 있는 프로퍼티

Static event manager
protected EventManagerInterface,Zend\EventManager $eventManager
리턴 Zend\EventManager\EventManagerInterface