skip to Main Content

RedisTemplate mock is only working in the test class

Class A{ @Autowired private RedisTemplate<String, Object> redisTemplate; private String readFromCache(String bucket, String key) { Object object = redisTemplate.opsForHash().get(bucketName, key); System.out.println("----" + redisTemplate.opsForHash().get("1", "1")); String returnValue = ""; if (Objects.nonNull(object)) returnValue = object.toString(); return returnValue; } } Class B Class B…

VIEW QUESTION

Redis – Microservices on GCP

I am looking to use GCP for a micro-services application. After comparing AWS and GCP I have decided to go with Google because one major requirement for the project is to schedule tasks to run in the future (Cloud Tasks)…

VIEW QUESTION
Back To Top
Search