aboutsummaryrefslogtreecommitdiff
path: root/libs/VNLib.Plugins.Sessions.Cache.Client/src/GlobalCacheStore.cs
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-04-08 16:44:52 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-04-08 16:44:52 -0400
commitb036e4665605e192df377290760321a8e17794e7 (patch)
treeec260b1b15d9d75fc26cecb42a105a85a377e014 /libs/VNLib.Plugins.Sessions.Cache.Client/src/GlobalCacheStore.cs
parenta37e01df6b8c10525ea4311344959fe5273059c1 (diff)
Update serializer api, expose configurable buffer size
Diffstat (limited to 'libs/VNLib.Plugins.Sessions.Cache.Client/src/GlobalCacheStore.cs')
-rw-r--r--libs/VNLib.Plugins.Sessions.Cache.Client/src/GlobalCacheStore.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/VNLib.Plugins.Sessions.Cache.Client/src/GlobalCacheStore.cs b/libs/VNLib.Plugins.Sessions.Cache.Client/src/GlobalCacheStore.cs
index bb7acd6..89b2b5b 100644
--- a/libs/VNLib.Plugins.Sessions.Cache.Client/src/GlobalCacheStore.cs
+++ b/libs/VNLib.Plugins.Sessions.Cache.Client/src/GlobalCacheStore.cs
@@ -45,12 +45,13 @@ namespace VNLib.Plugins.Sessions.Cache.Client
/// Initiailzes a new <see cref="GlobalCacheStore"/> with the backing <see cref="IGlobalCacheProvider"/>
/// global cache
/// </summary>
- /// <param name="globalCache"></param>
+ /// <param name="globalCache">The backing cache store</param>
+ /// <param name="bufferSize">The size of the buffer used to serialize session objects</param>
/// <exception cref="ArgumentNullException"></exception>
- public GlobalCacheStore(IGlobalCacheProvider globalCache)
+ public GlobalCacheStore(IGlobalCacheProvider globalCache, int bufferSize)
{
_cache = globalCache ?? throw new ArgumentNullException(nameof(globalCache));
- _serialzer = new();
+ _serialzer = new(bufferSize);
}
///<inheritdoc/>