Exemple #1
0
        public ActionResult Index()
        {
            var redisClient = new RedisClient();

            redisClient.SetStringByKey("jcliffio:test-time", DateTime.Now.ToString());

            var cachedTime = redisClient.GetStringByKey("jcliffio:test-time");

            var indexViewModel = new IndexViewModel
            {
                CachedTime = cachedTime
            };

            return View(indexViewModel);
        }