mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-02-16 05:16:24 +08:00
refactor: Use diamond operator
This commit is contained in:
@@ -79,7 +79,7 @@ public abstract class AbstractWxMaRedisConfig extends WxMaDefaultConfigImpl {
|
||||
|
||||
private void setValueToRedis(String key, long expiresTime, String value) {
|
||||
try (Jedis jedis = getConfiguredJedis()) {
|
||||
Map<String, String> hash = new HashMap<String, String>();
|
||||
Map<String, String> hash = new HashMap<>();
|
||||
hash.put(HASH_VALUE_FIELD, value);
|
||||
hash.put(HASH_EXPIRE_FIELD, String.valueOf(expiresTime));
|
||||
jedis.hmset(getRedisKey(key), hash);
|
||||
|
||||
Reference in New Issue
Block a user