Skip to content

Commit bdb5d6b

Browse files
d2dyno1Copilot
andauthored
Adjust dictionary cache eviction comment
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 17e6c46 commit bdb5d6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Core/SecureFolderFS.Core.FileSystem/UniversalCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public virtual bool CacheSet(TKey key, TValue value, bool skipExistingCheck = fa
6767

6868
lock (threadLock)
6969
{
70-
// Evict the oldest entry when the capacity is reached
70+
// Evict an arbitrary entry when the capacity is reached (Dictionary enumeration order is not guaranteed)
7171
if (capacity > 0 && cache.Count >= capacity && !cache.ContainsKey(key))
7272
{
7373
using var enumerator = cache.Keys.GetEnumerator();

0 commit comments

Comments
 (0)