package Ġcom . rich ode mus . reader . youtube _ feed _ service Ċ Ċ import Ġcom . rich ode mus . reader . dto . Feed Id Ċ import Ġcom . rich ode mus . reader . dto . Playlist Id Ċ import Ġorg . springframework . beans . factory . annotation . Qualifier Ċ import Ġorg . springframework . beans . factory . annotation . Value Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġjava . time . Clock Ċ Ċ @ Configuration Ċ internal Ġopen Ġclass ĠConfig Ġ{ ĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Qualifier (" video Cache ") ĊĠĠĠ Ġ// Ġtodo Ġuse Ġfeed Ġhere Ġas well ĊĠĠĠ Ġopen Ġfun Ġvideo Cache (@ Value ("\ ${ save Root }") Ġsave Root : ĠString ): ĠCache < Playlist Id , ĠV ideos > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠCache ( Json FileSystem Persistence ( save Root , Ġ" videos ", ĠV ideos :: class . java )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Qualifier (" channel Cache ") ĊĠĠĠ Ġopen Ġfun Ġchannel Cache (@ Value ("\ ${ save Root }") Ġsave Root : ĠString ): ĠCache < Feed Id , ĠChannel > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠCache ( Json FileSystem Persistence ( save Root , Ġ" channel ", ĠChannel :: class . java )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġopen Ġfun Ġclock (): ĠClock Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠClock . system Default Zone () ĊĠĠĠ Ġ} Ċ } Ċ