-1

I am caching data by using @Cacheable(value="bus_availability", key="#sourceCity") spring annotation in Redis using spring. But whenever trying to access it using RedisCacheManager I not getting results. Like redisCacheManager.getCacheNames() returning empty array.

Yogesh Funde
  • 767
  • 6
  • 13

1 Answers1

0

I done some research and solved this. I was calling method from same class so proxy concept was not applying to bean. So now I moved it in another bean and its working fine now

Yogesh Funde
  • 767
  • 6
  • 13