Implement redis storage

This commit is contained in:
Maksym Pavlenko
2016-11-08 22:51:03 -08:00
parent d9dd677329
commit 9155af6711
9 changed files with 239 additions and 2 deletions
@@ -0,0 +1,24 @@
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Podsync.Services.Storage;
namespace Podsync.Controllers
{
public class StatusController : Controller
{
private readonly IStorageService _storageService;
public StatusController(IStorageService storageService)
{
_storageService = storageService;
}
public async Task<string> Index()
{
var time = await _storageService.Ping();
return $"Path: {Request.Path}\r\n" +
$"Redis: {time}";
}
}
}