An unhandled exception occurred while processing the request.
RedisConnectionException: It was not possible to connect to the redis server(s); to create a disconnected multiplexer, disable AbortOnConnectFail. SocketFailure on PING
StackExchange.Redis.ConnectionMultiplexer.ConnectImpl(Func multiplexerFactory, TextWriter log) in ConnectionMultiplexer.cs, line 890
/// <summary>
///
/// </summary>
public async Task<IActionResult> Index()
{
if (!_redisCacheService.TryGetValue(key: CacheKeyTemplate.PostsCacheKey, result: out IEnumerable<PostOutput> posts))
{
posts = await _postService.SearchAsync(page: 0, recordsPerPage: recordsPerPage, term: "", taxonomyId: null, taxonomyType: null, publishStatus: PublishStatus.Publish, sortOrder: SortOrder.Desc);
await _redisCacheService.SetAsync(key: CacheKeyTemplate.PostsCacheKey, data: posts, cacheTimeInMinutes: 60);
}
return View(posts);