Skip to content

Commit b00cdee

Browse files
committed
Added appsettings.json option
1 parent 463d604 commit b00cdee

File tree

4 files changed

+60
-0
lines changed

4 files changed

+60
-0
lines changed

10/umbraco-cms/reference/configuration/nucachesettings.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,27 @@ The `NuCacheSerializerType` setting allows developers to specify the serializati
2828

2929
To use JSON serialization instead of the default MessagePack:
3030

31+
### Using 'Program.cs'
32+
3133
```csharp
3234
builder.Services.Configure<NuCacheSettings>(options =>
3335
{
3436
options.NuCacheSerializerType = NuCacheSerializerType.JSON;
3537
});
38+
```
3639

40+
### Using 'appsettings.json'
41+
42+
```csharp
43+
{
44+
"Umbraco": {
45+
"CMS": {
46+
"NuCache": {
47+
"NuCacheSerializerType": "JSON"
48+
}
49+
}
50+
}
51+
}
3752
```
3853

3954
## Additional Settings

13/umbraco-cms/reference/configuration/nucachesettings.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,27 @@ The `NuCacheSerializerType` setting allows developers to specify the serializati
4343

4444
To use JSON serialization instead of the default MessagePack:
4545

46+
### Using 'Program.cs'
47+
4648
```csharp
4749
builder.Services.Configure<NuCacheSettings>(options =>
4850
{
4951
options.NuCacheSerializerType = NuCacheSerializerType.JSON;
5052
});
53+
```
5154

55+
### Using 'appsettings.json'
56+
57+
```csharp
58+
{
59+
"Umbraco": {
60+
"CMS": {
61+
"NuCache": {
62+
"NuCacheSerializerType": "JSON"
63+
}
64+
}
65+
}
66+
}
5267
```
5368

5469
## Additional Settings

14/umbraco-cms/reference/configuration/nucachesettings.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,27 @@ The `NuCacheSerializerType` setting allows developers to specify the serializati
4343

4444
To use JSON serialization instead of the default MessagePack:
4545

46+
### Using 'Program.cs'
47+
4648
```csharp
4749
builder.Services.Configure<NuCacheSettings>(options =>
4850
{
4951
options.NuCacheSerializerType = NuCacheSerializerType.JSON;
5052
});
53+
```
5154

55+
### Using 'appsettings.json'
56+
57+
```csharp
58+
{
59+
"Umbraco": {
60+
"CMS": {
61+
"NuCache": {
62+
"NuCacheSerializerType": "JSON"
63+
}
64+
}
65+
}
66+
}
5267
```
5368

5469
## Additional Settings

15/umbraco-cms/reference/configuration/cache-settings.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,25 @@ The `NuCacheSerializerType` setting allows developers to specify the serializati
190190

191191
To use JSON serialization instead of the default MessagePack:
192192

193+
### Using 'Program.cs'
194+
193195
```csharp
194196
builder.Services.Configure<NuCacheSettings>(options =>
195197
{
196198
options.NuCacheSerializerType = NuCacheSerializerType.JSON;
197199
});
200+
```
201+
202+
### Using 'appsettings.json'
198203

204+
```csharp
205+
{
206+
"Umbraco": {
207+
"CMS": {
208+
"NuCache": {
209+
"NuCacheSerializerType": "JSON"
210+
}
211+
}
212+
}
213+
}
199214
```

0 commit comments

Comments
 (0)