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

Provides configuration structure for the Cache manager and its partitions including Cache stores. More...

Properties

List< CacheStoreDefinitionStores [get, set]
 Gets or Sets Cache Stores Information More...
 
List< CachePartitionDefinitionPartitions [get, set]
 Gets or Sets Cache Partition Configuration Information More...
 

Detailed Description

Provides configuration structure for the Cache manager and its partitions including Cache stores.

The below is the sample configuration { "Caching": { "Stores": [ { "Name": "InMemory", "Type": "Pavalisoft.Caching.InMemory.InMemoryCacheStoreType, Pavalisoft.Caching.InMemory", "StoreConfig": "{\"ExpirationScanFrequency":"00:05:00"}" }, { "Name": "DistributedInMemory", "Type": "Pavalisoft.Caching.InMemory.MemoryDistributedCacheStoreType,Pavalisoft.Caching.InMemory", "SerializerType": "Pavalisoft.Caching.Serializers.JsonSerializer,Pavalisoft.Caching", "StoreConfig": "{\"ExpirationScanFrequency":"00:05:00"}" }, { "Name": "SqlServer", "Type": "Pavalisoft.Caching.SqlServer.SqlServerDistributedCacheStoreType,Pavalisoft.Caching.SqlServer", "SerializerType": "Pavalisoft.Caching.Serializers.JsonSerializer,Pavalisoft.Caching", "StoreConfig": "{\"ExpiredItemsDeletionInterval":"00:05:00", "ConnectionString":"Data Source=localhost;Initial Catalog=DistributedCache;Integrated Security=True", "SchemaName":"store", "TableName":"Cache", "DefaultSlidingExpiration":"00:05:00"}" }, { "Name": "MySql", "Type": "Pavalisoft.Caching.MySql.MySqlDistributedCacheStoreType,Pavalisoft.Caching.MySql", "SerializerType": "Pavalisoft.Caching.Serializers.JsonSerializer,Pavalisoft.Caching", "StoreConfig": "{\"ExpiredItemsDeletionInterval":"00:05:00", "ConnectionString":"Data Source=localhost;User Id=root;Password=root;Allow User Variables=true", "SchemaName":"store", "TableName":"cache", "DefaultSlidingExpiration":"00:05:00"}" }, { "Name": "Redis", "Type": "Pavalisoft.Caching.Redis.RedisDistributedCacheStoreType,Pavalisoft.Caching.Redis", "SerializerType": "Pavalisoft.Caching.Serializers.JsonSerializer,Pavalisoft.Caching", "StoreConfig": "{\"Configuration":"00:05:00", "InstanceName":"localhost"}" } ], "Partitions": [ { "Name": "FrequentData", "StoreName": "InMemory", "SlidingExpiration": "00:05:00" }, { "Name": "DistibutedFrequentData", "StoreName": "DistributedInMemory", "SlidingExpiration": "00:05:00" }, { "Name": "MySqlLocalizationData", "StoreName": "MySql", "Priority": "NeverRemove" }, { "Name": "LocalizationData", "StoreName": "SqlServer", "Priority": "NeverRemove" }, { "Name": "MasterData", "StoreName": "Redis", "SlidingExpiration": "00:05:00" } ] } }

Property Documentation

◆ Partitions

List<CachePartitionDefinition> Pavalisoft.Caching.CacheSettings.Partitions
getset

Gets or Sets Cache Partition Configuration Information

◆ Stores

List<CacheStoreDefinition> Pavalisoft.Caching.CacheSettings.Stores
getset

Gets or Sets Cache Stores Information


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