mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-11-12 01:50:29 +00:00
Merge pull request #189 from InsanusMokrassar/0.12.9
fix of cache filling without clearing of values
This commit is contained in:
@@ -25,6 +25,9 @@ open class SimpleKVCache<K, V>(
|
|||||||
kvParent.unset(it)
|
kvParent.unset(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
do {
|
||||||
|
val removed = cacheQueue.remove(k)
|
||||||
|
} while (removed)
|
||||||
cacheQueue.addLast(k)
|
cacheQueue.addLast(k)
|
||||||
kvParent.set(k, v)
|
kvParent.set(k, v)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user