aboutsummaryrefslogtreecommitdiff
path: root/plugins/ObjectCacheServer/src/Cache
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ObjectCacheServer/src/Cache')
-rw-r--r--plugins/ObjectCacheServer/src/Cache/CacheStore.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/ObjectCacheServer/src/Cache/CacheStore.cs b/plugins/ObjectCacheServer/src/Cache/CacheStore.cs
index 75abe37..86df849 100644
--- a/plugins/ObjectCacheServer/src/Cache/CacheStore.cs
+++ b/plugins/ObjectCacheServer/src/Cache/CacheStore.cs
@@ -39,19 +39,14 @@ namespace VNLib.Data.Caching.ObjectCache.Server.Cache
*/
[ConfigurationName("cache")]
- internal sealed class CacheStore : ICacheStore, IDisposable
+ internal sealed class CacheStore(PluginBase plugin, IConfigScope config) : ICacheStore, IDisposable
{
+
/// <summary>
/// Gets the underlying cache listener
/// </summary>
- public BlobCacheListener<IPeerEventQueue> Listener { get; }
-
+ public BlobCacheListener<IPeerEventQueue> Listener { get; } = InitializeCache((ObjectCacheServerEntry)plugin, config);
- public CacheStore(PluginBase plugin, IConfigScope config)
- {
- //Init cache
- Listener = InitializeCache((ObjectCacheServerEntry)plugin, config);
- }
///<inheritdoc/>
ValueTask ICacheStore.AddOrUpdateBlobAsync<T>(string objectId, string? alternateId, ObjectDataGet<T> bodyData, T state, CancellationToken token)