/// <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())); }
/// <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)); }