Merge branch 'master' of github.com:redisson/redisson

pull/4498/merge
mrniko 6 days ago
commit 0f44d9221b

@ -176,7 +176,7 @@ public class RedissonRegionFactory extends RegionFactoryTemplate {
+ "local nextValue = math.max(tonumber(ARGV[1]), tonumber(currentTime) + 1); "
+ "redis.call('set', KEYS[1], nextValue); "
+ "return nextValue;",
RScript.ReturnType.INTEGER, Arrays.<Object>asList("redisson-hibernate-timestamp"), time);
RScript.ReturnType.INTEGER, Arrays.<Object>asList(qualifyName("redisson-hibernate-timestamp")), time);
} catch (Exception e) {
if (fallback) {
return super.nextTimestamp();

@ -177,7 +177,7 @@ public class RedissonRegionFactory extends RegionFactoryTemplate {
+ "local nextValue = math.max(tonumber(ARGV[1]), tonumber(currentTime) + 1); "
+ "redis.call('set', KEYS[1], nextValue); "
+ "return nextValue;",
RScript.ReturnType.INTEGER, Arrays.<Object>asList("redisson-hibernate-timestamp"), time);
RScript.ReturnType.INTEGER, Arrays.<Object>asList(qualifyName("redisson-hibernate-timestamp")), time);
} catch (Exception e) {
if (fallback) {
return super.nextTimestamp();

Loading…
Cancel
Save