skip to Main Content

NOAUTH Authentication required spring-boot-data-redis+Realease Lettuce+Redis sentinel

when I restart redis cause java.util.concurrent.ExecutionException: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication required. Why is this a problem use version like this @Configuration public class RedisConfig { @Autowired private RedisProperties redisProperties; @Bean(destroyMethod = "close") public StatefulRedisConnection<String, Object> StatefulRedisConnection() { RedisURI redisUri = RedisURI.builder().withPassword(redisProperties.getPassword())…

VIEW QUESTION

Will the redis callback be executed in redis and not in my program?

Let say for example I have the following code: return (long) redisTemplate.execute(new RedisCallback() { @Override public Object doInRedis(RedisConnection connection) throws DataAccessException { String redisKey = RedisKeyUtil.getDAUKey(df.format(start), df.format(end)); connection.bitOp(RedisStringCommands.BitOperation.OR, redisKey.getBytes(), keyList.toArray(new byte[0][0])); return connection.bitCount(redisKey.getBytes()); } }); Will this doInredis method be…

VIEW QUESTION

Redis – Error: connect ECONNREFUSED 127.0.0.1:6379

I have coding like this const redis = require("redis"); const client = redis.createClient(); client.on("connect", function() { console.log("You are now connected"); }); client.set("student", "Laylaa", function(err, reply) { console.log(reply); }); but there is an error like this.. events.js:291 throw er; // Unhandled…

VIEW QUESTION
Back To Top
Search