Example #1
0
        public async Task Can_GetHashKeys()
        {
            var mapValues = CreateMap();
            await mapValues.ForEachAsync(async (k, v) => await redis.SetEntryInHashAsync(Hash, k, v));

            var expectedKeys = mapValues.Map(x => x.Key);

            var hashKeys = await redis.GetHashKeysAsync(Hash);

            Assert.That(hashKeys, Is.EquivalentTo(expectedKeys));
        }