We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERR invalid expire time in SETEX
在RedisTemplateWxRedisOps的SetValue中,设置0,Key永不过期,Redis报错,错误提示:ERR invalid expire time in SETEX
其中到期时间不能小于等于0, 所以报错。
如需永不过期,目前修改如下可用: @OverRide public void setValue(String key, String value, int expire, TimeUnit timeUnit) { if (expire < 0) { redisTemplate.opsForValue().set(key, value); } else { redisTemplate.opsForValue().set(key, value, expire, timeUnit); } }
修改setAuthorizerRefreshToken时长为-1 @OverRide public void setAuthorizerRefreshToken(String appId, String authorizerRefreshToken) { redisOps.setValue(this.getKey(this.authorizerRefreshTokenKey, appId), authorizerRefreshToken, -1, TimeUnit.SECONDS); }
The text was updated successfully, but these errors were encountered:
fixed binarywang#1548
d898fd1
🐛 #1546 修复WxRedisOps问题, #1548 修复WxOpenInMemoryConfigStorage锁问题,#1305 …
058ce62
…增加商户电子发票功能
3.7.9.B版本已修复
Sorry, something went wrong.
No branches or pull requests
简要描述
ERR invalid expire time in SETEX
模块版本情况
详细描述
其中到期时间不能小于等于0, 所以报错。
如需永不过期,目前修改如下可用:
@OverRide
public void setValue(String key, String value, int expire, TimeUnit timeUnit) {
if (expire < 0) {
redisTemplate.opsForValue().set(key, value);
} else {
redisTemplate.opsForValue().set(key, value, expire, timeUnit);
}
}
修改setAuthorizerRefreshToken时长为-1
@OverRide
public void setAuthorizerRefreshToken(String appId, String authorizerRefreshToken) {
redisOps.setValue(this.getKey(this.authorizerRefreshTokenKey, appId), authorizerRefreshToken, -1, TimeUnit.SECONDS);
}
The text was updated successfully, but these errors were encountered: