コード例 #1
0
        public async Task <ActionResult> Index()
        {
            // Example of having the redis cache get accessed on the first request. If the redis cache server isn't running an exception will get
            // thrown here.
            var user = await _appUserCache.FindAsync(_appUserCache.UsernameIndex, User.Identity.Name);

            return(View());
        }