NadekoBot/NadekoBot.Core/Services/IDataCache.cs
2017-10-20 17:20:26 +02:00

15 lines
455 B
C#

using StackExchange.Redis;
using System.Threading.Tasks;
namespace NadekoBot.Core.Services
{
public interface IDataCache
{
ConnectionMultiplexer Redis { get; }
Task<(bool Success, byte[] Data)> TryGetImageDataAsync(string key);
Task<(bool Success, string Data)> TryGetAnimeDataAsync(string key);
Task SetImageDataAsync(string key, byte[] data);
Task SetAnimeDataAsync(string link, string data);
}
}