From 8552547afae8b26b698d64a9024b1d110f5fb1fa Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Thu, 24 Jan 2019 17:16:19 +0100 Subject: [PATCH] configure redis caching --- config.go | 1 + etc/ecix/birdwatcher.conf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/config.go b/config.go index d4e5fda..a722a35 100644 --- a/config.go +++ b/config.go @@ -22,6 +22,7 @@ type Config struct { Bird bird.BirdConfig Bird6 bird.BirdConfig Parser bird.ParserConfig + Cache bird.CacheConfig } // Try to load configfiles as specified in the files diff --git a/etc/ecix/birdwatcher.conf b/etc/ecix/birdwatcher.conf index 717ac85..61e3e3e 100644 --- a/etc/ecix/birdwatcher.conf +++ b/etc/ecix/birdwatcher.conf @@ -61,3 +61,7 @@ per_peer_tables = true peer_protocol_prefix = 'ID' pipe_protocol_prefix = 'P' +[cache] +use_redis = true +redis_server = "localhost:6379" +redis_db = 0