|
|
|
@ -427,7 +427,7 @@ public class RedissonSortedSet<V> extends RedissonExpirable implements RSortedSe
|
|
|
|
|
+ "start_index = 0;"
|
|
|
|
|
+ "end;"
|
|
|
|
|
+ "if start_index == -1 then "
|
|
|
|
|
+ "return {0, {}}; "
|
|
|
|
|
+ "return {'0', {}}; "
|
|
|
|
|
+ "end;"
|
|
|
|
|
+ "local end_index = start_index + ARGV[1];"
|
|
|
|
|
+ "local result; "
|
|
|
|
@ -436,7 +436,7 @@ public class RedissonSortedSet<V> extends RedissonExpirable implements RSortedSe
|
|
|
|
|
+ "end_index = -1;"
|
|
|
|
|
+ "end; "
|
|
|
|
|
+ "redis.call('setex', KEYS[2], 3600, end_index);"
|
|
|
|
|
+ "return {end_index, result};",
|
|
|
|
|
+ "return {tostring(end_index), result};",
|
|
|
|
|
Arrays.asList(list.getRawName(), iteratorName), count);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|