增加 Tenant Redis 的实现

This commit is contained in:
YunaiV
2021-12-06 10:18:36 +08:00
parent 1ce2c09f47
commit df9b06843f
9 changed files with 117 additions and 16 deletions

View File

@ -98,4 +98,16 @@ public class RedisKeyDefine {
this(memo, keyTemplate, keyType, valueType, timeoutType, Duration.ZERO);
}
/**
* 格式化 Key
*
* 注意,内部采用 {@link String#format(String, Object...)} 实现
*
* @param args 格式化的参数
* @return Key
*/
public String formatKey(Object... args) {
return String.format(keyTemplate, args);
}
}