public async Task <string> Get(string user, string password, int months) { logger.LogInformation("New incoming request from " + user); var req = new SchemaRequest { UserName = user, Password = password, Months = months }; var key = $"{user}-{password}-{months}"; return(await cache.GetOrCreateAsync(key, async entry => { entry.AbsoluteExpirationRelativeToNow = TimeSpan.FromHours(options.TtlHours); return await schemaService.GetCalendarAsync(req); })); }