|
@@ -146,6 +146,11 @@ public class RedisExpiredAndWorkListener extends KeyExpirationEventMessageListen
|
|
|
|
|
|
|
|
String key = BaseConstants.REDIS_LOCK + ""+beaconStr[1];
|
|
String key = BaseConstants.REDIS_LOCK + ""+beaconStr[1];
|
|
|
log.info("》》》》》》》》》》》》》》》》》》》》key:"+key);
|
|
log.info("》》》》》》》》》》》》》》》》》》》》key:"+key);
|
|
|
|
|
+ try {
|
|
|
|
|
+ Thread.sleep(Long.parseLong((Math.random()*50+50)+""));
|
|
|
|
|
+ } catch (InterruptedException e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
if (!redisService.hasKey(key)) {
|
|
if (!redisService.hasKey(key)) {
|
|
|
redisService.setCacheObject(key,key,5L, TimeUnit.SECONDS);
|
|
redisService.setCacheObject(key,key,5L, TimeUnit.SECONDS);
|
|
|
log.info("》》》》》》》》》》》》》》》》》》》》key:"+redisService.hasKey(key));
|
|
log.info("》》》》》》》》》》》》》》》》》》》》key:"+redisService.hasKey(key));
|