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
Type | Name |
---|---|
System.String | key |
<T> | value |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
System.String | key |
System.Threading.CancellationToken | token |
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
Type | Name |
---|---|
System.String | key |
System.Threading.CancellationToken | token |
RemoveAllAsync(CancellationToken)
View Source
Declaration
public Task RemoveAllAsync(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |