Added a basic cache service to handle interations with the underlying cache implementation. Refactored some code to be more robust.

This commit is contained in:
Joseph Milazzo 2021-01-09 16:14:28 -06:00
parent 59a4921ba9
commit cd8a1d2892
8 changed files with 149 additions and 34 deletions

View file

@ -0,0 +1,21 @@
using API.Entities;
namespace API.Interfaces
{
public interface ICacheService
{
/// <summary>
/// Ensures the cache is created for the given volume and if not, will create it.
/// </summary>
/// <param name="volumeId"></param>
void Ensure(int volumeId);
bool Cleanup(Volume volume);
//bool CleanupAll();
string GetCachePath(int volumeId);
}
}