Show / Hide Table of Contents

Class DistributedCache<TCacheItem>

Represents a distributed cache of TCacheItem type.

Inheritance
System.Object
DistributedCache<TCacheItem, System.String>
DistributedCache<TCacheItem>
Implements
IDistributedCache<TCacheItem>
IDistributedCache<TCacheItem, System.String>
Inherited Members
DistributedCache<TCacheItem, String>.UowCacheName
DistributedCache<TCacheItem, String>.Logger
DistributedCache<TCacheItem, String>.CacheName
DistributedCache<TCacheItem, String>.IgnoreMultiTenancy
DistributedCache<TCacheItem, String>.Cache
DistributedCache<TCacheItem, String>.CancellationTokenProvider
DistributedCache<TCacheItem, String>.Serializer
DistributedCache<TCacheItem, String>.KeyNormalizer
DistributedCache<TCacheItem, String>.ServiceScopeFactory
DistributedCache<TCacheItem, String>.UnitOfWorkManager
DistributedCache<TCacheItem, String>.SyncSemaphore
DistributedCache<TCacheItem, String>.DefaultCacheOptions
DistributedCache<TCacheItem, String>.NormalizeKey(String)
DistributedCache<TCacheItem, String>.GetDefaultCacheEntryOptions()
DistributedCache<TCacheItem, String>.SetDefaultOptions()
DistributedCache<TCacheItem, String>.Get(String, Nullable<Boolean>, Boolean)
DistributedCache<TCacheItem, String>.GetMany(IEnumerable<String>, Nullable<Boolean>, Boolean)
DistributedCache<TCacheItem, String>.GetManyFallback(String[], Nullable<Boolean>, Boolean)
DistributedCache<TCacheItem, String>.GetManyAsync(IEnumerable<String>, Nullable<Boolean>, Boolean, CancellationToken)
DistributedCache<TCacheItem, String>.GetManyFallbackAsync(String[], Nullable<Boolean>, Boolean, CancellationToken)
DistributedCache<TCacheItem, String>.GetAsync(String, Nullable<Boolean>, Boolean, CancellationToken)
DistributedCache<TCacheItem, String>.GetOrAdd(String, Func<TCacheItem>, Func<DistributedCacheEntryOptions>, Nullable<Boolean>, Boolean)
DistributedCache<TCacheItem, String>.GetOrAddAsync(String, Func<Task<TCacheItem>>, Func<DistributedCacheEntryOptions>, Nullable<Boolean>, Boolean, CancellationToken)
DistributedCache<TCacheItem, String>.Set(String, TCacheItem, DistributedCacheEntryOptions, Nullable<Boolean>, Boolean)
DistributedCache<TCacheItem, String>.SetAsync(String, TCacheItem, DistributedCacheEntryOptions, Nullable<Boolean>, Boolean, CancellationToken)
DistributedCache<TCacheItem, String>.SetMany(IEnumerable<KeyValuePair<String, TCacheItem>>, DistributedCacheEntryOptions, Nullable<Boolean>, Boolean)
DistributedCache<TCacheItem, String>.SetManyFallback(KeyValuePair<String, TCacheItem>[], DistributedCacheEntryOptions, Nullable<Boolean>, Boolean)
DistributedCache<TCacheItem, String>.SetManyAsync(IEnumerable<KeyValuePair<String, TCacheItem>>, DistributedCacheEntryOptions, Nullable<Boolean>, Boolean, CancellationToken)
DistributedCache<TCacheItem, String>.SetManyFallbackAsync(KeyValuePair<String, TCacheItem>[], DistributedCacheEntryOptions, Nullable<Boolean>, Boolean, CancellationToken)
DistributedCache<TCacheItem, String>.Refresh(String, Nullable<Boolean>)
DistributedCache<TCacheItem, String>.RefreshAsync(String, Nullable<Boolean>, CancellationToken)
DistributedCache<TCacheItem, String>.Remove(String, Nullable<Boolean>, Boolean)
DistributedCache<TCacheItem, String>.RemoveAsync(String, Nullable<Boolean>, Boolean, CancellationToken)
DistributedCache<TCacheItem, String>.HandleException(Exception)
DistributedCache<TCacheItem, String>.HandleExceptionAsync(Exception)
DistributedCache<TCacheItem, String>.ToCacheItems(Byte[][], String[])
DistributedCache<TCacheItem, String>.ToCacheItem(Byte[])
DistributedCache<TCacheItem, String>.ToRawCacheItems(KeyValuePair<String, TCacheItem>[])
DistributedCache<TCacheItem, String>.ShouldConsiderUow(Boolean)
DistributedCache<TCacheItem, String>.GetUnitOfWorkCacheKey()
DistributedCache<TCacheItem, String>.GetUnitOfWorkCache()
Namespace: Volo.Abp.Caching
Assembly: Volo.Abp.Caching.dll
Syntax
public class DistributedCache<TCacheItem> : DistributedCache<TCacheItem, string>, IDistributedCache<TCacheItem>, IDistributedCache<TCacheItem, string> where TCacheItem : class
Type Parameters
Name Description
TCacheItem

The type of cache item being cached.

Constructors

DistributedCache(IOptions<AbpDistributedCacheOptions>, IDistributedCache, ICancellationTokenProvider, IDistributedCacheSerializer, IDistributedCacheKeyNormalizer, IHybridServiceScopeFactory, IUnitOfWorkManager)

Declaration
public DistributedCache(IOptions<AbpDistributedCacheOptions> distributedCacheOption, IDistributedCache cache, ICancellationTokenProvider cancellationTokenProvider, IDistributedCacheSerializer serializer, IDistributedCacheKeyNormalizer keyNormalizer, IHybridServiceScopeFactory serviceScopeFactory, IUnitOfWorkManager unitOfWorkManager)
Parameters
Type Name Description
IOptions<AbpDistributedCacheOptions> distributedCacheOption
Volo.Abp.Caching.IDistributedCache cache
ICancellationTokenProvider cancellationTokenProvider
IDistributedCacheSerializer serializer
IDistributedCacheKeyNormalizer keyNormalizer
IHybridServiceScopeFactory serviceScopeFactory
IUnitOfWorkManager unitOfWorkManager

Implements

IDistributedCache<TCacheItem>
IDistributedCache<TCacheItem, TCacheKey>

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft