skip to Main Content

Testing Redis functionalities with Jest

I have the following file that connect to a redis database: index.js const redis = require('redis'); const logger = require('../logger'); const config = require('../env'); const client = redis.createClient({ host: config.redis.host, port: config.redis.port }); const connect = () => { client.on('connect',…

VIEW QUESTION

Redis server crash on MacOS 11

I have installed redis using the Rosetta terminal but when I run "redis-server" I get this error. I am on the new Mac Book Pro 2020 with Apple Silicon. redis-server 42116:C 21 Nov 2020 20:07:12.620 # oO0OoO0OoO0Oo Redis is starting…

VIEW QUESTION

redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write failed)

While trying to use Jedis.get(key) while accessing the Redis using Jedis I'm getting this error. redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Broken pipe (Write failed) The code to access the Redis looks like below: private static JedisPoolConfig buildPoolConfig() { final JedisPoolConfig poolConfig = new…

VIEW QUESTION

Spring Boot Caching with Redis Sentinel always connects to master node

I have a Spring Boot (2.3.1.RELEASE) app that has caching with Redis Sentinel. This is my configuration for the Sentinel connection: @Bean public LettuceConnectionFactory redisConnectionFactory() { RedisSentinelConfiguration sentinelConfig = new RedisSentinelConfiguration() .master(redisProperties.getSentinel().getMaster()); redisProperties.getSentinel().getNodes().forEach(s -> sentinelConfig.sentinel(s, redisProperties.getPort())); sentinelConfig.setPassword(RedisPassword.of(redisProperties.getPassword())); return new LettuceConnectionFactory(sentinelConfig);…

VIEW QUESTION
Back To Top
Search