/// <summary> /// Gets the keys asynchronous. /// </summary> /// <returns></returns> public async Task <ICollection <TKey> > GetKeysAsync() { return(new Collection <TKey>((await RedisDb.HashKeysAsync(RedisKey)).Select(h => KeySerializer.Deserialize <TKey>(h)).ToList())); }
/// <summary> /// Returns all field names in the hash stored at key. /// </summary> /// <returns>List of fields in the hash, or an empty list when key does not exist.</returns> /// <remarks>https://redis.io/commands/hkeys</remarks> public Task <RedisValue[]> KeysAsync() { return(RedisDb.HashKeysAsync(KeyName)); }