Show / Hide Table of Contents

Class TestMemoryDistributedCache

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

Constructors

TestMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Declaration
public TestMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions> optionsAccessor, ILoggerFactory loggerFactory)
Parameters
Type Name Description
Microsoft.Extensions.Options.IOptions<TOptions><MemoryDistributedCacheOptions> optionsAccessor
Microsoft.Extensions.Logging.ILoggerFactory loggerFactory

TestMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Declaration
public TestMemoryDistributedCache(IOptions<MemoryDistributedCacheOptions> optionsAccessor)
Parameters
Type Name Description
Microsoft.Extensions.Options.IOptions<TOptions><MemoryDistributedCacheOptions> optionsAccessor

Methods

GetMany(IEnumerable<string>)

Declaration
public byte[][] GetMany(IEnumerable<string> keys)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T><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
System.Collections.Generic.IEnumerable<T><string> keys
System.Threading.CancellationToken token
Returns
Type Description
System.Threading.Tasks.Task<TResult><byte[][]>

RefreshMany(IEnumerable<string>)

Declaration
public void RefreshMany(IEnumerable<string> keys)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T><string> keys

RefreshManyAsync(IEnumerable<string>, CancellationToken)

Declaration
public Task RefreshManyAsync(IEnumerable<string> keys, CancellationToken token = default)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T><string> keys
System.Threading.CancellationToken token
Returns
Type Description
System.Threading.Tasks.Task

RemoveMany(IEnumerable<string>)

Declaration
public void RemoveMany(IEnumerable<string> keys)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T><string> keys

RemoveManyAsync(IEnumerable<string>, CancellationToken)

Declaration
public Task RemoveManyAsync(IEnumerable<string> keys, CancellationToken token = default)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T><string> keys
System.Threading.CancellationToken token
Returns
Type Description
System.Threading.Tasks.Task

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

Declaration
public void SetMany(IEnumerable<KeyValuePair<string, byte[]>> items, DistributedCacheEntryOptions options)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T><KeyValuePair<string, byte[]>> items
Microsoft.Extensions.Caching.Distributed.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
System.Collections.Generic.IEnumerable<T><KeyValuePair<string, byte[]>> items
Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options
System.Threading.CancellationToken token
Returns
Type Description
System.Threading.Tasks.Task

Implements

Microsoft.Extensions.Caching.Distributed.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>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft