Show / Hide Table of Contents

Class RedisSharedCache

Реализует интерфейс для управления распределенным кэшем на базе Redis.

Inheritance
System.Object
RedisSharedCache
Namespace:InfinniPlatform.Cache
Assembly:InfinniPlatform.Cache.Redis.dll
Syntax
public class RedisSharedCache : object, ISharedCache

Constructors

| Improve this Doc View Source

RedisSharedCache(AppOptions, RedisConnectionFactory, ILogger<RedisSharedCache>, IPerformanceLogger<RedisSharedCache>)

Конструктор.

Declaration
public RedisSharedCache(AppOptions appOptions, RedisConnectionFactory connectionFactory, ILogger<RedisSharedCache> logger, IPerformanceLogger<RedisSharedCache> perfLogger)
Parameters
Type Name Description
AppOptions appOptions

Пространство имен для ключей.

RedisConnectionFactory connectionFactory

Фабрика подключений к Redis.

ILogger<RedisSharedCache> logger

Сервис регистрации событий.

IPerformanceLogger<RedisSharedCache> perfLogger

Сервис регистрации длительности выполнения методов.

Methods

| Improve this Doc View Source

Clear()

Declaration
public void Clear()
| Improve this Doc View Source

Contains(String)

Declaration
public bool Contains(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Get(String)

Declaration
public string Get(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
System.String
| Improve this Doc View Source

Remove(String)

Declaration
public bool Remove(string key)
Parameters
Type Name Description
System.String key
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Set(String, String)

Declaration
public void Set(string key, string value)
Parameters
Type Name Description
System.String key
System.String value
| Improve this Doc View Source

TryGet(String, out String)

Declaration
public bool TryGet(string key, out string value)
Parameters
Type Name Description
System.String key
System.String value
Returns
Type Description
System.Boolean

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.