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
private static final String DEFAULT_VALUE = ""; 怎么设置呢 @OverRide public boolean add(String key, int expire) { redisTemplateString.opsForValue().set(perfix + key,JedisExpireKey.DEFAULT_EXPIRE,expire); return super.add(key, expire); } 我发现我根本无法设置 Value
The text was updated successfully, but these errors were encountered:
@DaTa public class WxSpringRedisConfigStorage extends JedisExpireKey { private final RedisTemplate<String, String> redisTemplateString;
private String perfix = "WP_ExpireKey_"; public WxSpringRedisConfigStorage(RedisTemplate<String, String> redisTemplateString) { this.redisTemplateString = redisTemplateString; } @Override public void setPerfix(String perfix) { super.setPerfix(perfix); } @Override public boolean add(String key, int expire) { redisTemplateString.opsForValue().set(perfix + key,JedisExpireKey.DEFAULT_EXPIRE,expire); return super.add(key, expire); } @Override public boolean add(String key) { return super.add(key); } @Override public boolean exists(String key) { return super.exists(key); }
}
Sorry, something went wrong.
JedisExpireKey 的目的在于标记key 是否过期,不关心value 是什么。
No branches or pull requests
private static final String DEFAULT_VALUE = ""; 怎么设置呢
@OverRide
public boolean add(String key, int expire) {
redisTemplateString.opsForValue().set(perfix + key,JedisExpireKey.DEFAULT_EXPIRE,expire);
return super.add(key, expire);
} 我发现我根本无法设置 Value
The text was updated successfully, but these errors were encountered: