skip to Main Content

Hiredis asynchronous

I am developing a simple application that uses the asynchronous aspects of hiredis, the official C client of Redis. As the first step, I tried to compile the example programs available in the github repo. I am compiling using gcc…

VIEW QUESTION

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
Back To Top
Search