skip to Main Content

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

Spring Data Redis, Expiring and Redis Cluster

I have an app using Spring Boot 2.2.6.RELEASE (spring-boot-starter-data-redis) Jedis 3.1.0. I've have a Redis 5.0.7 Cluster of 6 nodes: 3 masters and 3 slaves with replication 127.0.0.1:7000-7005 (just exemplary values). I've configured my app this way: @Configuration @EnableRedisRepositories(basePackages =…

VIEW QUESTION
Back To Top
Search