cache2k v1.3.1.Alpha Release Notes

Release Date: 2019-08-26 // over 4 years ago
  • 🆕 New and Noteworthy

    • AsyncCacheLoader, eviction listener and eviction improvements

    API Changes

    🆕 New methods:

    • 0️⃣ CacheManager.STANDARD_DEFAULT_MANAGER_NAME
    • CacheInfoMXBean.isWeigherPresent()
    • CacheInfoMXBean.isLoaderPresent()
    • CacheInfoMXBean.getCurrentWeight()
    • CacheInfoMXBean.getMaximumWeight()
    • Cache.getStatistics()

    🆕 New interface:

    • AsyncCacheLoader

    🛠 Fixes and Improvements

    • ✂ Remove randomized hash seed and simplify the "rehashing" of hash codes identical to Java
      HashMap and ConcurrentHashMap
    • 🛠 Fix CacheManager.setDefaultName, see GH#108
    • Async Cacheloader GH#93
    • CacheEntryEvictionListener added, GH#59
    • 🔦 Expose cache statistics via Cache.getStatistics()
    • 👀 Eviction: Efficiency improvements, see comment: #101 (comment)
    • 🔀 Expiry listener supports synchronous operation