class DefaultQueryCache implements QueryCache (View source)

Default query cache implementation.

Properties

protected CacheLogger $cacheLogger

Methods

__construct(EntityManagerInterface $em, Region $region)

No description

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

No description

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

No description

boolean
clear()

No description

getRegion()

No description

Details

__construct(EntityManagerInterface $em, Region $region)

Parameters

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

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

Parameters

QueryCacheKey $key
ResultSetMapping $rsm
array $hints

Return Value

array|null

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

Parameters

QueryCacheKey $key
ResultSetMapping $rsm
mixed $result
array $hints

Return Value

boolean

boolean clear()

Return Value

boolean

Region getRegion()

Return Value

Region