Open sandboxFocus

Interface ICachingServiceBuilder

Namespace: Metalama.Patterns.Caching.Building
Assembly: Metalama.Patterns.Caching.dll
Syntax
public interface ICachingServiceBuilder

Properties

Name Description
ServiceProvider

Gets the IServiceProvider.

Methods

Name Description
AddProfile(CachingProfile, bool)

Adds a CachingProfile to the CachingService.

AddValueAdapter(Type, IValueAdapter)

Registers an IValueAdapter instance and explicitly specifies the value type.

AddValueAdapter(Type, Type)

Registers a generic value adapter.

AddValueAdapter<T>(IValueAdapter<T>)

Registers an IValueAdapter<T>.

ConfigureFormatters(Action<Builder>)

Configures the cache key formatters thanks to a delegate that acts on a FormatterRepository.Builder.

WithBackend(CachingBackend, bool)

Specifies a specific instance of the CachingBackend class to be used by the CachingService.

WithBackend(Func<CachingBackendBuilder, ConcreteCachingBackendBuilder>, bool)

Specifies how to create.

WithKeyBuilder(Func<IFormatterRepository, CacheKeyBuilderOptions, ICacheKeyBuilder>)

Replaces the CacheKeyBuilder class with your own implementation.

WithKeyBuilderOptions(CacheKeyBuilderOptions)

Specifies the CacheKeyBuilderOptions.