package Ġcom . d val ve zon . kot link to rex ample Ċ Ċ import Ġcom . types afe . config . Config Factory Ċ import Ġio . ktor . config . Ho con Application Config Ċ import Ġio . ktor . util . K tor Experimental API ĊĊ Ċ @ K tor Experimental API Ċ object ĠConfiguration Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġconfig Ġ= ĠHo con Application Config ( Config Factory . load ()) ĊĊĠĠĠ Ġprivate Ġval Ġredis Configs Ġ= Ġconfig . config (" redis ") ĊĠĠĠ Ġval Ġredis Host : ĠString Ġ= Ġredis Configs . property (" host "). getString () ĊĠĠĠ Ġval Ġredis Port : ĠInt Ġ= Ġredis Configs . property (" port "). getString (). toInt () ĊĊĠĠĠ Ġprivate Ġval Ġroot Configs Ġ= Ġconfig . config (" root ") ĊĠĠĠ Ġval Ġroot Key : ĠString Ġ= Ġroot Configs . property (" key "). getString () Ċ }