IRedisHashAsync<TKey, TValue>
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisHashAsync<TKey, TValue> : IHasStringId, IHasId<string>
Methods
GetAllAsync(CancellationToken)
View Source
Declaration
ValueTask<Dictionary<TKey, TValue>> GetAllAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Collections.Generic.Dictionary<<TKey>,<TValue>>>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
CountAsync(CancellationToken)
View Source
Declaration
ValueTask<int> CountAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int32>
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
AddAsync(KeyValuePair<TKey, TValue>, CancellationToken)
View Source
Declaration
ValueTask AddAsync(KeyValuePair<TKey, TValue> item, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<<TKey>,<TValue>> | item |
System.Threading.CancellationToken | token |
AddAsync(TKey, TValue, CancellationToken)
View Source
Declaration
ValueTask AddAsync(TKey key, TValue value, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
<TKey> | key |
<TValue> | value |
System.Threading.CancellationToken | token |
ClearAsync(CancellationToken)
View Source
Declaration
ValueTask ClearAsync(CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Threading.CancellationToken | token |
ContainsKeyAsync(TKey, CancellationToken)
View Source
Declaration
ValueTask<bool> ContainsKeyAsync(TKey key, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
<TKey> | key |
System.Threading.CancellationToken | token |
RemoveAsync(TKey, CancellationToken)
View Source
Declaration
ValueTask<bool> RemoveAsync(TKey key, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
<TKey> | key |
System.Threading.CancellationToken | token |