// GET: Leaderboard
        public ActionResult Index()
        {
            using (IRedisClient client = new RedisClient())
            {
                var leaderboard = client.GetAllWithScoresFromSortedSet("urn:leaderboard");
                ViewBag.leaders = leaderboard.OrderByDescending(x => x.Value);
            }

            return View();
        }
예제 #2
0
 public static void RedisTest()
 {
     using (IRedisClient redisClient = new RedisClient())
     {
         for (int i = 0; i < iterations; i++)
         {
             foreach (var k in Keys)
             {
                 var res = redisClient.GetAllWithScoresFromSortedSet("eq:docs:" + k + "*");
             }
         }
     }
 }