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

Provides base implementation for ICacheSettingsProvider More...

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

Public Member Functions

abstract CacheSettings LoadCacheSettings ()
 Loads Cache Settings Configuration More...
 
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...
 

Protected Member Functions

 CacheSettingsProvider (IServiceProvider serviceProvider)
 Creates an instance of CacheSettingsProvider More...
 

Properties

IServiceProvider ServiceProvider [get]
 Gets IServiceProvider instance More...
 

Detailed Description

Provides base implementation for ICacheSettingsProvider

Constructor & Destructor Documentation

◆ CacheSettingsProvider()

Pavalisoft.Caching.CacheSettingsProvider.CacheSettingsProvider ( IServiceProvider  serviceProvider)
protected

Creates an instance of CacheSettingsProvider

Parameters
serviceProviderDependency Service Provider

Member Function Documentation

◆ GetCachePartition()

ICachePartition Pavalisoft.Caching.CacheSettingsProvider.GetCachePartition ( string  name)

Gets Cache Partition having cache partition name name

Parameters
nameCache Partition Name
Returns
ICachePartition

Implements Pavalisoft.Caching.Interfaces.ICacheSettingsProvider.

◆ GetCachePartitions()

IEnumerable<ICachePartition> Pavalisoft.Caching.CacheSettingsProvider.GetCachePartitions ( )

Gets Cache Partitions in the CacheSettings

Returns
List of ICachePartitions

Implements Pavalisoft.Caching.Interfaces.ICacheSettingsProvider.

◆ GetCacheSettings()

CacheSettings Pavalisoft.Caching.CacheSettingsProvider.GetCacheSettings ( )

Gets CacheSettings from configuration

Returns
CacheSettings object

Implements Pavalisoft.Caching.Interfaces.ICacheSettingsProvider.

◆ GetCacheStore()

ICacheStore Pavalisoft.Caching.CacheSettingsProvider.GetCacheStore ( string  storeName)

Gets Cache Store having cache store name storeName

Parameters
storeNameCache Store Name
Returns
Cache Store

Implements Pavalisoft.Caching.Interfaces.ICacheSettingsProvider.

◆ GetCacheStores()

IEnumerable<ICacheStore> Pavalisoft.Caching.CacheSettingsProvider.GetCacheStores ( )

Gets ICacheStore<T> from CacheSettings

Returns
Cache Stores

Implements Pavalisoft.Caching.Interfaces.ICacheSettingsProvider.

◆ LoadCacheSettings()

abstract CacheSettings Pavalisoft.Caching.CacheSettingsProvider.LoadCacheSettings ( )
pure virtual

Property Documentation

◆ ServiceProvider

IServiceProvider Pavalisoft.Caching.CacheSettingsProvider.ServiceProvider
getprotected

Gets IServiceProvider instance


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