aboutsummaryrefslogtreecommitdiff
path: root/lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-08-05 17:50:16 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-08-05 17:50:16 -0400
commitbd4590d7cfaf2fa554ff6c37e095975ac4eb0f02 (patch)
tree66c4720e46cb7eb066a784a22a4de3544babbafb /lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs
parent6de8bb6b38b716605f0d275d998ca47e33520b7a (diff)
Public prep, and api additions
Diffstat (limited to 'lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs')
-rw-r--r--lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs2
1 files changed, 1 insertions, 1 deletions
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
/// </summary>
/// <param name="other">The other handle to compare</param>
/// <returns>True if the handles hold a referrence to the same bucket</returns>
- public bool Equals(CacheBucketHandle other) => _bucket?.Equals(other._bucket) ?? false;
+ public bool Equals(CacheBucketHandle other) => ReferenceEquals(_bucket, other._bucket);
/// <summary>
/// Determines if the other handle instance is equal to the current. Handles are
/// equal iff the underlying bucket referrence is equal.