skip to Main Content

Redis – Should I always call close of jedis instance at the end of business logic?

I`m using jedis as the with spring boot for redis connection. The jedis pool is configured as follow: @Configuration @ConditionalOnClass(JedisPool.class) @EnableConfigurationProperties(JedisProperties.class) public class JedisAutoConfiguration { private JedisProperties jedisProperties; public JedisAutoConfiguration(JedisProperties jedisProperties) { this.jedisProperties = jedisProperties; } @Bean @ConditionalOnMissingBean(JedisPool.class) public JedisPool…

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

logstash-output-clickhouse throws error while installing plugin – CentOS

Validating logstash-output-clickhouse-0.1.0.gem Installing logstash-output-clickhouse Plugin version conflict, aborting ERROR: Installation Aborted, message: Bundler could not find compatible versions for gem "logstash-mixin-http_client": In snapshot (Gemfile.lock): logstash-mixin-http_client (= 6.0.1) In Gemfile: logstash-filter-http java was resolved to 1.0.2, which depends on logstash-mixin-http_client (>=…

VIEW QUESTION
Back To Top
Search