package Ġcom . example . demo . config Ċ Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . data . redis . core . Hash Operations Ċ import Ġorg . springframework . data . redis . core . Redis Template Ċ import Ġorg . springframework . stereotype . Component Ċ Ċ @ Component Ċ class ĠRedis Config Ġ{ ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġlateinit Ġvar Ġredis Template : ĠRedis Template < String , ĠString > ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġhash Operations (): ĠHash Operations < String , ĠString , ĠString > Ġ= Ġredis Template . ops For Hash () Ċ }