Record - cache : CacheConfig

Represents cache configuration.

Fields

  • capacity int (default 100)
  • Maximum number of entries allowed

  • evictionPolicy AbstractEvictionPolicy (default BLangTypeInit: new LruEvictionPolicy ([]) )
  • The policy which defines the cache eviction algorithm

  • evictionFactor float (default 0.25)
  • The factor which the entries will be evicted once the cache full

  • defaultMaxAgeInSeconds int (default -1)
  • The default value in seconds which all the cache entries are valid. '-1' means, the entries are valid forever. This will be overwritten by the the maxAgeInSeconds property set when inserting item to the cache

  • cleanupIntervalInSeconds int
  • Interval of the timer task which clean up the cache