cache4k icon indicating copy to clipboard operation
cache4k copied to clipboard

In-memory Cache for Kotlin Multiplatform.

Results 14 cache4k issues
Sort by recently updated
recently updated
newest added

Please, add these two platforms to the build

``` java.util.ConcurrentModificationException java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:756) java.base/java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:778) io.github.reactivecircus.cache4k.RealCache.expireEntries(RealCache.kt:174) io.github.reactivecircus.cache4k.RealCache.put(RealCache.kt:120) ```

Please, add support for linuxX64 platform. I have checked all tests are passing properly. Just add it in kotlin.gradle.kts.

Is it possible to set the expiration time during execution of the loader? Trying to cache some oauth tokens whose expiration time is known when the loader gets them. Not...

enhancement

In my application, I'd like to cache instances of an object which require to be shut down properly via a `shutdown()` method. I want to cache them, since idk how...

enhancement

Using this library for JVM I noticed that my app based on `compose-jb` won't exit properly. I suspect that there is a thread running in the background that prevents shutdown,...

This causes it to be typed as `Any` when trying to consume it.

Following https://github.com/ReactiveCircus/cache4k/pull/39 we want to fix the remaining linearizability surfaced by Lincheck.

same key is expiring twice with this config ``` val cache = Cache.Builder() .maximumCacheSize(1_00) .expireAfterWrite(2.seconds) .expireAfterAccess(5.seconds) .eventListener { event -> when (event) { is CacheEvent.Created -> {} is CacheEvent.Updated ->...

code fun storeCredentials(value: String) { val cache = Cache.Builder().build() cache.put(KeyConstant.userCredentials, value) val value = cache.get(KeyConstant.userCredentials) print(value) } fun retrieveCredentials(): String? { val cache = Cache.Builder().build() val creds = cache.get(KeyConstant.userCredentials) return...