Esempio n. 1
0
        public async void MyTestMethod()
        {

            // redis list
            var redis = new RedisList<Person>(RedisServer.Default, "test-list-key");
            await redis.AddLast(new Person { Name = "Tom" });
            await redis.AddLast(new Person { Name = "Mary" });

            var persons = await redis.Range(0, 10);
        }
Esempio n. 2
0
        public async void MyTestMethod()
        {
            // redis list
            var redis = new RedisList <Person>(RedisServer.Default, "test-list-key");
            await redis.AddLast(new Person { Name = "Tom" });

            await redis.AddLast(new Person { Name = "Mary" });

            var persons = await redis.Range(0, 10);
        }