Merge pull request #6474 from seakider/fix_region_prefix

Fixed - Hibernate region_prefix configuration doesn't apply to redis key redisson-hibernate-timestamp
pull/6310/merge
Nikita Koksharov 6 days ago committed by GitHub
commit 6990d9e05c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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