Annotationsschnittstelle Cache


@Target(TYPE) @Retention(RUNTIME) public @interface 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
  • Elementdetails

    • timeout

      int timeout
      Standard:
      -1
    • clearOnWrite

      boolean clearOnWrite
      Standard:
      true
    • maxEntries

      int maxEntries
      Standard:
      -1
    • strategy

      Standard:
      FIFO
    • readCache

      boolean readCache
      Standard:
      true
    • syncCache

      Standard:
      NONE