Migrates channel notes to LargeCache

This commit is contained in:
Vitor Pamplona
2024-03-21 08:51:23 -04:00
parent 64909bfb32
commit 67202c32d4
8 changed files with 38 additions and 28 deletions
@@ -32,6 +32,17 @@ class LargeCache<K, V> {
fun size() = cache.size
fun isEmpty() = cache.isEmpty()
fun containsKey(key: K) = cache.containsKey(key)
fun put(
key: K,
value: V,
) {
cache.put(key, value)
}
fun getOrCreate(
key: K,
builder: (key: K) -> V,