Documentation

DefaultQueryCache
in package
implements QueryCache

Default query cache implementation.

Tags
psalm-import-type

AssociationMapping from ClassMetadata

Table of Contents

Interfaces

QueryCache
Defines the contract for caches capable of storing query results.

Properties

$cacheLogger  : CacheLogger|null
$em  : EntityManagerInterface
$hints  : array<string, mixed>
$region  : Region
$uow  : UnitOfWork
$validator  : QueryCacheValidator

Methods

__construct()  : mixed
clear()  : bool
get()  : array<string|int, mixed>|null
getRegion()  : Region
put()  : bool
getAssociationPathValue()  : array<string|int, mixed>|object|null
getAssociationValue()  : array<string|int, mixed>|object|null
storeAssociationCache()  : array<string|int, mixed>|null

Properties

$hints

private static array<string, mixed> $hints = [\Doctrine\ORM\Query::HINT_CACHE_ENABLED => true]

Methods

getAssociationPathValue()

private getAssociationPathValue(mixed $value, array<string|int, mixed> $path) : array<string|int, mixed>|object|null
Parameters
$value : mixed
$path : array<string|int, mixed>
Tags
psalm-param

array<array-key, array{field: string, class: string}> $path

psalm-return

list|object|null

Return values
array<string|int, mixed>|object|null

getAssociationValue()

private getAssociationValue(ResultSetMapping $rsm, string $assocAlias, object $entity) : array<string|int, mixed>|object|null
Parameters
$rsm : ResultSetMapping
$assocAlias : string
$entity : object
Tags
psalm-return

list|object|null

Return values
array<string|int, mixed>|object|null

storeAssociationCache()

private storeAssociationCache(QueryCacheKey $key, AssociationMapping $assoc, mixed $assocValue) : array<string|int, mixed>|null
Parameters
$key : QueryCacheKey
$assoc : AssociationMapping
$assocValue : mixed
Tags
psalm-return

array{targetEntity: class-string, type: mixed, list?: array[], identifier?: array}|null

Return values
array<string|int, mixed>|null

        
On this page

Search results