PHP 클래스 Neos\Flow\Cache\CacheManager

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cacheConfigurations array
$cacheFactory CacheFactory
$caches array
$configurationManager Neos\Flow\Configuration\ConfigurationManager
$environment Neos\Flow\Utility\Environment
$persistentCaches array
$systemLogger Neos\Flow\Log\SystemLoggerInterface

공개 메소드들

메소드 설명
flushCaches ( boolean $flushPersistentCaches = false ) : void Flushes all registered caches
flushCachesByTag ( string $tag, boolean $flushPersistentCaches = false ) : void Flushes entries tagged by the specified tag of all registered caches.
flushSystemCachesByChangedFiles ( string $fileMonitorIdentifier, array $changedFiles ) : void Flushes entries tagged with class names if their class source files have changed.
getCache ( string $identifier ) : Neos\Cache\Frontend\FrontendInterface Returns the cache specified by $identifier
getCacheConfigurations ( ) : array Returns an array of cache configurations, indexed by cache identifier
getClassTag ( string $className = '' ) : string Renders a tag which can be used to mark a cache entry as "depends on this class".
hasCache ( string $identifier ) : boolean Checks if the specified cache has been registered.
injectCacheFactory ( CacheFactory $cacheFactory ) : void
injectConfigurationManager ( ConfigurationManager $configurationManager ) : void
injectEnvironment ( Environment $environment ) : void
injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
isCachePersistent ( string $identifier ) : boolean Checks if the specified cache is marked as "persistent".
registerCache ( Neos\Cache\Frontend\FrontendInterface $cache, boolean $persistent = false ) : void Registers a cache so it can be retrieved at a later point.
setCacheConfigurations ( array $cacheConfigurations ) : void Sets configurations for caches. The key of each entry specifies the cache identifier and the value is an array of configuration options.

보호된 메소드들

메소드 설명
createAllCaches ( ) : void Instantiates all registered caches.
createCache ( string $identifier ) : void Instantiates the cache for $identifier.
flushClassCachesByChangedFiles ( array $changedFiles ) : void Flushes entries tagged with class names if their class source files have changed.
flushConfigurationCachesByChangedFiles ( array $changedFiles ) : void Flushes caches as needed if settings, routes or policies have changed
flushTranslationCachesByChangedFiles ( array $changedFiles ) : void Flushes I18n caches if translation files have changed

메소드 상세

createAllCaches() 보호된 메소드

Instantiates all registered caches.
protected createAllCaches ( ) : void
리턴 void

createCache() 보호된 메소드

Instantiates the cache for $identifier.
protected createCache ( string $identifier ) : void
$identifier string
리턴 void

flushCaches() 공개 메소드

Flushes all registered caches
public flushCaches ( boolean $flushPersistentCaches = false ) : void
$flushPersistentCaches boolean If set to TRUE, even those caches which are flagged as "persistent" will be flushed
리턴 void

flushCachesByTag() 공개 메소드

Flushes entries tagged by the specified tag of all registered caches.
public flushCachesByTag ( string $tag, boolean $flushPersistentCaches = false ) : void
$tag string Tag to search for
$flushPersistentCaches boolean If set to TRUE, even those caches which are flagged as "persistent" will be flushed
리턴 void

flushClassCachesByChangedFiles() 보호된 메소드

Flushes entries tagged with class names if their class source files have changed.
또한 보기: flushSystemCachesByChangedFiles()
protected flushClassCachesByChangedFiles ( array $changedFiles ) : void
$changedFiles array A list of full paths to changed files
리턴 void

flushConfigurationCachesByChangedFiles() 보호된 메소드

Flushes caches as needed if settings, routes or policies have changed
또한 보기: flushSystemCachesByChangedFiles()
protected flushConfigurationCachesByChangedFiles ( array $changedFiles ) : void
$changedFiles array A list of full paths to changed files
리턴 void

flushSystemCachesByChangedFiles() 공개 메소드

