class DefaultQueryCache implements QueryCache (View source)

Default query cache implementation.

Properties

protected CacheLogger $cacheLogger

Methods

__construct(EntityManagerInterface $em, Region $region)

No description

object[]|null
get(QueryCacheKey $key, ResultSetMapping $rsm, array $hints = [])

No description

bool
put(QueryCacheKey $key, ResultSetMapping $rsm, $result, array $hints = [])

No description

bool
clear()

No description

getRegion()

No description

Details

__construct(EntityManagerInterface $em, Region $region)

Parameters

EntityManagerInterface $em The entity manager.
Region $region The query region.

object[]|null get(QueryCacheKey $key, ResultSetMapping $rsm, array $hints = [])

Parameters

QueryCacheKey $key
ResultSetMapping $rsm
array $hints

Return Value

object[]|null

bool put(QueryCacheKey $key, ResultSetMapping $rsm, $result, array $hints = [])

Parameters

QueryCacheKey $key
ResultSetMapping $rsm
$result
array $hints

Return Value

bool

bool clear()

Return Value

bool

Region getRegion()

Return Value

Region