|
|
|
@ -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();
|
|
|
|
|