mediatekformation

CacheFactory

Contract for building second level cache regions components.

Table of Contents

buildCachedCollectionPersister()  : CachedCollectionPersister
Build a collection persister for the given relation mapping.
buildCachedEntityPersister()  : CachedEntityPersister
Build an entity persister for the given entity metadata.
buildCollectionHydrator()  : CollectionHydrator
Build a collection hydrator
buildEntityHydrator()  : EntityHydrator
Build an entity hydrator
buildQueryCache()  : QueryCache
Build a query cache based on the given region name
createCache()  : Cache
Build \Doctrine\ORM\Cache
getRegion()  : Region
Build a cache region
getTimestampRegion()  : TimestampRegion
Build timestamp cache region

Methods

buildCachedCollectionPersister()

Build a collection persister for the given relation mapping.

public buildCachedCollectionPersister(EntityManagerInterface $em, CollectionPersister $persister, array<string|int, mixed> $mapping) : CachedCollectionPersister
Parameters
$em : EntityManagerInterface

The entity manager.

$persister : CollectionPersister

The collection persister that will be cached.

$mapping : array<string|int, mixed>

The association mapping.

Return values
CachedCollectionPersister

getRegion()

Build a cache region

public getRegion(array<string, mixed> $cache) : Region
Parameters
$cache : array<string, mixed>

The cache configuration.

Return values
Region

The cache region.

Search results