Pavalisoft.Caching  1.2.1
A single unified Caching Api for both MemoryCache and DistributedCache implementations including CacheManager
Pavalisoft.Caching.ConfigurationCacheSettingsProvider Class Reference

Provides Json based CacheSettings configuration More...

Inheritance diagram for Pavalisoft.Caching.ConfigurationCacheSettingsProvider:
Pavalisoft.Caching.BaseCacheSettingsProvider Pavalisoft.Caching.CacheSettingsProvider Pavalisoft.Caching.Interfaces.ICacheSettingsProvider

Public Member Functions

 ConfigurationCacheSettingsProvider (IConfiguration configuration, IServiceProvider serviceProvider)
 Creates an instance of ConfigurationCacheSettingsProvider with IConfiguration More...
 
override CacheSettings LoadCacheSettings ()
 Loads CacheSettings object from "Caching" configuration section in appSettings.json More...
 
- Public Member Functions inherited from Pavalisoft.Caching.BaseCacheSettingsProvider
 BaseCacheSettingsProvider (IServiceProvider serviceProvider)
 Creates an instance of ConfigurationCacheSettingsProvider with IServiceProvider More...
 
- Public Member Functions inherited from Pavalisoft.Caching.CacheSettingsProvider
CacheSettings GetCacheSettings ()
 Gets CacheSettings from configuration More...
 
IEnumerable< ICacheStoreGetCacheStores ()
 Gets ICacheStore<T> from CacheSettings More...
 
ICacheStore GetCacheStore (string storeName)
 Gets Cache Store having cache store name storeName More...
 
IEnumerable< ICachePartitionGetCachePartitions ()
 Gets Cache Partitions in the CacheSettings More...
 
ICachePartition GetCachePartition (string name)
 Gets Cache Partition having cache partition name name More...
 

Additional Inherited Members

- Protected Member Functions inherited from Pavalisoft.Caching.CacheSettingsProvider
 CacheSettingsProvider (IServiceProvider serviceProvider)
 Creates an instance of CacheSettingsProvider More...
 
- Properties inherited from Pavalisoft.Caching.CacheSettingsProvider
IServiceProvider ServiceProvider [get]
 Gets IServiceProvider instance More...
 

Detailed Description

Provides Json based CacheSettings configuration

Constructor & Destructor Documentation

◆ ConfigurationCacheSettingsProvider()

Pavalisoft.Caching.ConfigurationCacheSettingsProvider.ConfigurationCacheSettingsProvider ( IConfiguration  configuration,
IServiceProvider  serviceProvider 
)

Creates an instance of ConfigurationCacheSettingsProvider with IConfiguration

Parameters
configurationIConfiguration object to read appSettings.json
serviceProviderIServiceProvider

Member Function Documentation

◆ LoadCacheSettings()

override CacheSettings Pavalisoft.Caching.ConfigurationCacheSettingsProvider.LoadCacheSettings ( )
virtual

Loads CacheSettings object from "Caching" configuration section in appSettings.json

Returns

Reimplemented from Pavalisoft.Caching.BaseCacheSettingsProvider.


The documentation for this class was generated from the following file: