public Task <List <AutocompleteRow> > GetAllTalksAsync() => _cache.GetOrCreateAsync(nameof(GetAllTalksAsync), cacheEntry => { cacheEntry.SlidingExpiration = TimeSpan.FromMinutes(10); return(_talkService.GetAllTalksAsync()); } );
public Task <List <AutocompleteRow> > GetTalks() => _talkService.GetAllTalksAsync();