mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 21:16:49 +00:00
14 lines
No EOL
330 B
C#
14 lines
No EOL
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);
|
|
}
|
|
} |