IRedisHashAsync
Assembly: ServiceStack.Interfaces.dll
View Source
Declaration
public interface IRedisHashAsync : IHasStringId, IHasId<string>
Methods
AddIfNotExistsAsync(KeyValuePair<String, String>, CancellationToken)
View Source
Declaration
ValueTask<bool> AddIfNotExistsAsync(KeyValuePair<string, string> item, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.String> | item |
System.Threading.CancellationToken | token |
AddRangeAsync(IEnumerable<KeyValuePair<String, String>>, CancellationToken)
View Source
Declaration
ValueTask AddRangeAsync(IEnumerable<KeyValuePair<string, string>> items, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.String>> | items |
System.Threading.CancellationToken | token |
IncrementValueAsync(String, Int32, CancellationToken)
View Source
Declaration
ValueTask<long> IncrementValueAsync(string key, int incrementBy, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Int64>
Parameters
Type | Name |
---|---|
System.String | key |
System.Int32 | incrementBy |
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<String, String>, CancellationToken)
View Source
Declaration
ValueTask AddAsync(KeyValuePair<string, string> item, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.String> | item |
System.Threading.CancellationToken | token |
AddAsync(String, String, CancellationToken)
View Source
Declaration
ValueTask AddAsync(string key, string value, CancellationToken token = default(CancellationToken))
Returns
ValueTask
Parameters
Type | Name |
---|---|
System.String | key |
System.String | 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(String, CancellationToken)
View Source
Declaration
ValueTask<bool> ContainsKeyAsync(string key, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
System.String | key |
System.Threading.CancellationToken | token |
RemoveAsync(String, CancellationToken)
View Source
Declaration
ValueTask<bool> RemoveAsync(string key, CancellationToken token = default(CancellationToken))
Returns
ValueTask<System.Boolean>
Parameters
Type | Name |
---|---|
System.String | key |
System.Threading.CancellationToken | token |