11 lines
308 B
C#
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);
|
|
}
|