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

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