From bd4590d7cfaf2fa554ff6c37e095975ac4eb0f02 Mon Sep 17 00:00:00 2001 From: vnugent Date: Sat, 5 Aug 2023 17:50:16 -0400 Subject: Public prep, and api additions --- lib/VNLib.Data.Caching.ObjectCache/src/BlobCache.cs | 2 +- lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/VNLib.Data.Caching.ObjectCache/src') diff --git a/lib/VNLib.Data.Caching.ObjectCache/src/BlobCache.cs b/lib/VNLib.Data.Caching.ObjectCache/src/BlobCache.cs index 5e28dde..525227c 100644 --- a/lib/VNLib.Data.Caching.ObjectCache/src/BlobCache.cs +++ b/lib/VNLib.Data.Caching.ObjectCache/src/BlobCache.cs @@ -119,7 +119,7 @@ namespace VNLib.Data.Caching.ObjectCache //Get the stored blob entry = node.ValueRef.Value; - //Update the + //Update the node vaule with the new key and the same entry node.Value = new KeyValuePair(newId, entry); //Add to end of list diff --git a/lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs b/lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs index f9c1f17..4b88957 100644 --- a/lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs +++ b/lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs @@ -75,7 +75,7 @@ namespace VNLib.Data.Caching.ObjectCache /// /// The other handle to compare /// True if the handles hold a referrence to the same bucket - public bool Equals(CacheBucketHandle other) => _bucket?.Equals(other._bucket) ?? false; + public bool Equals(CacheBucketHandle other) => ReferenceEquals(_bucket, other._bucket); /// /// Determines if the other handle instance is equal to the current. Handles are /// equal iff the underlying bucket referrence is equal. -- cgit