BotSharp/src/Infrastructure/BotSharp.Abstraction/Infrastructures/ICacheService.cs

11 lines
308 B
C#
Raw Normal View History

2024-08-22 11:54:50 +00:00
namespace BotSharp.Abstraction.Infrastructures;
public interface ICacheService
{
Task<T?> GetAsync<T>(string key);
Task<object> GetAsync(string key, Type type);
Task SetAsync<T>(string key, T value, TimeSpan? expiry);
2024-09-26 22:22:06 +00:00
Task RemoveAsync(string key);
2025-01-22 13:47:16 +00:00
Task ClearCacheAsync(string prefix);
2024-08-22 11:54:50 +00:00
}