Реализует интерфейс для управления распределенным кэшем на базе Redis.
Inheritance
System.Object
RedisSharedCache
Namespace:InfinniPlatform.Cache
Assembly:InfinniPlatform.Cache.Redis.dll
public class RedisSharedCache : object, ISharedCache
Constructors
|
Improve this Doc
View Source
Declaration
public RedisSharedCache(AppOptions appOptions, RedisConnectionFactory connectionFactory, ILogger<RedisSharedCache> logger, IPerformanceLogger<RedisSharedCache> perfLogger)
Parameters
Methods
|
Improve this Doc
View Source
Declaration
|
Improve this Doc
View Source
Declaration
public bool Contains(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public string Get(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Declaration
public bool Remove(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public void Set(string key, string value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.String |
value |
|
|
Improve this Doc
View Source
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