例:
set title "title"
plot x
Run Code Online (Sandbox Code Playgroud)
这将绘制一个顶部带有标题的图表.我想在图表下移动标题.我该怎么办?更多,多色时同样的问题怎么样.我想为每个图下的每个小图移动标题.请注意,标题不是将放置在按键中的图表中的标题.非常感谢!
我正在使用springboot,我对配置超时以连接redis感到困惑。
目前,我的配置是:
application.yml:
spring.redis.host: myhost
spring.redis.port: 6379
spring.redis.pool.max-idle: 8
spring.redis.pool.min-idle: 0
spring.redis.pool.max-active: 8
spring.redis.pool.max-wait: -1
Run Code Online (Sandbox Code Playgroud)
StringRedisDao.java:
@Autowired
public StringRedisDao(final StringRedisTemplate template, final ObjectMapper mapper) {
if (template.getConnectionFactory() instanceof JedisConnectionFactory) {
((JedisConnectionFactory) template.getConnectionFactory()).getShardInfo().setTimeout(5000);
((JedisConnectionFactory) template.getConnectionFactory()).setTimeout(5000);
}
this.template = template;
this.mapper = mapper;
}
Run Code Online (Sandbox Code Playgroud)
我使用wireshark捕获数据包,发现redis在2秒后断开连接,而不是我在上面的代码中设置的5秒后断开连接。
因此,我无法执行redis查询时间超过2秒的请求。
拜托,我该怎么做?