PluralKit/PluralKit.Core/Services/RedisService.cs
2022-02-04 14:53:56 -05:00

14 lines
330 B
C#

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);
}
}