Exemplo n.º 1
0
 /// <summary>
 /// Gets the values asynchronous.
 /// </summary>
 /// <returns></returns>
 public async Task <ICollection <TValue> > GetValuesAsync()
 {
     return(new Collection <TValue>((await RedisDb.HashValuesAsync(RedisKey)).Select(h => ValueSerializer.Deserialize <TValue>(h)).ToList()));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns all values in the hash stored at key.
 /// </summary>
 /// <returns>List of values in the hash, or an empty list when key does not exist.</returns>
 /// <remarks>https://redis.io/commands/hvals</remarks>
 public Task <RedisValue[]> ValuesAsync()
 {
     return(RedisDb.HashValuesAsync(KeyName));
 }