PHP 클래스 Neos\Cache\Backend\AbstractBackend

상속: implements Neos\Cache\Backend\BackendInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Neos\Cache\Frontend\FrontendInterface Reference to the cache frontend which uses this backend
$cacheIdentifier string
$defaultLifetime integer Default lifetime of a cache entry in seconds
$environmentConfiguration Neos\Cache\EnvironmentConfiguration

공개 메소드들

메소드 설명
__construct ( EnvironmentConfiguration $environmentConfiguration = null, array $options = [] ) Constructs this backend
getPrefixedIdentifier ( string $entryIdentifier ) : string Returns the internally used, prefixed entry identifier for the given public entry identifier.
setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void Sets a reference to the cache frontend which uses this backend
setDefaultLifetime ( integer $defaultLifetime ) : void Sets the default lifetime for this cache backend

보호된 메소드들

메소드 설명
calculateExpiryTime ( integer $lifetime = null ) : DateTime Calculates the expiry time by the given lifetime. If no lifetime is specified, the default lifetime is used.
setProperties ( array $properties, boolean $throwExceptionIfPropertyNotSettable = true ) : void
setProperty ( string $propertyName, mixed $propertyValue ) : boolean

메소드 상세

__construct() 공개 메소드

Constructs this backend
public __construct ( EnvironmentConfiguration $environmentConfiguration = null, array $options = [] )
$environmentConfiguration Neos\Cache\EnvironmentConfiguration
$options array Configuration options - depends on the actual backend

calculateExpiryTime() 보호된 메소드

Calculates the expiry time by the given lifetime. If no lifetime is specified, the default lifetime is used.
protected calculateExpiryTime ( integer $lifetime = null ) : DateTime
$lifetime integer The lifetime in seconds
리턴 DateTime The expiry time

getPrefixedIdentifier() 공개 메소드

While Flow applications will mostly refer to the simple entry identifier, it may be necessary to know the actual identifier used by the cache backend in order to share cache entries with other applications. This method allows for retrieving it. Note that, in case of the AbstractBackend, this method is returns just the given entry identifier.
public getPrefixedIdentifier ( string $entryIdentifier ) : string
$entryIdentifier string The short entry identifier, for example "NumberOfPostedArticles"
리턴 string The prefixed identifier, for example "Flow694a5c7a43a4_NumberOfPostedArticles"

setCache() 공개 메소드

Sets a reference to the cache frontend which uses this backend
public setCache ( Neos\Cache\Frontend\FrontendInterface $cache ) : void
$cache Neos\Cache\Frontend\FrontendInterface The frontend for this backend
리턴 void

setDefaultLifetime() 공개 메소드

Sets the default lifetime for this cache backend
public setDefaultLifetime ( integer $defaultLifetime ) : void
$defaultLifetime integer Default lifetime of this cache backend in seconds. If NULL is specified, the default lifetime is used. "0" means unlimited liftime.
리턴 void

setProperties() 보호된 메소드

protected setProperties ( array $properties, boolean $throwExceptionIfPropertyNotSettable = true ) : void
$properties array
$throwExceptionIfPropertyNotSettable boolean
리턴 void

setProperty() 보호된 메소드

protected setProperty ( string $propertyName, mixed $propertyValue ) : boolean
$propertyName string
$propertyValue mixed
리턴 boolean

프로퍼티 상세

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

Reference to the cache frontend which uses this backend
protected FrontendInterface,Neos\Cache\Frontend $cache
리턴 Neos\Cache\Frontend\FrontendInterface

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

protected string $cacheIdentifier
리턴 string

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

Default lifetime of a cache entry in seconds
protected int $defaultLifetime
리턴 integer

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

protected EnvironmentConfiguration,Neos\Cache $environmentConfiguration
리턴 Neos\Cache\EnvironmentConfiguration