Changelog History
Page 2
-
v1.3.8.Beta Changes
September 10, 2020๐ This is a preview release for evaluation purposes and should not be used in production.
๐ New and Noteworthy
- Stabilizing new features
Possible Breakages
- 0๏ธโฃ A created
SpringCache2kCacheManager
binds to the cache2k cache managerspringDefault
0๏ธโฃ instead todefault
.
API Changes
- N/A
๐ Fixes and Improvements
- 0๏ธโฃ Micrometer support: don't register to any registry by default
- Clarify semantics of current entry for
AdvancedCacheLoader
andAsyncCacheLoader
-
v1.3.7.Beta Changes
August 30, 2020๐ This is a preview release for evaluation purposes and should not be used in production.
๐ New and Noteworthy
- Stabilizing new features
Possible Breakages
- N/A
API Changes
- N/A
๐ Fixes and Improvements
- ๐ Fix corrupted JSON file for GraalVM native image build in last release
-
v1.3.6.Beta Changes
August 30, 2020๐ This is a preview release for evaluation purposes and should not be used in production.
๐ New and Noteworthy
- Stabilizing new features
Possible Breakages
- N/A
API Changes
- N/A
๐ Fixes and Improvements
- ๐ Improved GraalVM native image support, no extra configuration needed, #152
- Correct wrong EntryProcessor behavior introduced during version 1.3.x
-
v1.3.5.Beta Changes
August 29, 2020๐ This is a preview release for evaluation purposes and should not be used in production.
๐ New and Noteworthy
- Stabilizing new features
Possible Breakages
- N/A
API Changes
- N/A
๐ Fixes and Improvements
- โก๏ธ Update Clock-Pro hot and ghost area sizes correctly when capacity is changed
- ๐ง Experimental support for GraalVM: Add switches to disable XML configuration and JMX support, with:
๐-Dorg.cache2k.impl.serverSide.JmxSupport.Tunable.enable=off -Dorg.cache2k.core.Cache2kCoreProviderImpl.Tunable.enableExternalConfiguration=off
, see #152
-
v1.3.4.Beta Changes
August 25, 2020๐ This is a preview release for evaluation purposes and should not be used in production.
๐ New and Noteworthy
- Stabilizing new features
Possible Breakages
- ๐ changed Weigher return type, see below
API Changes
- ๐ deprecated
AbstractCacheEntry
- Weigher result type is
int
notlong
, the weigher is new in 1.3/1.4, so this is not breaking
code running on cache2k 1.2.x
๐ Fixes and Improvements
- โ
More tests and fixes with
Weigher
- ๐จ
CacheEntry.toString
output does not calltoString
on the value and print hashCode instead - doc clarifications
- ๐ Code style improvements
-
v1.3.3.Alpha Changes
August 17, 2020๐ This is a preview release for evaluation purposes and should not be used in production.
๐ New and Noteworthy
- ๐ micrometer support
Possible Breakages
API Changes
- ๐ deprecated builder methods:
buildIntCache
andbuildLongCache
๐ Fixes and Improvements
- ๐ Support for new cache methods from Spring Framework 5.2
- doc clarifications and improvements
- 0๏ธโฃ SpringCache2kCacheManager.setAllowUnknownCache is true by default, to minimize initial setup
- Online resize of caches
-
v1.3.2.Alpha Changes
August 07, 2020๐ This is a preview release for evaluation purposes and should not be used in production.
๐ New and Noteworthy
- ๐ Synchronous execution of expiry listener
Possible Breakages
๐
Cache2kBuilder.addListener
will execute anEntryExpiredLister
synchronously. In version
1.2 an expiry listener was always executed asynchronously. This is an potentially incompatible
๐ change, in case expiry listeners are used. Review the existing client code and
๐ make sure that addAsyncListeners is used for anEntryExpiredLister
if that is wanted.API Changes
- ๐ Deprecated IntCache and LongCache
๐ Fixes and Improvements
- โช Revert deprecation of
ExceptionPropagator
introduced in version 1.3.1 - Internal: Improvement and simplification of
ExceptionPropagator
handling - ๐ fix missing expiry listener call after a created listener call, in case expiry during the insert
expiry
,expireAfterWrite
,refresAhead
: Fix race condition of aCache.put
and the
termination of the probation period after a refresh.Cache.invoke
/EntryProcessor
: Internal improvements when using listeners: avoid unnecessary entry reads- ๐ race of refresh and delete: if an entry is deleted via
Cache.remove
it was not
reappearing when refreshed concurrently - internal cleanup: use common code for refresh in different cache variants
- eviction efficiency fix for a few special short traces
-
v1.3.1.Alpha Changes
August 26, 2019๐ 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
andConcurrentHashMap
- ๐ 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
-
v1.2.4.Final Changes
September 04, 2019๐ This is a bugfix / service release.
๐ Changes
- 0๏ธโฃ Silently ignore when no default manager name is set via JNDI, GH#130
Using this cache2k version
The binaries are available on maven central.
For Java SE/EE and Android environments
For Maven users:
<dependency> <groupId>org.cache2k</groupId> <artifactId>cache2k-base-pom</artifactId> <version>1.2.4.Final</version> <type>pom</type> </dependency>
Recommended for Gradle users:
def cache2kVersion = '1.2.4.Final' dependencies { implementation "org.cache2k:cache2k-api:${cache2kVersion}" runtimeOnly "org.cache2k:cache2k-core:${cache2kVersion}" }
Note to Android users: The included jar files contain code that might only be needed in server environments (e.g. JMX support).
โ It is possible to strip unnecessary code. Example ProGuard rules can be found at Andriod - cache2k User GuideUsing the JCache / JSR107 provider
Maven users include the cache2k JCache provider this way:
<dependency> <groupId>org.cache2k</groupId> <artifactId>cache2k-jcache</artifactId> <version>1.2.4.Final</version> <scope>runtime</scope> </dependency>
For Gradle users:
dependencies { runtimeOnly "org.cache2k:cache2k-jcache:1.2.4.Final" }
๐ง Implementation details, tuning tips and hints on configuration can be found at: JCache - cache2k User Guide
-
v1.2.3.Final Changes
August 08, 2019๐ cache2k is a high performance and light weight in-process caching library. Compared to other libraries
(EHCache, Guava and Caffeine) it achieves the highest throughput for cache hits while still providing
one of the best eviction efficiency. Advanced features of cache2k, like refresh ahead and resilience
can solve typical application problems with ease.๐ This is a bugfix / service release.
๐ฒ This change log lists changes since the last version 1.2.2.Final.
๐ Changes
- ๐ Fix startup problem on Android when ProGuard is not used, [GH#102](mvn -Psonatype-oss-release -DskipTests -DgitSha1=$sha1 -DgitBranch=$branch nexus-staging:release
#102)
Using this cache2k version
The binaries are available on maven central.
For Java SE/EE and Android environments
For Maven users:
<dependency> <groupId>org.cache2k</groupId> <artifactId>cache2k-base-pom</artifactId> <version>1.2.3.Final</version> <type>pom</type> </dependency>
Recommended for Gradle users:
def cache2kVersion = '1.2.3.Final' dependencies { implementation "org.cache2k:cache2k-api:${cache2kVersion}" runtimeOnly "org.cache2k:cache2k-core:${cache2kVersion}" }
Note to Android users: The included jar files contain code that might only be needed in server environments (e.g. JMX support).
โ It is possible to strip unnecessary code. Example ProGuard rules can be found at Andriod - cache2k User GuideUsing the JCache / JSR107 provider
Maven users include the cache2k JCache provider this way:
<dependency> <groupId>org.cache2k</groupId> <artifactId>cache2k-jcache</artifactId> <version>1.2.3.Final</version> <scope>runtime</scope> </dependency>
For Gradle users:
dependencies { runtimeOnly "org.cache2k:cache2k-jcache:1.2.3.Final" }
๐ง Implementation details, tuning tips and hints on configuration can be found at: JCache - cache2k User Guide
- ๐ Fix startup problem on Android when ProGuard is not used, [GH#102](mvn -Psonatype-oss-release -DskipTests -DgitSha1=$sha1 -DgitBranch=$branch nexus-staging:release