统一网关错误码响应

This commit is contained in:
RuoYi
2021-07-29 14:51:27 +08:00
parent 892065003d
commit 7a35c474d6
11 changed files with 155 additions and 89 deletions

View File

@@ -74,6 +74,17 @@ public class RedisService
return redisTemplate.expire(key, timeout, unit);
}
/**
* 判断 key是否存在
*
* @param key 键
* @return true 存在 false不存在
*/
public Boolean hasKey(String key)
{
return redisTemplate.hasKey(key);
}
/**
* 获得缓存的基本对象。
*