Files
k8scd/nix-infra-machine/__test__/redis/nodes/testnode001.nix
T
2026-03-15 18:31:53 +01:00

20 lines
523 B
Nix

{ config, pkgs, lib, ... }: {
# Enable Redis using infrastructure module with multiple servers
config.infrastructure.redis = {
enable = true;
servers = {
# Default server (creates redis.service)
"" = {
bindToIp = "127.0.0.1";
bindToPort = 6379;
};
# Named server for testing (creates redis-cache.service)
cache = {
bindToIp = "127.0.0.1";
bindToPort = 6380;
maxMemory = "64mb";
maxMemoryPolicy = "allkeys-lru";
};
};
};
}