Skip to main content

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
TypeName
System.Threading.CancellationTokentoken

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
TypeName
System.Threading.CancellationTokentoken

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
TypeName
System.Threading.CancellationTokentoken

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
TypeName
System.Threading.CancellationTokentoken