lettuce连接池配置time-between-eviction-runs官方解释url
时间: 2023-09-07 21:11:35 浏览: 47
Lettuce连接池的官方文档可以在以下网址中找到:
https://lettuce.io/core/release/reference/#asynchronous-connection-sharing
其中关于`time-between-eviction-runs`属性的官方解释可以在下面的章节找到:
https://lettuce.io/core/release/reference/#pooling
在这个章节中,可以找到如下的英文解释:
> `time-between-eviction-runs`: The time between runs of the idle object evictor thread. When positive, the idle object evictor thread starts after the specified delay in milliseconds and runs at the specified interval. When negative, the idle object evictor thread does not run. The default value is -1ms.
至于中文解释,我前面已经给出了。
相关问题
lettuce连接池配置time-between-eviction-runs官方解释
在Lettuce连接池配置中,`time-between-eviction-runs`属性用于配置空闲连接的检测周期时间。官方解释如下:
> The time between runs of the idle object evictor thread. When positive, the idle object evictor thread starts after the specified delay in milliseconds and runs at the specified interval. When negative, the idle object evictor thread does not run. The default value is -1ms.
翻译过来就是:
> 空闲对象驱逐线程运行的时间间隔。当值为正数时,空闲对象驱逐线程在指定的延迟时间后开始运行,并以指定的时间间隔运行。当值为负数时,空闲对象驱逐线程不运行。默认值为-1ms。
换句话说,`time-between-eviction-runs`属性用于配置空闲连接的检测周期时间,当值为正数时表示启用空闲连接检测,且检测间隔为指定的时间间隔;当值为负数时表示不启用空闲连接检测。默认值为-1ms,表示不启用空闲连接检测。
lettuce连接池配置min-evictable-idle-time官方解释url
关于`min-evictable-idle-time`属性的官方解释可以在Lettuce的官方文档中的以下章节找到:
https://lettuce.io/core/release/reference/#pooling
在这个章节中,可以找到如下的英文解释:
> `min-evictable-idle-time`: The minimum amount of time an object may sit idle in the pool before it is eligible for eviction. When negative, objects will be evicted immediately upon identification as idle. This value must be positive or zero. The default value is 30 minutes (1800000ms).
至于中文解释,我前面已经给出了。