Add cache configuration to cli
Change-Id: I22b7eb9bd9a2fb9e7106ff20487e285638c5320f
diff --git a/cmd/korap-mcp/config.go b/cmd/korap-mcp/config.go
index 4cd1be9..ae0e63d 100644
--- a/cmd/korap-mcp/config.go
+++ b/cmd/korap-mcp/config.go
@@ -29,6 +29,9 @@
// KorAP API configuration
KorAP config.KorAPConfig `embed:"" prefix:"korap-"`
+ // Cache configuration
+ Cache config.CacheConfig `embed:"" prefix:"cache-"`
+
// Logging configuration
Logging config.LoggingConfig `embed:"" prefix:"log-"`
@@ -44,6 +47,7 @@
cli := CLI{
OAuth: cfg.OAuth,
KorAP: cfg.KorAP,
+ Cache: cfg.Cache,
Logging: cfg.Logging,
}
@@ -92,6 +96,7 @@
},
OAuth: c.OAuth,
KorAP: c.KorAP,
+ Cache: c.Cache,
Logging: c.Logging,
}
@@ -119,6 +124,7 @@
},
OAuth: c.OAuth,
KorAP: c.KorAP,
+ Cache: c.Cache,
Logging: c.Logging,
}
}