mediatekformation

DefaultCacheFactory
in package
implements CacheFactory

Interfaces, Classes, Traits and Enums

CacheFactory
Contract for building second level cache regions components.

Table of Contents

$cache  : Cache
$fileLockRegionDirectory  : string|null
$regions  : array<string|int, Region>
$regionsConfig  : RegionsConfiguration
$timestampRegion  : TimestampRegion|null
__construct()  : mixed
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
getFileLockRegionDirectory()  : string
getRegion()  : Region
Build a cache region
getTimestampRegion()  : TimestampRegion
Build timestamp cache region
setFileLockRegionDirectory()  : void
setRegion()  : void
setTimestampRegion()  : void
createRegionCache()  : Cache

Properties

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

getFileLockRegionDirectory()

public getFileLockRegionDirectory() : string
Return values
string

getRegion()

Build a cache region

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

The cache configuration.

Return values
Region

The cache region.

setFileLockRegionDirectory()

public setFileLockRegionDirectory(string $fileLockRegionDirectory) : void
Parameters
$fileLockRegionDirectory : string
Return values
void

Search results