java.lang.Object
io.ebeaninternal.server.cache.DefaultServerCache
io.ebeaninternal.server.cache.DefaultServerQueryCache
- All Implemented Interfaces:
ServerCache
Server cache for query caching.
Entries in this cache contain QueryCacheEntry and we need to additionally validate the entries when hit for changes to dependent tables.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.ebeaninternal.server.cache.DefaultServerCache
DefaultServerCache.CacheEntry, DefaultServerCache.CompareByLastAccess, DefaultServerCache.EvictionRunnable -
Field Summary
Fields inherited from class io.ebeaninternal.server.cache.DefaultServerCache
BY_LAST_ACCESS, clearCount, evictCount, gcCount, hitCount, idleCount, lock, logger, lruCount, map, maxIdleSecs, maxSecsToLive, maxSize, missCount, mutationCounter, name, putCount, removeCount, shortName, trimFrequency, trimOnPut, ttlCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultServerCache.CacheEntrygetCacheEntry(Object key) Get the cache entry - override for query cache to validate dependent tables.protected ObjectUnwrap the cache entry - override for query cache to unwrap to the query result.Methods inherited from class io.ebeaninternal.server.cache.DefaultServerCache
clear, get, getHitCount, getMissCount, getName, getShortName, getTrimSize, hitRatio, periodicTrim, put, putAll, remove, runEviction, size, statistics, visitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.ebean.cache.ServerCache
getAll, removeAll, unwrap
-
Constructor Details
-
DefaultServerQueryCache
-
-
Method Details
-
unwrapEntry
Description copied from class:DefaultServerCacheUnwrap the cache entry - override for query cache to unwrap to the query result.- Overrides:
unwrapEntryin classDefaultServerCache
-
getCacheEntry
Description copied from class:DefaultServerCacheGet the cache entry - override for query cache to validate dependent tables.- Overrides:
getCacheEntryin classDefaultServerCache
-