diff options
author | vnugent <public@vaughnnugent.com> | 2024-02-29 21:22:38 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-02-29 21:22:38 -0500 |
commit | 016a96a80cce025a86c6cf26707738f6a2eb2658 (patch) | |
tree | 2648ea3f111493253c2c7bd635784daab393f609 /plugins/ObjectCacheServer/src/Cache/CacheStore.cs | |
parent | 456ead9bc8b0f61357bae93152ad0403c4940101 (diff) |
feat: add future support for memory diagnostics, and some docs
Diffstat (limited to 'plugins/ObjectCacheServer/src/Cache/CacheStore.cs')
-rw-r--r-- | plugins/ObjectCacheServer/src/Cache/CacheStore.cs | 11 |
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) |