Exemplo n.º 1
0
 public void ListTest()
 {
     // List操作
     for (int i = 0; i < 10; i++)
     {
         redisHelper.ListLeftPush("stus", new Student {
             Id = i + 1, Name = $"tom{i + 1}", Birthday = DateTime.Now
         });
     }
     redisHelper.ListRange <Student>("stus").ForEach(s => { Console.WriteLine($"name:{s.Name},id:{s.Id}"); });
 }