mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
系统过滤重复的请求
This commit is contained in:
@@ -376,7 +376,7 @@ public class RedisCache {
|
||||
* @param key 键
|
||||
* @param value 值
|
||||
* @param expireTime 过期时间,单位秒
|
||||
* @return
|
||||
* @return true: set成功; false失败表示已有值
|
||||
*/
|
||||
public Boolean setnx(String key, String value, long expireTime) {
|
||||
return redisTemplate.opsForValue().setIfAbsent(key, value, expireTime, TimeUnit.SECONDS);
|
||||
|
||||
Reference in New Issue
Block a user