diff options
author | vnugent <public@vaughnnugent.com> | 2023-04-08 16:44:52 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2023-04-08 16:44:52 -0400 |
commit | b036e4665605e192df377290760321a8e17794e7 (patch) | |
tree | ec260b1b15d9d75fc26cecb42a105a85a377e014 /libs/VNLib.Plugins.Sessions.Cache.Client/src/GlobalCacheStore.cs | |
parent | a37e01df6b8c10525ea4311344959fe5273059c1 (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.cs | 7 |
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/> |