Beispiel #1
0
        public override void OnActionExecuting(ActionExecutingContext context)
        {
            isCached = false;
            var cacheManager = context.GetCacheManager();

            key = GenerateKey(context);

            var result = cacheManager.Get <OkObjectResult>(key);

            if (result != null)
            {
                isCached       = true;
                context.Result = result;
            }
        }