ShiftScheduler/Services/IPersistentCache.cs
copilot-swe-agent[bot] b5f052f4fb Implement persistent file-based cache to survive application restarts
Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com>
2025-08-24 18:26:29 +00:00

10 lines
No EOL
301 B
C#

namespace ShiftScheduler.Services
{
public interface IPersistentCache
{
Task<T?> GetAsync<T>(string key) where T : class;
Task SetAsync<T>(string key, T value, TimeSpan expiration) where T : class;
Task RemoveAsync(string key);
Task ClearExpiredAsync();
}
}