mirror of https://github.com/abpframework/abp.git
5 changed files with 32 additions and 37 deletions
@ -1,32 +0,0 @@ |
|||
using Microsoft.Extensions.Caching.Distributed; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Volo.Abp.Caching |
|||
{ |
|||
public class AbpCacheOptions |
|||
{ |
|||
/// <summary>
|
|||
/// Cache key prefix.
|
|||
/// </summary>
|
|||
public string KeyPrefix { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// Global Cache entry options.
|
|||
/// </summary>
|
|||
public DistributedCacheEntryOptions GlobalCacheEntryOptions { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// List of all cache configurators.
|
|||
/// (func argument:Name of cache)
|
|||
/// </summary>
|
|||
public List<Func<string, DistributedCacheEntryOptions>> CacheConfigurators { get; set; } //TODO list item use a configurator interface instead?
|
|||
|
|||
public AbpCacheOptions() |
|||
{ |
|||
CacheConfigurators = new List<Func<string, DistributedCacheEntryOptions>>(); |
|||
GlobalCacheEntryOptions = new DistributedCacheEntryOptions(); |
|||
KeyPrefix = ""; |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue