MultiCacheClient
Assembly: ServiceStack.dll
Declaration
public class MultiCacheClient : ICacheClient, IDisposable, ICacheClientAsync
Methods
 Dispose()
 Remove(String)
Declaration
public bool Remove(string key)
Returns
System.Boolean
Parameters
 Get<T>(String)
Declaration
public T Get<T>(string key)
Returns
<T>
Parameters
Type Parameters
 Increment(String, UInt32)
Declaration
public long Increment(string key, uint amount)
Returns
System.Int64
Parameters
| Type | Name | 
|---|
| System.String | key | 
| System.UInt32 | amount | 
 Decrement(String, UInt32)
Declaration
public long Decrement(string key, uint amount)
Returns
System.Int64
Parameters
| Type | Name | 
|---|
| System.String | key | 
| System.UInt32 | amount | 
 Add<T>(String, T)
Declaration
public bool Add<T>(string key, T value)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
Type Parameters
 Set<T>(String, T)
Declaration
public bool Set<T>(string key, T value)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
Type Parameters
 Replace<T>(String, T)
Declaration
public bool Replace<T>(string key, T value)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
Type Parameters
 Add<T>(String, T, DateTime)
Declaration
public bool Add<T>(string key, T value, DateTime expiresAt)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.DateTime | expiresAt | 
Type Parameters
 Set<T>(String, T, DateTime)
Declaration
public bool Set<T>(string key, T value, DateTime expiresAt)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.DateTime | expiresAt | 
Type Parameters
 Replace<T>(String, T, DateTime)
Declaration
public bool Replace<T>(string key, T value, DateTime expiresAt)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.DateTime | expiresAt | 
Type Parameters
 Add<T>(String, T, TimeSpan)
Declaration
public bool Add<T>(string key, T value, TimeSpan expiresIn)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.TimeSpan | expiresIn | 
Type Parameters
 Set<T>(String, T, TimeSpan)
Declaration
public bool Set<T>(string key, T value, TimeSpan expiresIn)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.TimeSpan | expiresIn | 
Type Parameters
 Replace<T>(String, T, TimeSpan)
Declaration
public bool Replace<T>(string key, T value, TimeSpan expiresIn)
Returns
System.Boolean
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.TimeSpan | expiresIn | 
Type Parameters
 FlushAll()
 GetAll<T>(IEnumerable<String>)
Declaration
public IDictionary<string, T> GetAll<T>(IEnumerable<string> keys)
Returns
System.Collections.Generic.IDictionary<System.String,<T>>
Parameters
| Type | Name | 
|---|
| System.Collections.Generic.IEnumerable<System.String> | keys | 
Type Parameters
 RemoveAll(IEnumerable<String>)
Declaration
public void RemoveAll(IEnumerable<string> keys)
Parameters
| Type | Name | 
|---|
| System.Collections.Generic.IEnumerable<System.String> | keys | 
 SetAll<T>(IDictionary<String, T>)
Declaration
public void SetAll<T>(IDictionary<string, T> values)
Parameters
| Type | Name | 
|---|
| System.Collections.Generic.IDictionary<System.String,<T>> | values | 
Type Parameters
 RemoveAsync(String, CancellationToken)
