BotSharp/src/Infrastructure/BotSharp.Abstraction/Infrastructures/ICacheService.cs
2025-01-22 21:47:16 +08:00

11 lines
308 B
C#

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);
Task RemoveAsync(string key);
Task ClearCacheAsync(string prefix);
}