Pavalisoft.Caching
1.2.1
A single unified Caching Api for both MemoryCache and DistributedCache implementations including CacheManager
|
Provides configuration structure for the Cache manager and its partitions including Cache stores. More...
Properties | |
List< CacheStoreDefinition > | Stores [get, set] |
Gets or Sets Cache Stores Information More... | |
List< CachePartitionDefinition > | Partitions [get, set] |
Gets or Sets Cache Partition Configuration Information More... | |
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" } ] } }
|
getset |
Gets or Sets Cache Partition Configuration Information
|
getset |
Gets or Sets Cache Stores Information