Also flushes AOP proxy caches if a policy was modified. This method is used as a slot for a signal sent by the system file monitor defined in the bootstrap scripts. Note: Policy configuration handling is implemented here as well as other parts of Flow (like the security framework) are not fully initialized at the time needed.
public flushSystemCachesByChangedFiles ( string $fileMonitorIdentifier, array $changedFiles ) : void
$fileMonitorIdentifier string Identifier of the File Monitor
$changedFiles array A list of full paths to changed files
리턴 void

flushTranslationCachesByChangedFiles() 보호된 메소드

Flushes I18n caches if translation files have changed
또한 보기: flushSystemCachesByChangedFiles()
protected flushTranslationCachesByChangedFiles ( array $changedFiles ) : void
$changedFiles array A list of full paths to changed files
리턴 void

getCache() 공개 메소드

Returns the cache specified by $identifier
public getCache ( string $identifier ) : Neos\Cache\Frontend\FrontendInterface
$identifier string Identifies which cache to return
리턴 Neos\Cache\Frontend\FrontendInterface The specified cache frontend

getCacheConfigurations() 공개 메소드

Returns an array of cache configurations, indexed by cache identifier
public getCacheConfigurations ( ) : array
리턴 array

getClassTag() 공개 정적인 메소드

Whenever the specified class is modified, all cache entries tagged with the class are flushed. If an empty string is specified as class name, the returned tag means "this cache entry becomes invalid if any of the known classes changes".
사용 중단: Unused and described functionality does not exist.
public static getClassTag ( string $className = '' ) : string
$className string The class name
리턴 string Class Tag

hasCache() 공개 메소드

Checks if the specified cache has been registered.
public hasCache ( string $identifier ) : boolean
$identifier string The identifier of the cache
리턴 boolean TRUE if a cache with the given identifier exists, otherwise FALSE

injectCacheFactory() 공개 메소드

public injectCacheFactory ( CacheFactory $cacheFactory ) : void
$cacheFactory CacheFactory
리턴 void

injectConfigurationManager() 공개 메소드

public injectConfigurationManager ( ConfigurationManager $configurationManager ) : void
$configurationManager Neos\Flow\Configuration\ConfigurationManager
리턴 void

injectEnvironment() 공개 메소드

public injectEnvironment ( Environment $environment ) : void
$environment Neos\Flow\Utility\Environment
리턴 void

injectSystemLogger() 공개 메소드

public injectSystemLogger ( Neos\Flow\Log\SystemLoggerInterface $systemLogger ) : void
$systemLogger Neos\Flow\Log\SystemLoggerInterface
리턴 void

isCachePersistent() 공개 메소드

Checks if the specified cache is marked as "persistent".
public isCachePersistent ( string $identifier ) : boolean
$identifier string The identifier of the cache
리턴 boolean TRUE if the specified cache is persistent, FALSE if it is not, or if the cache does not exist

registerCache() 공개 메소드

Registers a cache so it can be retrieved at a later point.
public registerCache ( Neos\Cache\Frontend\FrontendInterface $cache, boolean $persistent = false ) : void
$cache Neos\Cache\Frontend\FrontendInterface The cache frontend to be registered
$persistent boolean
리턴 void

setCacheConfigurations() 공개 메소드

Possible options are: frontend backend backendOptions persistent If one of the options is not specified, the default value is assumed. Existing cache configurations are preserved.
public setCacheConfigurations ( array $cacheConfigurations ) : void
$cacheConfigurations array The cache configurations to set
리턴 void

프로퍼티 상세

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

protected array $cacheConfigurations
리턴 array

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

protected CacheFactory,Neos\Flow\Cache $cacheFactory
리턴 CacheFactory

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

protected array $caches
리턴 array

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

protected ConfigurationManager,Neos\Flow\Configuration $configurationManager
리턴 Neos\Flow\Configuration\ConfigurationManager

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

protected Environment,Neos\Flow\Utility $environment
리턴 Neos\Flow\Utility\Environment

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

protected array $persistentCaches
리턴 array

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

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
리턴 Neos\Flow\Log\SystemLoggerInterface