Declaration
public async 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(IEnumerable<String>, CancellationToken)
Declaration
public async Task RemoveAllAsync(IEnumerable<string> keys, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
| Type | Name | 
|---|
| System.Collections.Generic.IEnumerable<System.String> | keys | 
| System.Threading.CancellationToken | token | 
 GetAsync<T>(String, CancellationToken)
Declaration
public async 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
 IncrementAsync(String, UInt32, CancellationToken)
Declaration
public async Task<long> IncrementAsync(string key, uint amount, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Int64>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| System.UInt32 | amount | 
| System.Threading.CancellationToken | token | 
 DecrementAsync(String, UInt32, CancellationToken)
Declaration
public async Task<long> DecrementAsync(string key, uint amount, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Int64>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| System.UInt32 | amount | 
| System.Threading.CancellationToken | token | 
 AddAsync<T>(String, T, CancellationToken)
Declaration
public async Task<bool> AddAsync<T>(string key, T value, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.Threading.CancellationToken | token | 
Type Parameters
 SetAsync<T>(String, T, CancellationToken)
Declaration
public async Task<bool> SetAsync<T>(string key, T value, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.Threading.CancellationToken | token | 
Type Parameters
 ReplaceAsync<T>(String, T, CancellationToken)
Declaration
public async Task<bool> ReplaceAsync<T>(string key, T value, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.Threading.CancellationToken | token | 
Type Parameters
 AddAsync<T>(String, T, DateTime, CancellationToken)
Declaration
public async Task<bool> AddAsync<T>(string key, T value, DateTime expiresAt, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.DateTime | expiresAt | 
| System.Threading.CancellationToken | token | 
Type Parameters
 SetAsync<T>(String, T, DateTime, CancellationToken)
Declaration
public async Task<bool> SetAsync<T>(string key, T value, DateTime expiresAt, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.DateTime | expiresAt | 
| System.Threading.CancellationToken | token | 
Type Parameters
 ReplaceAsync<T>(String, T, DateTime, CancellationToken)
Declaration
public async Task<bool> ReplaceAsync<T>(string key, T value, DateTime expiresAt, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.DateTime | expiresAt | 
| System.Threading.CancellationToken | token | 
Type Parameters
 AddAsync<T>(String, T, TimeSpan, CancellationToken)
Declaration
public async Task<bool> AddAsync<T>(string key, T value, TimeSpan expiresIn, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.TimeSpan | expiresIn | 
| System.Threading.CancellationToken | token | 
Type Parameters
 SetAsync<T>(String, T, TimeSpan, CancellationToken)
Declaration
public async Task<bool> SetAsync<T>(string key, T value, TimeSpan expiresIn, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.TimeSpan | expiresIn | 
| System.Threading.CancellationToken | token | 
Type Parameters
 ReplaceAsync<T>(String, T, TimeSpan, CancellationToken)
Declaration
public async Task<bool> ReplaceAsync<T>(string key, T value, TimeSpan expiresIn, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| <T> | value | 
| System.TimeSpan | expiresIn | 
| System.Threading.CancellationToken | token | 
Type Parameters
 FlushAllAsync(CancellationToken)
Declaration
public async Task FlushAllAsync(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
| Type | Name | 
|---|
| System.Threading.CancellationToken | token | 
 GetAllAsync<T>(IEnumerable<String>, CancellationToken)
Declaration
public async Task<IDictionary<string, T>> GetAllAsync<T>(IEnumerable<string> keys, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Collections.Generic.IDictionary<System.String,<T>>>
Parameters
| Type | Name | 
|---|
| System.Collections.Generic.IEnumerable<System.String> | keys | 
| System.Threading.CancellationToken | token | 
Type Parameters
 SetAllAsync<T>(IDictionary<String, T>, CancellationToken)
Declaration
public async Task SetAllAsync<T>(IDictionary<string, T> values, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
| Type | Name | 
|---|
| System.Collections.Generic.IDictionary<System.String,<T>> | values | 
| System.Threading.CancellationToken | token | 
Type Parameters
 GetTimeToLiveAsync(String, CancellationToken)
Declaration
public async Task<TimeSpan?> GetTimeToLiveAsync(string key, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task<System.Nullable<System.TimeSpan>>
Parameters
| Type | Name | 
|---|
| System.String | key | 
| System.Threading.CancellationToken | token | 
 RemoveExpiredEntriesAsync(CancellationToken)
Declaration
public async Task RemoveExpiredEntriesAsync(CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
| Type | Name | 
|---|
| System.Threading.CancellationToken | token | 
 DisposeAsync()
Declaration
public async ValueTask DisposeAsync()
Returns
ValueTask
 GetKeysByPatternAsync(String, CancellationToken)
Declaration
public async IAsyncEnumerable<string> GetKeysByPatternAsync(string pattern, CancellationToken token = default(CancellationToken))
Returns
IAsyncEnumerable<System.String>
Parameters
| Type | Name | 
|---|
| System.String | pattern | 
| System.Threading.CancellationToken | token | 
Implements