aboutsummaryrefslogtreecommitdiff
path: root/VNLib.Data.Caching.ObjectCache
diff options
context:
space:
mode:
Diffstat (limited to 'VNLib.Data.Caching.ObjectCache')
-rw-r--r--VNLib.Data.Caching.ObjectCache/ChangeEvent.cs14
-rw-r--r--VNLib.Data.Caching.ObjectCache/ObjectCacheStore.cs18
-rw-r--r--VNLib.Data.Caching.ObjectCache/VNLib.Data.Caching.ObjectCache.csproj1
3 files changed, 17 insertions, 16 deletions
diff --git a/VNLib.Data.Caching.ObjectCache/ChangeEvent.cs b/VNLib.Data.Caching.ObjectCache/ChangeEvent.cs
index 4c56255..7ee4427 100644
--- a/VNLib.Data.Caching.ObjectCache/ChangeEvent.cs
+++ b/VNLib.Data.Caching.ObjectCache/ChangeEvent.cs
@@ -9,17 +9,17 @@
* VNLib collection of libraries and utilities.
*
* VNLib.Data.Caching.ObjectCache is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published
-* by the Free Software Foundation, either version 2 of the License,
-* or (at your option) any later version.
+* it under the terms of the GNU Affero General Public License as
+* published by the Free Software Foundation, either version 3 of the
+* License, or (at your option) any later version.
*
* VNLib.Data.Caching.ObjectCache is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* General Public License for more details.
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
*
-* You should have received a copy of the GNU General Public License
-* along with VNLib.Data.Caching.ObjectCache. If not, see http://www.gnu.org/licenses/.
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see https://www.gnu.org/licenses/.
*/
namespace VNLib.Data.Caching.ObjectCache
diff --git a/VNLib.Data.Caching.ObjectCache/ObjectCacheStore.cs b/VNLib.Data.Caching.ObjectCache/ObjectCacheStore.cs
index ff2e8a3..514d00b 100644
--- a/VNLib.Data.Caching.ObjectCache/ObjectCacheStore.cs
+++ b/VNLib.Data.Caching.ObjectCache/ObjectCacheStore.cs
@@ -9,17 +9,17 @@
* VNLib collection of libraries and utilities.
*
* VNLib.Data.Caching.ObjectCache is free software: you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published
-* by the Free Software Foundation, either version 2 of the License,
-* or (at your option) any later version.
+* it under the terms of the GNU Affero General Public License as
+* published by the Free Software Foundation, either version 3 of the
+* License, or (at your option) any later version.
*
* VNLib.Data.Caching.ObjectCache is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* General Public License for more details.
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Affero General Public License for more details.
*
-* You should have received a copy of the GNU General Public License
-* along with VNLib.Data.Caching.ObjectCache. If not, see http://www.gnu.org/licenses/.
+* You should have received a copy of the GNU Affero General Public License
+* along with this program. If not, see https://www.gnu.org/licenses/.
*/
using System;
@@ -27,7 +27,6 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
-using VNLib.Utils.IO;
using VNLib.Utils.Async;
using VNLib.Utils.Memory;
using VNLib.Utils.Logging;
@@ -247,6 +246,9 @@ namespace VNLib.Data.Caching.ObjectCache
{
Cache?.Clear();
}
+
+ StoreLock.Dispose();
+
disposedValue = true;
}
}
diff --git a/VNLib.Data.Caching.ObjectCache/VNLib.Data.Caching.ObjectCache.csproj b/VNLib.Data.Caching.ObjectCache/VNLib.Data.Caching.ObjectCache.csproj
index 91e261c..d35ed8a 100644
--- a/VNLib.Data.Caching.ObjectCache/VNLib.Data.Caching.ObjectCache.csproj
+++ b/VNLib.Data.Caching.ObjectCache/VNLib.Data.Caching.ObjectCache.csproj
@@ -26,7 +26,6 @@
<ItemGroup>
<ProjectReference Include="..\..\..\VNLib\Utils\src\VNLib.Utils.csproj" />
- <ProjectReference Include="..\VNLib.Data.Caching\src\VNLib.Data.Caching.csproj" />
</ItemGroup>
</Project>