1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
"debug": false,
//Provider assemblies to load
"provider_assemblies": [ "VNLib.Plugins.Sessions.VNCache.dll" ],
//Web session provider, valid format for VNCache and also memory sessions
"web": {
//Cache system key prefix
"cache_prefix": "websessions",
//The session cookie name
"cookie_name": "VNSession",
//Size in bytes for generated session ids
"cookie_size": 40,
//time (in seconds) a session is valid for
"valid_for_sec": 3600,
//The maxium number of connections waiting for the cache server responses
"max_waiting_connections": 100
},
//Enable vncache as the providers above rely on the object caching server
"vncache": {
//Max size (in bytes) of allowed data to be stored in each user's session object
"max_object_size": 8128,
//Initial nodes to discover from
"initial_nodes": [],
//Setting this value to true will cause the cache store to load a memory-only instance, without remote backing
"memory_only": true,
//enable memory cache
"memory_cache": {
"buckets": 20,
"bucket_size": 5000,
"max_age_sec": 600,
"refresh_interval_sec": 60
}
}
}
|