redisson icon indicating copy to clipboard operation
redisson copied to clipboard

SCAN command is not getting used in deleteByPattern

Open Himanshu4 opened this issue 9 years ago • 1 comments

#534 issue is not fixed.

The code is still not fixed. I am using elasticache servers and redisson version 3.4.3

if (!commandExecutor.getConnectionManager().isClusterMode()) { return commandExecutor.evalWriteAsync((String)null, null, RedisCommands.EVAL_LONG, "local keys = redis.call('keys', ARGV[1]) " + "local n = 0 " + "for i=1, #keys,5000 do " + "n = n + redis.call('del', unpack(keys, i, math.min(i+4999, table.getn(keys)))) " + "end " + "return n;",Collections.emptyList(), pattern); }

Himanshu4 avatar Jun 27 '17 13:06 Himanshu4

Done

mrniko avatar Jun 30 '17 10:06 mrniko