package Ġstudio . crud . crud framework . crud . configuration Ċ Ċ import Ġstudio . crud . crud framework . crud . cache . CacheManager Adapter Ċ import Ġstudio . crud . crud framework . crud . cache . adapter . eh cache . Eh CacheManager Adapter Ċ import Ġnet . sf . eh cache . CacheManager Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . boot . autoconfigure . condition . Conditional On Bean Ċ import Ġorg . springframework . boot . autoconfigure . condition . Conditional On Class Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ Ċ @ Configuration Ċ @ Conditional On Class ( CacheManager :: class ) Ċ class ĠCr ud Eh Cache Configuration Ġ{ ĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Conditional On Bean ( CacheManager :: class ) ĊĠĠĠ Ġfun Ġeh CacheManager Adapter ( cache Manager : ĠCache Manager ): ĠCache Manager Adapter Ġ{ ĊĠĠĠĠĠĠĠ Ġlog . info (" Using ĠE h Cache Ġfor Ġcaching Ġoperations ") ĊĠĠĠĠĠĠĠ Ġreturn ĠE h CacheManager Adapter ( cache Manager ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġlog Ġ= ĠLoggerFactory . getLogger ( Crud Eh Cache Configuration :: class . java ) ĊĠĠĠ Ġ} Ċ }