public async Task<CommentModel> GetCommentModelsAsync(string partitionKey, string rowKey, int takeCount) { return await _cache.Get( _cacheKeyFactory.CreateKey(RegionOfComment, partitionKey, rowKey, takeCount.ToString()), async () => await _commentService.GetCommentModelsAsync(partitionKey, rowKey, takeCount)); }
public async Task <string> GetSasForTable(string tableName) { return(await _cache.Get(_cacheKeyFactory.CreateKey(RegionOfTableSas, tableName), async() => await _sasService.GetSasForTable(tableName))); }
public async Task <CloudTable> GetTableReferenceAsync(string tableName) { return(await _cache.Get(_cacheKeyFactory.CreateKey(RegionOfTable, tableName), async() => await _azureStorage.GetTableReferenceAsync(tableName))); }
public async Task <TumblrEntity> GetTumblrEntityAsync(string partitionKey, string rowKey) { return(await _cache.Get(_cacheKeyFactory.CreateKey(RegionOfTumblr, partitionKey, rowKey), async() => await _tumblrService.GetTumblrEntityAsync(partitionKey, rowKey))); }