Annotationsschnittstelle Cache
Define the caching configuration of a given MongoDbObject. The options are as follows:
timeout: int timout in ms when a cache entry becomes invalid, default -1 means use globalCacheValidTime
maxEntries: default -1 means unlimited (Only limited by Memory, uses SoftReferences!)
clearOnWrite: clear cache if one element is written
strategy: when using fixed number of entries, define how to remove additional entries
readCache: use cache for reading
writeCache: use cache for writing (schedule write as background job), default false
- Autor:
- stephan
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumstatic enum -
Optionale Elemente - Übersicht
Optionale ElementeModifizierer und TypOptionales ElementBeschreibungbooleanintbooleanint
-
Elementdetails
-
timeout
int timeout- Standard:
-1
-
clearOnWrite
boolean clearOnWrite- Standard:
true
-
maxEntries
int maxEntries- Standard:
-1
-
strategy
Cache.ClearStrategy strategy- Standard:
FIFO
-
readCache
boolean readCache- Standard:
true
-
syncCache
Cache.SyncCacheStrategy syncCache- Standard:
NONE
-