aboutsummaryrefslogtreecommitdiff
path: root/lib/VNLib.Data.Caching.ObjectCache
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
parent6de8bb6b38b716605f0d275d998ca47e33520b7a (diff)
Public prep, and api additions
Diffstat (limited to 'lib/VNLib.Data.Caching.ObjectCache')
-rw-r--r--lib/VNLib.Data.Caching.ObjectCache/LICENSE.txt4
-rw-r--r--lib/VNLib.Data.Caching.ObjectCache/README.md17
-rw-r--r--lib/VNLib.Data.Caching.ObjectCache/src/BlobCache.cs2
-rw-r--r--lib/VNLib.Data.Caching.ObjectCache/src/CacheBucketHandle.cs2
4 files changed, 17 insertions, 8 deletions
diff --git a/lib/VNLib.Data.Caching.ObjectCache/LICENSE.txt b/lib/VNLib.Data.Caching.ObjectCache/LICENSE.txt
index 147bcd6..a169586 100644
--- a/lib/VNLib.Data.Caching.ObjectCache/LICENSE.txt
+++ b/lib/VNLib.Data.Caching.ObjectCache/LICENSE.txt
@@ -1,8 +1,8 @@
-Copyright (c) 2022 Vaughn Nugent
+Copyright (c) 2023 Vaughn Nugent
Contact information
Name: Vaughn Nugent
- Email: public[at]vaughnnugent[dot]com
+ Email: vnpublic@proton.me
Website: https://www.vaughnnugent.com
The software in this repository is licensed under the GNU Affero GPL version 3.0 (or any later version).
diff --git a/lib/VNLib.Data.Caching.ObjectCache/README.md b/lib/VNLib.Data.Caching.ObjectCache/README.md
index 4326223..bf6f032 100644
--- a/lib/VNLib.Data.Caching.ObjectCache/README.md
+++ b/lib/VNLib.Data.Caching.ObjectCache/README.md
@@ -1,8 +1,17 @@
-# VNLib.Data.Caching.Extensions
-*An extension library for rapid VNCache development*
+# VNLib.Data.Caching.ObjectCache
+*A library for developing in-memory or persistent object data caching for client or server application*
-#### Builds
-Debug build w/ symbols & xml docs, release builds, NuGet packages, and individually packaged source code are available on my [website](https://www.vaughnnugent.com/resources/software). All tar-gzip (.tgz) files will have an associated .sha384 appended checksum of the desired download file.
+**This library has no 3rd-party dependencies**
+
+## Builds
+Debug build w/ symbols & xml docs, release builds, NuGet packages, and individually packaged source code are available on my website (link below).
+
+## Docs and Guides
+Documentation, specifications, and setup guides are available on my website.
+
+[Docs and Articles](https://www.vaughnnugent.com/resources/software/articles?tags=docs,_VNLib.Data.Caching.ObjectCache)
+[Builds and Source](https://www.vaughnnugent.com/resources/software/modules/VNLib.Data.Caching)
+[Nuget Feeds](https://www.vaughnnugent.com/resources/software/modules)
## License
Source files in for this project are licensed to you under the GNU Affero General Public License (or any later version). See the LICENSE files for more information. \ No newline at end of file
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<string, CacheEntry>(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
/// </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.