Interface QueryCache
- All Known Implementing Classes:
StandardQueryCache
public interface QueryCache
Cache that contains queries and a collection of object identifiers
-
Method Summary
Modifier and TypeMethodDescriptionReturns the query results associated withqueryKey
in this cachevoid
invalidate
(String typeName) Discards cached query results for metaClass nametypeName
.void
invalidate
(Set<String> typeNames) Discards cached query results for metaClass namestypeNames
.void
Discards all queries results in the cache.void
put
(QueryKey queryKey, QueryResult queryResult) AssociatesqueryResult
withqueryKey
in this cachelong
size()
Returns number of entries in this cache.
-
Method Details
-
get
Returns the query results associated withqueryKey
in this cache -
put
AssociatesqueryResult
withqueryKey
in this cache -
invalidate
Discards cached query results for metaClass nametypeName
. -
invalidate
Discards cached query results for metaClass namestypeNames
. -
invalidateAll
void invalidateAll()Discards all queries results in the cache. -
size
long size()Returns number of entries in this cache.
-