Ejemplo n.º 1
0
        public async Task <IActionResult> CacheContentAsync <T>(CategoryCached category, IEnumerable <int> categoryIds,
                                                                Func <Task <T> > dataLoader, int?page = null)
        {
            var key = keyGenerator.ContentGenerateKey(ControllerName, ActionName, page, categoryIds);

            return(await CacheContentAsync(category, key, dataLoader, page));
        }