Class NCalcServiceBuilderExtensions
- Namespace
- NCalc.Cache.Configuration
- Assembly
- NCalc.MemoryCache.dll
public static class NCalcServiceBuilderExtensions
- Inheritance
-
NCalcServiceBuilderExtensions
- Inherited Members
Methods
WithMemoryCache(NCalcServiceBuilder, Action<LogicalExpressionMemoryCacheOptions>?)
Replaces NCalc default cache with Microsoft.Extensions.MemoryCache.
public static NCalcServiceBuilder WithMemoryCache(this NCalcServiceBuilder builder, Action<LogicalExpressionMemoryCacheOptions>? configureOptions = null)
Parameters
builder
NCalcServiceBuilderconfigureOptions
Action<LogicalExpressionMemoryCacheOptions>The options of the cache.