Class ExternalLocalizationTextCache
Inheritance
ExternalLocalizationTextCache
Assembly: Volo.Abp.LanguageManagement.Domain.dll
Syntax
public class ExternalLocalizationTextCache : IExternalLocalizationTextCache, ISingletonDependency
Constructors
ExternalLocalizationTextCache(IDistributedCache<ExternalLocalizationTextCacheItem>, IDistributedCache<ExternalLocalizationTextCacheStampItem>, IAbpDistributedLock)
Declaration
public ExternalLocalizationTextCache(IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheItem> textsDistributedCache, IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheStampItem> stampsDistributedCache, IAbpDistributedLock distributedLock)
Parameters
Properties
DistributedLock
Declaration
protected IAbpDistributedLock DistributedLock { get; }
Property Value
MemoryCache
Declaration
protected ConcurrentDictionary<string, ExternalLocalizationTextCache.MemoryCacheItem> MemoryCache { get; }
Property Value
StampsDistributedCache
Declaration
protected IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheStampItem> StampsDistributedCache { get; }
Property Value
TextsDistributedCache
Declaration
protected IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheItem> TextsDistributedCache { get; }
Property Value
Methods
CreateDistributedCacheEntryOptions()
Declaration
protected virtual DistributedCacheEntryOptions CreateDistributedCacheEntryOptions()
Returns
GetStampCacheKey(string, string)
Declaration
protected virtual string GetStampCacheKey(string resourceName, string cultureName)
Parameters
Type |
Name |
Description |
string |
resourceName |
|
string |
cultureName |
|
Returns
GetTextsAsync(string, string, Func<Task<Dictionary<string, string>>>)
Declaration
public virtual Task<Dictionary<string, string>> GetTextsAsync(string resourceName, string cultureName, Func<Task<Dictionary<string, string>>> factory)
Parameters
Returns
GetTextsCacheKey(string, string)
Declaration
protected virtual string GetTextsCacheKey(string resourceName, string cultureName)
Parameters
Type |
Name |
Description |
string |
resourceName |
|
string |
cultureName |
|
Returns
InvalidateAsync(string, string)
Declaration
public virtual Task InvalidateAsync(string resourceName, string cultureName)
Parameters
Type |
Name |
Description |
string |
resourceName |
|
string |
cultureName |
|
Returns
TryGetTextsFromCache(string, string)
Declaration
public virtual Dictionary<string, string>? TryGetTextsFromCache(string resourceName, string cultureName)
Parameters
Type |
Name |
Description |
string |
resourceName |
|
string |
cultureName |
|
Returns
Implements
Extension Methods