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

Provides Base implementation CacheSettingsProvider of CacheSettings configuration More...

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

Public Member Functions

 BaseCacheSettingsProvider (IServiceProvider serviceProvider)
 Creates an instance of ConfigurationCacheSettingsProvider with IServiceProvider More...
 
override CacheSettings LoadCacheSettings ()
 Loads CacheSettings object from "Caching" configuration section in appSettings.json 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 Base implementation CacheSettingsProvider of CacheSettings configuration

Constructor & Destructor Documentation

◆ BaseCacheSettingsProvider()

Pavalisoft.Caching.BaseCacheSettingsProvider.BaseCacheSettingsProvider ( IServiceProvider  serviceProvider)

Creates an instance of ConfigurationCacheSettingsProvider with IServiceProvider

Parameters
serviceProviderIServiceProvider

Member Function Documentation

◆ LoadCacheSettings()

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

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

Returns

Implements Pavalisoft.Caching.CacheSettingsProvider.

Reimplemented in Pavalisoft.Caching.ConfigurationCacheSettingsProvider.


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