获取key报错fix
This commit is contained in:
parent
5376962c34
commit
723cf01696
|
|
@ -35,7 +35,9 @@ public interface RedisConstant {
|
|||
static String getLockKey(String sign, Object... args) {
|
||||
StringBuilder key = new StringBuilder(LOCK_KEY + ":" + sign + ":");
|
||||
for (Object arg : args) {
|
||||
key.append(":").append(arg.toString());
|
||||
if (arg != null) {
|
||||
key.append(":").append(arg);
|
||||
}
|
||||
}
|
||||
return key.toString();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue