Table of Contents

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

ConnectionMultiplexer

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

Task<TimeSpan>

The observed latency.

Remarks

TryWait(Task)

Wait for a given asynchronous operation to complete (or timeout), reporting which

bool TryWait(Task task)

Parameters

task Task

Returns

bool

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