interface QueryCache (View source)

Defines the contract for caches capable of storing query results.

These caches should only concern themselves with storing the matching result ids.

Methods

bool
clear()

No description

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

No description

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

No description

getRegion()

No description

Details

bool clear()

Return Value

bool

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

Parameters

QueryCacheKey $key
ResultSetMapping $rsm
$result
array $hints

Return Value

bool

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

Parameters

QueryCacheKey $key
ResultSetMapping $rsm
array $hints

Return Value

object[]|null

Region getRegion()

Return Value

Region