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

boolean
clear()

No description

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

No description

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

No description

getRegion()

No description

Details

boolean clear()

Return Value

boolean

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

Parameters

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

Return Value

boolean

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

Parameters

QueryCacheKey $key
ResultSetMapping $rsm
array $hints

Return Value

array|null

Region getRegion()

Return Value

Region