Fix cache reference

This commit is contained in:
2025-04-30 14:04:37 +07:00
parent 61e20356cd
commit 8a3c09809f
6 changed files with 9 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
namespace Managing.Application.Abstractions.Services;
public interface ICacheService
{
string SaveValue(string name, string value);
string GetValue(string key);
void RemoveValue(string key);
T GetOrSave<T>(string name, Func<T> action, TimeSpan slidingExpiration);
T GetValue<T>(string key);
void SaveValue<T>(string name, T value, TimeSpan slidingExpiration);
}