Interface IRedisAsync
- Namespace
- StackExchange.Redis
- Assembly
- StackExchange.Redis.StrongName.dll
Common operations available to all redis connections
public interface IRedisAsync
Properties
Multiplexer
Gets the multiplexer that created this instance
ConnectionMultiplexer Multiplexer { get; }
Property Value
Methods
PingAsync(CommandFlags)
This command is often used to test if a connection is still alive, or to measure latency.
Task<TimeSpan> PingAsync(CommandFlags flags = CommandFlags.None)
Parameters
flags
CommandFlags
Returns
Remarks
TryWait(Task)
Wait for a given asynchronous operation to complete (or timeout), reporting which
bool TryWait(Task task)
Parameters
task
Task
Returns
Wait(Task)
Wait for a given asynchronous operation to complete (or timeout)
void Wait(Task task)
Parameters
task
Task
WaitAll(params Task[])
Wait for the given asynchronous operations to complete (or timeout)
void WaitAll(params Task[] tasks)
Parameters
tasks
Task[]
Wait<T>(Task<T>)
Wait for a given asynchronous operation to complete (or timeout)
T Wait<T>(Task<T> task)
Parameters
task
Task<T>
Returns
- T
Type Parameters
T