LruCache
A coroutine-safe Least Recently Used (LRU) cache implementation designed for Kotlin Coroutines.
This cache evicts the least recently accessed items when the maxSize is exceeded. It uses a Mutex to ensure thread safety across suspending functions, making it safe for concurrent access from multiple coroutines.
Operations generally run in O(1) time complexity, subject to lock contention.
Parameters
K
The type of keys maintained by this cache.
V
The type of mapped values.