Skip to main content

SessionFactory.SessionCacheClientAsync

Assembly: ServiceStack.dll
View Source
Declaration
public class SessionCacheClientAsync : ISessionAsync

Methods

SetAsync<T>(String, T, CancellationToken)

View Source
Declaration
public async Task SetAsync<T>(string key, T value, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Stringkey
<T>value
System.Threading.CancellationTokentoken
Type Parameters
  • T

GetAsync<T>(String, CancellationToken)

View Source
Declaration
public Task<T> GetAsync<T>(string key, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<<T>>

Parameters
TypeName
System.Stringkey
System.Threading.CancellationTokentoken
Type Parameters
  • T

RemoveAsync(String, CancellationToken)

View Source
Declaration
public Task<bool> RemoveAsync(string key, CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task<System.Boolean>

Parameters
TypeName
System.Stringkey
System.Threading.CancellationTokentoken

RemoveAllAsync(CancellationToken)

View Source
Declaration
public Task RemoveAllAsync(CancellationToken token = default(CancellationToken))
Returns

System.Threading.Tasks.Task

Parameters
TypeName
System.Threading.CancellationTokentoken

Implements