Interface QueryCache

All Known Implementing Classes:
StandardQueryCache

public interface QueryCache
Cache that contains queries and a collection of object identifiers
  • Method Summary

    Modifier and Type
    Method
    Description
    get(QueryKey queryKey)
    Returns the query results associated with queryKey in this cache
    void
    invalidate(String typeName)
    Discards cached query results for metaClass name typeName.
    void
    invalidate(Set<String> typeNames)
    Discards cached query results for metaClass names typeNames.
    void
    Discards all queries results in the cache.
    void
    put(QueryKey queryKey, QueryResult queryResult)
    Associates queryResult with queryKey in this cache
    long
    Returns number of entries in this cache.
  • Method Details

    • get

      QueryResult get(QueryKey queryKey)
      Returns the query results associated with queryKey in this cache
    • put

      void put(QueryKey queryKey, QueryResult queryResult)
      Associates queryResult with queryKey in this cache
    • invalidate

      void invalidate(String typeName)
      Discards cached query results for metaClass name typeName.
    • invalidate

      void invalidate(Set<String> typeNames)
      Discards cached query results for metaClass names typeNames.
    • invalidateAll

      void invalidateAll()
      Discards all queries results in the cache.
    • size

      long size()
      Returns number of entries in this cache.