java.lang.ArrayIndexOutOfBoundsException: length=7; index=-1
at com.mayakapps.kache.collection.MutableChain.resizeStorage$kache(Chain.kt:100)
at com.mayakapps.kache.collection.MutableChainedScatterMap.resizeStorage(MutableChainedScatterMap.kt:89)
at com.mayakapps.kache.collection.MutableScatterMap.adjustStorage(ScatterMap.kt:1314)
at com.mayakapps.kache.collection.MutableScatterMap.findInsertIndex$kache(ScatterMap.kt:1254)
at com.mayakapps.kache.collection.MutableScatterMap.put(ScatterMap.kt:991)
at com.mayakapps.kache.InMemoryKache.put(InMemoryKache.kt:233)
val pageCache = InMemoryKache<String, CacheableResponse>(maxSize = cacheSize) {
strategy = KacheStrategy.LRU
expireAfterWriteDuration = CACHE_EXPIRATION_TIME_MS.milliseconds
onEntryRemoved = { evicted, key, oldValue, newValue ->
println("CACHE: Page Entry Removed - Evicted: $evicted")
}
}