Skip to content

Commit ae553d1

Browse files
authored
Merge pull request #215 from cnblogs/add-sample-settings
chore: add appsettings.example.json
2 parents b496c45 + ea55ee6 commit ae553d1

File tree

2 files changed

+50
-17
lines changed

2 files changed

+50
-17
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"EnyimMemcached": {
3+
"Servers": [
4+
{
5+
"Address": "memcached",
6+
"Port": 11211
7+
}
8+
],
9+
"SocketPool": {
10+
"minPoolSize": 5,
11+
"maxPoolSize": 25,
12+
"connectionTimeout": "00:00:15",
13+
"receiveTimeout": "00:00:15",
14+
"deadTimeout": "00:00:15",
15+
"queueTimeout": "00:00:00.150"
16+
},
17+
"SuppressException": false,
18+
"UseSslStream": false,
19+
"UseIPv6": false,
20+
"Transcoder": "MessagePackTranscoder",
21+
"KeyTransformer": "Enyim.Caching.Memcached.SHA1KeyTransformer",
22+
"Authentication": {
23+
"Type": "Enyim.Caching.Memcached.PlainTextAuthenticator",
24+
"Parameters": {
25+
"zone": "",
26+
"userName": "username",
27+
"password": "password"
28+
}
29+
}
30+
},
31+
32+
"postbodyMemcached": {
33+
"Servers": [
34+
{
35+
"Address": "memcached",
36+
"Port": 11211
37+
}
38+
]
39+
},
40+
41+
"Logging": {
42+
"LogLevel": {
43+
"Default": "Warning",
44+
"Enyim": "Warning"
45+
}
46+
}
47+
}

sample/SampleWebApp/appsettings.json

+3-17
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,15 @@
77
}
88
],
99
"socketPool": {
10-
"minPoolSize": "5",
11-
"maxPoolSize": "25",
10+
"minPoolSize": 5,
11+
"maxPoolSize": 10,
1212
"connectionTimeout": "00:00:15",
1313
"receiveTimeout": "00:00:15",
1414
"deadTimeout": "00:00:15",
1515
"queueTimeout": "00:00:00.150"
1616
},
17-
"suppressException": "false",
17+
"suppressException": false,
1818
"Transcoder": "MessagePackTranscoder"
19-
//,
20-
//"KeyTransformer": "Enyim.Caching.Memcached.SHA1KeyTransformer"
21-
//,
22-
//"Authentication": {
23-
// "Type": "Enyim.Caching.Memcached.PlainTextAuthenticator",
24-
// "Parameters": {
25-
// "zone":"",
26-
// "userName": "username",
27-
// "password": "password"
28-
// }
29-
//}
3019
},
3120

3221
"postbodyMemcached": {
@@ -39,11 +28,8 @@
3928
},
4029

4130
"Logging": {
42-
"IncludeScopes": false,
4331
"LogLevel": {
4432
"Default": "Warning",
45-
"System": "Warning",
46-
"Microsoft": "Warning",
4733
"Enyim": "Warning"
4834
}
4935
}

0 commit comments

Comments
 (0)