Esempio n. 1
0
        public async Task Can_SScan_10_sets()
        {
            await RedisAsync.FlushAllAsync();

            var items = 10.Times(x => "item" + x);
            await items.ForEachAsync(async x => await RedisAsync.AddItemToSetAsync("scanset", x));

            var ret = await NativeAsync.SScanAsync("scanset", 0);

            Assert.That(ret.Cursor, Is.GreaterThanOrEqualTo(0));
            Assert.That(ret.AsStrings(), Is.EquivalentTo(items));
        }