Show / Hide Table of Contents

Class TestMemoryDistributedCache

Inheritance
object
MemoryDistributedCache
TestMemoryDistributedCache
Implements
IDistributedCache
ICacheSupportsMultipleItems
Inherited Members
MemoryDistributedCache.Get(string)
MemoryDistributedCache.GetAsync(string, CancellationToken)
MemoryDistributedCache.Set(string, byte[], DistributedCacheEntryOptions)
MemoryDistributedCache.SetAsync(string, byte[], DistributedCacheEntryOptions, CancellationToken)
MemoryDistributedCache.Refresh(string)
MemoryDistributedCache.RefreshAsync(string, CancellationToken)
MemoryDistributedCache.Remove(string)
MemoryDistributedCache.RemoveAsync(string, CancellationToken)
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.TestApp
Assembly: Volo.Abp.TestApp.dll
Syntax
[DisableConventionalRegistration]
public class TestMemoryDistributedCache : MemoryDistributedCache, IDistributedCache, ICacheSupportsMultipleItems

Constructors

TestMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Declaration
public TestMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions> optionsAccessor)
Parameters
Type Name Description
IOptions<MemoryDistributedCacheOptions> optionsAccessor

TestMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Declaration
public TestMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions> optionsAccessor, ILoggerFactory loggerFactory)
Parameters
Type Name Description
IOptions<MemoryDistributedCacheOptions> optionsAccessor
ILoggerFactory loggerFactory

Methods

GetMany(IEnumerable<string>)

Declaration
public byte[][] GetMany(IEnumerable<string> keys)
Parameters
Type Name Description
IEnumerable<string> keys
Returns
Type Description
byte[][]

GetManyAsync(IEnumerable<string>, CancellationToken)

Declaration
public Task<byte[][]> GetManyAsync(IEnumerable<string> keys, CancellationToken token = default)
Parameters
Type Name Description
IEnumerable<string> keys
CancellationToken token
Returns
Type Description
Task<byte[][]>

RefreshMany(IEnumerable<string>)

Declaration
public void RefreshMany(IEnumerable<string> keys)
Parameters
Type Name Description
IEnumerable<string> keys

RefreshManyAsync(IEnumerable<string>, CancellationToken)

Declaration
public Task RefreshManyAsync(IEnumerable<string> keys, CancellationToken token = default)
Parameters
Type Name Description
IEnumerable<string> keys
CancellationToken token
Returns
Type Description
Task

RemoveMany(IEnumerable<string>)

Declaration
public void RemoveMany(IEnumerable<string> keys)
Parameters
Type Name Description
IEnumerable<string> keys

RemoveManyAsync(IEnumerable<string>, CancellationToken)

Declaration
public Task RemoveManyAsync(IEnumerable<string> keys, CancellationToken token = default)
Parameters
Type Name Description
IEnumerable<string> keys
CancellationToken token
Returns
Type Description
Task

SetMany(IEnumerable<KeyValuePair<string, byte[]>>, DistributedCacheEntryOptions)

Declaration
public void SetMany(IEnumerable<KeyValuePair<string, byte[]>> items, DistributedCacheEntryOptions options)
Parameters
Type Name Description
IEnumerable<KeyValuePair<string, byte[]>> items
DistributedCacheEntryOptions options

SetManyAsync(IEnumerable<KeyValuePair<string, byte[]>>, DistributedCacheEntryOptions, CancellationToken)

Declaration
public Task SetManyAsync(IEnumerable<KeyValuePair<string, byte[]>> items, DistributedCacheEntryOptions options, CancellationToken token = default)
Parameters
Type Name Description
IEnumerable<KeyValuePair<string, byte[]>> items
DistributedCacheEntryOptions options
CancellationToken token
Returns
Type Description
Task

Implements

IDistributedCache
ICacheSupportsMultipleItems

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