IRedisClientsManagerAsync
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisClientsManagerAsync
Properties
RedisResolver
Resolver strategy for resolving hosts and creating clients
View Source
Declaration
IRedisResolver RedisResolver { get; }
Methods
GetClientAsync(CancellationToken)
Returns a Read/Write client (The default) using the hosts defined in ReadWriteHosts
View Source
Declaration
ValueTask<IRedisClientAsync> GetClientAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<ServiceStack.Redis.IRedisClientAsync>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
GetReadOnlyClientAsync(CancellationToken)
Returns a ReadOnly client using the hosts defined in ReadOnlyHosts.
View Source
Declaration
ValueTask<IRedisClientAsync> GetReadOnlyClientAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<ServiceStack.Redis.IRedisClientAsync>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
GetCacheClientAsync(CancellationToken)
Returns a Read/Write ICacheClient (The default) using the hosts defined in ReadWriteHosts
View Source
Declaration
ValueTask<ICacheClientAsync> GetCacheClientAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<ServiceStack.Caching.ICacheClientAsync>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
GetReadOnlyCacheClientAsync(CancellationToken)
Returns a ReadOnly ICacheClient using the hosts defined in ReadOnlyHosts.
View Source
Declaration
ValueTask<ICacheClientAsync> GetReadOnlyCacheClientAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<ServiceStack.Caching.ICacheClientAsync>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |