File tree Expand file tree Collapse file tree 4 files changed +60
-0
lines changed
10/umbraco-cms/reference/configuration
13/umbraco-cms/reference/configuration
14/umbraco-cms/reference/configuration
15/umbraco-cms/reference/configuration Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,27 @@ The `NuCacheSerializerType` setting allows developers to specify the serializati
28
28
29
29
To use JSON serialization instead of the default MessagePack:
30
30
31
+ ### Using 'Program.cs'
32
+
31
33
``` csharp
32
34
builder .Services .Configure <NuCacheSettings >(options =>
33
35
{
34
36
options .NuCacheSerializerType = NuCacheSerializerType .JSON ;
35
37
});
38
+ ```
36
39
40
+ ### Using 'appsettings.json'
41
+
42
+ ``` csharp
43
+ {
44
+ " Umbraco" : {
45
+ " CMS" : {
46
+ " NuCache" : {
47
+ " NuCacheSerializerType" : " JSON"
48
+ }
49
+ }
50
+ }
51
+ }
37
52
```
38
53
39
54
## Additional Settings
Original file line number Diff line number Diff line change @@ -43,12 +43,27 @@ The `NuCacheSerializerType` setting allows developers to specify the serializati
43
43
44
44
To use JSON serialization instead of the default MessagePack:
45
45
46
+ ### Using 'Program.cs'
47
+
46
48
``` csharp
47
49
builder .Services .Configure <NuCacheSettings >(options =>
48
50
{
49
51
options .NuCacheSerializerType = NuCacheSerializerType .JSON ;
50
52
});
53
+ ```
51
54
55
+ ### Using 'appsettings.json'
56
+
57
+ ``` csharp
58
+ {
59
+ " Umbraco" : {
60
+ " CMS" : {
61
+ " NuCache" : {
62
+ " NuCacheSerializerType" : " JSON"
63
+ }
64
+ }
65
+ }
66
+ }
52
67
```
53
68
54
69
## Additional Settings
Original file line number Diff line number Diff line change @@ -43,12 +43,27 @@ The `NuCacheSerializerType` setting allows developers to specify the serializati
43
43
44
44
To use JSON serialization instead of the default MessagePack:
45
45
46
+ ### Using 'Program.cs'
47
+
46
48
``` csharp
47
49
builder .Services .Configure <NuCacheSettings >(options =>
48
50
{
49
51
options .NuCacheSerializerType = NuCacheSerializerType .JSON ;
50
52
});
53
+ ```
51
54
55
+ ### Using 'appsettings.json'
56
+
57
+ ``` csharp
58
+ {
59
+ " Umbraco" : {
60
+ " CMS" : {
61
+ " NuCache" : {
62
+ " NuCacheSerializerType" : " JSON"
63
+ }
64
+ }
65
+ }
66
+ }
52
67
```
53
68
54
69
## Additional Settings
Original file line number Diff line number Diff line change @@ -190,10 +190,25 @@ The `NuCacheSerializerType` setting allows developers to specify the serializati
190
190
191
191
To use JSON serialization instead of the default MessagePack:
192
192
193
+ ### Using 'Program.cs'
194
+
193
195
``` csharp
194
196
builder .Services .Configure <NuCacheSettings >(options =>
195
197
{
196
198
options .NuCacheSerializerType = NuCacheSerializerType .JSON ;
197
199
});
200
+ ```
201
+
202
+ ### Using 'appsettings.json'
198
203
204
+ ``` csharp
205
+ {
206
+ " Umbraco" : {
207
+ " CMS" : {
208
+ " NuCache" : {
209
+ " NuCacheSerializerType" : " JSON"
210
+ }
211
+ }
212
+ }
213
+ }
199
214
```
You can’t perform that action at this time.
0 commit comments