PluralKit/PluralKit.Core/Services/RedisService.cs

14 lines
329 B
C#
Raw Normal View History

2022-01-13 17:26:25 +00:00
using StackExchange.Redis;
namespace PluralKit.Core;
public class RedisService
{
public ConnectionMultiplexer Connection { get; set; }
public async Task InitAsync(CoreConfig config)
{
if (config.RedisAddr != null)
Connection = await ConnectionMultiplexer.ConnectAsync(config.RedisAddr);
}
}