-
Notifications
You must be signed in to change notification settings - Fork 80
/
FusionCacheOptions.cs
487 lines (416 loc) · 22.1 KB
/
FusionCacheOptions.cs
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
using System;
using System.ComponentModel;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
namespace ZiggyCreatures.Caching.Fusion;
/// <summary>
/// Represents all the options available for the entire <see cref="IFusionCache"/> instance.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Options.md"/>
/// </summary>
public class FusionCacheOptions
: IOptions<FusionCacheOptions>
{
private string _cacheName;
private FusionCacheEntryOptions _defaultEntryOptions;
/// <summary>
/// The default value for <see cref="IFusionCache.CacheName"/>.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/NamedCaches.md"/>
/// </summary>
public const string DefaultCacheName = "FusionCache";
/// <summary>
/// The wire format version identifier for the distributed cache wire format, used in the cache key processing.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/CacheLevels.md"/>
/// </summary>
public const string DistributedCacheWireFormatVersion = "v0";
/// <summary>
/// The wire format version separator for the distributed cache wire format, used in the cache key processing.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/CacheLevels.md"/>
/// </summary>
public const string DistributedCacheWireFormatSeparator = ":";
/// <summary>
/// The wire format version identifier for the backplane wire format, used in the channel name.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Backplane.md"/>
/// </summary>
public const string BackplaneWireFormatVersion = "v0";
/// <summary>
/// The wire format version separator for the backplane wire format, used in the channel name.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Backplane.md"/>
/// </summary>
public const string BackplaneWireFormatSeparator = ":";
/// <summary>
/// Creates a new instance of a <see cref="FusionCacheOptions"/> object.
/// </summary>
public FusionCacheOptions()
{
_cacheName = DefaultCacheName;
_defaultEntryOptions = new FusionCacheEntryOptions();
// AUTO-RECOVERY
EnableAutoRecovery = true;
AutoRecoveryMaxItems = null;
AutoRecoveryMaxRetryCount = null;
AutoRecoveryDelay = TimeSpan.FromMilliseconds(5_000);
// LOG LEVELS
IncoherentOptionsNormalizationLogLevel = LogLevel.Warning;
SerializationErrorsLogLevel = LogLevel.Error;
DistributedCacheSyntheticTimeoutsLogLevel = LogLevel.Warning;
DistributedCacheErrorsLogLevel = LogLevel.Warning;
FactorySyntheticTimeoutsLogLevel = LogLevel.Warning;
FactoryErrorsLogLevel = LogLevel.Warning;
FailSafeActivationLogLevel = LogLevel.Warning;
EventHandlingErrorsLogLevel = LogLevel.Warning;
BackplaneSyntheticTimeoutsLogLevel = LogLevel.Warning;
BackplaneErrorsLogLevel = LogLevel.Warning;
PluginsInfoLogLevel = LogLevel.Information;
PluginsErrorsLogLevel = LogLevel.Error;
}
/// <summary>
/// The name of the cache: it can be used for identification, and in a multi-node scenario it is typically shared between nodes to create a logical association.
/// <br/><br/>
/// <strong>NOTE:</strong> if you try to set this to a null/whitespace value, that value will be ignored.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/NamedCaches.md"/>
/// </summary>
public string CacheName
{
get { return _cacheName; }
set
{
if (string.IsNullOrWhiteSpace(value))
{
//throw new ArgumentNullException(nameof(value), "It is not possible to set the CacheName to null");
return;
}
_cacheName = value;
}
}
/// <summary>
/// The instance id of the cache: it will be used for low-level identification for the same logical cache between different nodes in a multi-node scenario: it is automatically set to a random value.
/// </summary>
public string? InstanceId { get; private set; }
/// <summary>
/// Set the InstanceId of the cache, but please don't use this.
/// <br/><br/>
/// <strong>⚠ WARNING:</strong> again, this should NOT be set, basically never ever, unless you really know what you are doing. For example by using the same value for two different cache instances they will be considered as the same cache, and this will lead to critical errors. So again, really: you should not use this.
/// </summary>
/// <param name="instanceId"></param>
public void SetInstanceId(string instanceId)
{
InstanceId = instanceId;
}
/// <summary>
/// The default <see cref="FusionCacheEntryOptions"/> to use when none will be specified, and as the starting point when duplicating one.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Options.md"/>
/// </summary>
/// <exception cref="ArgumentNullException">Thrown if an attempt is made to set this property to <see langword="null"/>.</exception>
public FusionCacheEntryOptions DefaultEntryOptions
{
get { return _defaultEntryOptions; }
set
{
if (value is null)
throw new ArgumentNullException(nameof(value), "It is not possible to set the DefaultEntryOptions to null");
_defaultEntryOptions = value;
}
}
/// <summary>
/// The duration of the circuit-breaker used when working with the distributed cache. Defaults to <see cref="TimeSpan.Zero"/>, which means the circuit-breaker will never be activated.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/CacheLevels.md"/>
/// </summary>
public TimeSpan DistributedCacheCircuitBreakerDuration { get; set; }
/// <summary>
/// Execute event handlers in a sync fashion, waiting for all of them to complete before moving on.
/// <br/><br/>
/// <strong>WARNING:</strong> by default this option is NOT enabled, and should remain this way in any normal circumstance unless you really know what you are doing.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Events.md"/>
/// </summary>
public bool EnableSyncEventHandlersExecution { get; set; }
/// <summary>
/// A prefix that will be added to each cache key for each call: it can be useful when working with multiple named caches.
/// <br/><br/>
/// <strong>EXAMPLE</strong>: if the CacheKeyPrefix specified is "MyCache:", a later call to cache.GetOrDefault("Product/123") will actually work on the cache key "MyCache:Product/123".
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/NamedCaches.md"/>
/// </summary>
public string? CacheKeyPrefix { get; set; }
/// <summary>
/// Specify the mode in which cache key will be changed for the distributed cache, for internal purposes (eg: to specify the wire format version).
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/CacheLevels.md"/>
/// </summary>
public CacheKeyModifierMode DistributedCacheKeyModifierMode { get; set; }
/// <summary>
/// The duration of the circuit-breaker used when working with the backplane. Defaults to <see cref="TimeSpan.Zero"/>, which means the circuit-breaker will never be activated.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Backplane.md"/>
/// </summary>
public TimeSpan BackplaneCircuitBreakerDuration { get; set; }
/// <summary>
/// The prefix to use in the backplane channel name: if not specified the <see cref="CacheName"/> will be used.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Backplane.md"/>
/// </summary>
public string? BackplaneChannelPrefix { get; set; }
/// <summary>
/// Ignores incoming backplane notifications, which normally is DANGEROUS.
/// <br/><br/>
/// <strong>WARNING:</strong> it is advised not to ignore backplane notifications in any normal circumstance unless you really know what you are doing.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Backplane.md"/>
/// </summary>
public bool IgnoreIncomingBackplaneNotifications { get; set; }
/// <summary>
/// DEPRECATED: please use EnableAutoRecovery.
/// <br/><br/>
/// Enable auto-recovery for the backplane notifications to better handle transient errors without generating synchronization issues: notifications that failed to be sent out will be retried later on, when the backplane becomes responsive again.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/AutoRecovery.md"/>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Backplane auto-recovery is now simply auto-recovery: please use the EnableAutoRecovery property.")]
public bool EnableBackplaneAutoRecovery
{
get { return EnableAutoRecovery; }
set { EnableAutoRecovery = value; }
}
/// <summary>
/// Enable auto-recovery to automatically handle transient errors to minimize synchronization issues.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/AutoRecovery.md"/>
/// </summary>
public bool EnableAutoRecovery { get; set; }
/// <summary>
/// DEPRECATED: please use AutoRecoveryMaxItems.
/// <br/><br/>
/// The maximum number of items in the auto-recovery queue: this can help reducing memory consumption. If set to <see langword="null"/> there will be no limit.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/AutoRecovery.md"/>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Backplane auto-recovery is now simply auto-recovery: please use the AutoRecoveryMaxItems property.")]
public int? BackplaneAutoRecoveryMaxItems
{
get { return AutoRecoveryMaxItems; }
set { AutoRecoveryMaxItems = value; }
}
/// <summary>
/// The maximum number of items in the auto-recovery queue: this is usually not needed, but it may help reducing memory consumption in extreme scenarios.
/// <br/>
/// When set to null <see langword="null"/> there will be no limits.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/AutoRecovery.md"/>
/// </summary>
public int? AutoRecoveryMaxItems { get; set; }
/// <summary>
/// DEPRECATED: please use AutoRecoveryMaxRetryCount.
/// <br/><br/>
/// The maximum number of retries for a auto-recovery item: after this amount the item is discarded, to avoid keeping it retrying forever. If set to <see langword="null"/> there will be no limit.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/AutoRecovery.md"/>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Backplane auto-recovery is now simply auto-recovery: please use the AutoRecoveryMaxRetryCount property.")]
public int? BackplaneAutoRecoveryMaxRetryCount
{
get { return AutoRecoveryMaxRetryCount; }
set { AutoRecoveryMaxRetryCount = value; }
}
/// <summary>
/// The maximum number of retries for a auto-recovery item: after this amount an item is discarded, to avoid keeping it for too long.
/// Please note though that a cleanup is automatically performed, so in theory there's no need to set this.
/// <br/>
/// When set to <see langword="null"/> there will be no limits.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/AutoRecovery.md"/>
/// </summary>
public int? AutoRecoveryMaxRetryCount { get; set; }
/// <summary>
/// DEPRECATED: please use AutoRecoveryDelay.
/// <br/><br/>
/// The amount of time to wait, after a backplane reconnection, before trying to process the auto-recovery queue: this may be useful to allow all the other nodes to be ready.
/// <br/>
/// Use <see cref="TimeSpan.Zero"/> to avoid any delay (risky).
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Backplane.md"/>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Backplane auto-recovery is now simply auto-recovery: please use the AutoRecoveryDelay property.")]
public TimeSpan BackplaneAutoRecoveryReconnectDelay
{
get { return AutoRecoveryDelay; }
set { AutoRecoveryDelay = value; }
}
/// <summary>
/// DEPRECATED: please use AutoRecoveryDelay.
/// <br/><br/>
/// The amount of time to wait before actually processing the auto-recovery queue, to better handle backpressure.
/// <br/>
/// Use <see cref="TimeSpan.Zero"/> to avoid any delay (risky).
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/AutoRecovery.md"/>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("Backplane auto-recovery is now simply auto-recovery: please use the AutoRecoveryDelay property.")]
public TimeSpan BackplaneAutoRecoveryDelay
{
get; set;
}
/// <summary>
/// The amount of time to wait before actually processing the auto-recovery queue, to better handle backpressure.
/// <br/>
/// Use <see cref="TimeSpan.Zero"/> to avoid any delay (risky, like very very risky).
/// <br/><br/>
/// <strong>NOTE:</strong> when used with a distributed cache that supports a delayed reconnection logic (like StackExchange.Redis), set this to a higher value than the one used by the distributed cache, to avoid sending backplane notifications when not all nodes are reconnected yet, therefore avoiding that some nodes will not receive all the notifications.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/AutoRecovery.md"/>
/// </summary>
public TimeSpan AutoRecoveryDelay { get; set; }
/// <summary>
/// Enable expiring a cache entry, only on the distributed cache (if any), when an auto-recovery message is being published on the backplane, to ensure that the value in the distributed cache will not be stale.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/AutoRecovery.md"/>
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("This is not needed anymore, everything is handled automatically now.")]
public bool EnableDistributedExpireOnBackplaneAutoRecovery { get; set; }
/// <summary>
/// If enabled, and re-throwing of exceptions is also enabled (see <see cref="FusionCacheEntryOptions.ReThrowSerializationExceptions"/>, <see cref="FusionCacheEntryOptions.ReThrowDistributedCacheExceptions"/> or <see cref="FusionCacheEntryOptions.ReThrowBackplaneExceptions"/>), it will re-throw the original exception as-is instead of wrapping it into one of the available specific exceptions (<see cref="FusionCacheSerializationException"/>, <see cref="FusionCacheDistributedCacheException"/> or <see cref="FusionCacheBackplaneException"/>).
/// </summary>
public bool ReThrowOriginalExceptions { get; set; }
/// <summary>
/// Specify that, even when calling async code, the sync version of the serialization methods should be preferred.
/// </summary>
public bool PreferSyncSerialization { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when some options have incoherent values that have been fixed with a normalization, like for example when a FailSafeMaxDuration is lower than a Duration, so the Duration is used instead.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel IncoherentOptionsNormalizationLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when an error occurs during serialization or deserialization while working with the distributed cache.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel SerializationErrorsLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when a synthetic timeout occurs during a distributed cache operation.
/// <br/><br/>
/// <strong>NOTE:</strong> synthetic timeouts are only related to soft/hard timeouts, and are not related to intrinsic timeout exceptions or similar that may be thrown by your distributed cache.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel DistributedCacheSyntheticTimeoutsLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when any error (except for a synthetic timeout) occurs during a distributed cache operation.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel DistributedCacheErrorsLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when a synthetic timeout occurs during a factory execution.
/// <br/><br/>
/// <strong>NOTE:</strong> synthetic timeouts are only related to soft/hard timeouts, and are not related to intrinsic timeout exceptions or similar that may be thrown by your database, services or else.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel FactorySyntheticTimeoutsLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when any error (except for a synthetic timeout) occurs during a factory execution.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel FactoryErrorsLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when a fail-safe activation occurs.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel FailSafeActivationLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when an error occurs during the handling of an event.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel EventHandlingErrorsLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when a synthetic timeout occurs during a backplane cache operation.
/// <br/><br/>
/// <strong>NOTE:</strong> synthetic timeouts are only related to soft/hard timeouts, and are not related to intrinsic timeout exceptions or similar that may be thrown by your backplane.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel BackplaneSyntheticTimeoutsLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when an error occurs during a backplane operation.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel BackplaneErrorsLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when logging info about plugins.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel PluginsInfoLogLevel { get; set; }
/// <summary>
/// Specify the <see cref="LogLevel"/> to use when an error occurs while working with a plugin.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Logging.md"/>
/// </summary>
public LogLevel PluginsErrorsLogLevel { get; set; }
FusionCacheOptions IOptions<FusionCacheOptions>.Value
{
get { return this; }
}
/// <summary>
/// Creates a new <see cref="FusionCacheOptions"/> object by duplicating all the options of the current one.
/// <br/><br/>
/// <strong>DOCS:</strong> <see href="https://github.com/ZiggyCreatures/FusionCache/blob/main/docs/Options.md"/>
/// </summary>
/// <returns>The newly created <see cref="FusionCacheOptions"/> object.</returns>
public FusionCacheOptions Duplicate()
{
var res = new FusionCacheOptions
{
CacheName = CacheName,
InstanceId = InstanceId,
CacheKeyPrefix = CacheKeyPrefix,
DefaultEntryOptions = DefaultEntryOptions.Duplicate(),
EnableAutoRecovery = EnableAutoRecovery,
AutoRecoveryDelay = AutoRecoveryDelay,
AutoRecoveryMaxItems = AutoRecoveryMaxItems,
AutoRecoveryMaxRetryCount = AutoRecoveryMaxRetryCount,
BackplaneChannelPrefix = BackplaneChannelPrefix,
IgnoreIncomingBackplaneNotifications = IgnoreIncomingBackplaneNotifications,
BackplaneCircuitBreakerDuration = BackplaneCircuitBreakerDuration,
DistributedCacheKeyModifierMode = DistributedCacheKeyModifierMode,
DistributedCacheCircuitBreakerDuration = DistributedCacheCircuitBreakerDuration,
EnableSyncEventHandlersExecution = EnableSyncEventHandlersExecution,
ReThrowOriginalExceptions = ReThrowOriginalExceptions,
PreferSyncSerialization = PreferSyncSerialization,
// LOG LEVELS
IncoherentOptionsNormalizationLogLevel = IncoherentOptionsNormalizationLogLevel,
FailSafeActivationLogLevel = FailSafeActivationLogLevel,
FactorySyntheticTimeoutsLogLevel = FactorySyntheticTimeoutsLogLevel,
FactoryErrorsLogLevel = FactoryErrorsLogLevel,
DistributedCacheSyntheticTimeoutsLogLevel = DistributedCacheSyntheticTimeoutsLogLevel,
DistributedCacheErrorsLogLevel = DistributedCacheErrorsLogLevel,
SerializationErrorsLogLevel = SerializationErrorsLogLevel,
BackplaneSyntheticTimeoutsLogLevel = BackplaneSyntheticTimeoutsLogLevel,
BackplaneErrorsLogLevel = BackplaneErrorsLogLevel,
EventHandlingErrorsLogLevel = EventHandlingErrorsLogLevel,
PluginsErrorsLogLevel = PluginsErrorsLogLevel,
PluginsInfoLogLevel = PluginsInfoLogLevel,
};
return res;
}
}