Skip to content

v2.5.0

Compare
Choose a tag to compare
@areyouok areyouok released this 06 May 14:32
· 465 commits to master since this release
  • Compatibility Note: ClassCastException may occurs when upgrade directly from versions <=2.3.3 and MultiLevelCache(or cacheType=CacheType.BOTH) is used. To solve this problem, upgrade to 2.4.4 and deploy it to product env first, then upgrade to 2.5.0 or above.
  • Add penetration protect feature. Only one thread execute loader when cache miss. Add @CachePenetrationProtect. Affected methods include AbstractCache#computeIfAbsent, LoadingCache#get, LoadingCache#getAll.
  • Allow set expire of local and remote sub cache respectively, in MultiLevelCache. Add useExpireOfSubCache to MultiLevelCache, add localExpire to @cached and @CreateCache. This may break remote value compatibility of MultiLevelCache, version <=2.3.3
  • Annotations on sub classes will override annotations on interfaces and super class
  • Add targetClass to NameGenerator.generateCacheName, see #46
  • Update minor version of dependencies