PackageStatesPackageCache implements PackageCacheInterface
TYPO3 Package cache for package states file.
This replicates previous behaviour around the availability of a PackageStates.php file and has been extracted from PackageManager
Table of Contents
Interfaces
- PackageCacheInterface
- Interface for TYPO3 Package cache.
Methods
- __construct() : mixed
- fetch() : PackageCacheEntry
- Fetch the (package states) entry from a persistent or transient location
- getIdentifier() : string
- "Hash" the package states file when cacheIdentifier is null This is done to cache the state and to represent invalidated state.
- invalidate() : void
- Invalidate the current entry (only applicable in non Composer mode)
- store() : void
- Store the entry
Methods
__construct()
public
__construct(string $packageStatesFile, FrontendInterface $coreCache) : mixed
Parameters
- $packageStatesFile : string
- $coreCache : FrontendInterface
fetch()
Fetch the (package states) entry from a persistent or transient location
public
fetch() : PackageCacheEntry
Return values
PackageCacheEntrygetIdentifier()
"Hash" the package states file when cacheIdentifier is null This is done to cache the state and to represent invalidated state.
public
getIdentifier() : string
Tags
Return values
stringinvalidate()
Invalidate the current entry (only applicable in non Composer mode)
public
invalidate() : void
store()
Store the entry
public
store(PackageCacheEntry $cacheEntry) : void
Parameters
- $cacheEntry : PackageCacheEntry