mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-10-25 14:17:14 +00:00
fix of cache filling without clearing of values
This commit is contained in:
1 parent
38499c3d4a
commit
118e3dba39
1 file changed
+3
+3
@@ -25,6 +25,9 @@ open class SimpleKVCache<K, V>(
|
||||
kvParent.unset(it)
|
||||
}
|
||||
}
|
||||
do {
|
||||
val removed = cacheQueue.remove(k)
|
||||
} while (removed)
|
||||
cacheQueue.addLast(k)
|
||||
kvParent.set(k, v)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user