fix(backend): don't hardcode redis URL, add redis to docker compose
This commit is contained in:
parent
7759225428
commit
f99d10ecf0
2 changed files with 10 additions and 3 deletions
|
@ -24,8 +24,7 @@ namespace Foxnouns.Backend.Services;
|
|||
public class KeyCacheService(Config config)
|
||||
{
|
||||
public ConnectionMultiplexer Multiplexer { get; } =
|
||||
// ConnectionMultiplexer.Connect(config.Database.Redis);
|
||||
ConnectionMultiplexer.Connect("127.0.0.1:6379");
|
||||
ConnectionMultiplexer.Connect(config.Database.Redis);
|
||||
|
||||
public async Task SetKeyAsync(string key, string value, Duration expireAfter) =>
|
||||
await Multiplexer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue