aboutsummaryrefslogtreecommitdiff
path: root/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.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.OAuth/src/OAuth2SessionStore.cs
parenta37e01df6b8c10525ea4311344959fe5273059c1 (diff)
Update serializer api, expose configurable buffer size
Diffstat (limited to 'libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs')
-rw-r--r--libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs b/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs
index 8719002..8c65bc8 100644
--- a/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs
+++ b/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs
@@ -40,6 +40,8 @@ namespace VNLib.Plugins.Sessions.OAuth
[ConfigurationName(O2SessionProviderEntry.OAUTH2_CONFIG_KEY)]
internal sealed class OAuth2SessionStore : SessionStore<OAuth2Session>
{
+ const int MAX_SESSION_BUFFER_SIZE = 16 * 1024;
+
private ILogProvider _log;
protected override ISessionIdFactory IdFactory { get; }
@@ -58,7 +60,7 @@ namespace VNLib.Plugins.Sessions.OAuth
.GetPrefixedCache(o2Conf.CachePrefix, HashAlg.SHA256);
//Create remote cache
- Cache = new GlobalCacheStore(cache);
+ Cache = new GlobalCacheStore(cache, MAX_SESSION_BUFFER_SIZE);
IdFactory = plugin.GetOrCreateSingleton<OAuth2TokenFactory>();