‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Package\Cache\PackageCacheInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\Package\Cache\PackageCacheInterface:

Public Member Functions

 fetch ()
 store (PackageCacheEntry $cacheEntry)
 invalidate ()
 getIdentifier ()

Detailed Description

Interface for TYPO3 Package cache.

This is an implementation detail to abstract the way the PackageManager stores and retrieves package information of installed TYPO3 packages (extensions).

In non Composer mode, the implementation remains to be around the availability of a PackageStates.php file, which is used to generate a cache entry of Package objects. in Composer mode, the package information is put in a persistent artifact file.

Definition at line 32 of file PackageCacheInterface.php.

Member Function Documentation

◆ fetch()

TYPO3\CMS\Core\Package\Cache\PackageCacheInterface::fetch ( )

Fetch the (package states) entry from a persistent or transient location

Implemented in TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache.

◆ getIdentifier()

TYPO3\CMS\Core\Package\Cache\PackageCacheInterface::getIdentifier ( )

Identifier that identifies the current state (typically a hash)

Implemented in TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache.

◆ invalidate()

TYPO3\CMS\Core\Package\Cache\PackageCacheInterface::invalidate ( )

Invalidate the current entry (only applicable in non Composer mode)

Implemented in TYPO3\CMS\Core\Package\Cache\PackageStatesPackageCache.

◆ store()

TYPO3\CMS\Core\Package\Cache\PackageCacheInterface::store ( PackageCacheEntry  $cacheEntry)