Show / Hide Table of Contents

Class ExternalLocalizationTextCache

Inheritance
object
ExternalLocalizationTextCache
Implements
IExternalLocalizationTextCache
ISingletonDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.LanguageManagement.External
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
Type Name Description
IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheItem> textsDistributedCache
IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheStampItem> stampsDistributedCache
IAbpDistributedLock distributedLock

Properties

DistributedLock

Declaration
protected IAbpDistributedLock DistributedLock { get; }
Property Value
Type Description
IAbpDistributedLock

MemoryCache

Declaration
protected ConcurrentDictionary<string, ExternalLocalizationTextCache.MemoryCacheItem> MemoryCache { get; }
Property Value
Type Description
ConcurrentDictionary<string, ExternalLocalizationTextCache.MemoryCacheItem>

StampsDistributedCache

Declaration
protected IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheStampItem> StampsDistributedCache { get; }
Property Value
Type Description
IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheStampItem>

TextsDistributedCache

Declaration
protected IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheItem> TextsDistributedCache { get; }
Property Value
Type Description
IDistributedCache<ExternalLocalizationTextCache.ExternalLocalizationTextCacheItem>

Methods

CreateDistributedCacheEntryOptions()

Declaration
protected virtual DistributedCacheEntryOptions CreateDistributedCacheEntryOptions()
Returns
Type Description
DistributedCacheEntryOptions

GetStampCacheKey(string, string)

Declaration
protected virtual string GetStampCacheKey(string resourceName, string cultureName)
Parameters
Type Name Description
string resourceName
string cultureName
Returns
Type Description
string

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
Type Name Description
string resourceName
string cultureName
Func<Task<Dictionary<string, string>>> factory
Returns
Type Description
Task<Dictionary<string, string>>

GetTextsCacheKey(string, string)

Declaration
protected virtual string GetTextsCacheKey(string resourceName, string cultureName)
Parameters
Type Name Description
string resourceName
string cultureName
Returns
Type Description
string

InvalidateAsync(string, string)

Declaration
public virtual Task InvalidateAsync(string resourceName, string cultureName)
Parameters
Type Name Description
string resourceName
string cultureName
Returns
Type Description
Task

TryGetTextsFromCache(string, string)

Declaration
public virtual Dictionary<string, string>? TryGetTextsFromCache(string resourceName, string cultureName)
Parameters
Type Name Description
string resourceName
string cultureName
Returns
Type Description
Dictionary<string, string>

Implements

IExternalLocalizationTextCache
ISingletonDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform