fix(config): 增加缓存生存时间和最大内存占用限制
This commit is contained in:
@@ -89,7 +89,7 @@ class AdaptiveBatchScheduler:
|
||||
base_wait_time: float = 0.05, # 50ms
|
||||
max_wait_time: float = 0.2, # 200ms
|
||||
max_queue_size: int = 1000,
|
||||
cache_ttl: float = 5.0,
|
||||
cache_ttl: float = 30.0,
|
||||
):
|
||||
"""初始化调度器
|
||||
|
||||
|
||||
@@ -143,7 +143,7 @@ def timeout(seconds: float):
|
||||
|
||||
|
||||
def cached(
|
||||
ttl: int | None = 300,
|
||||
ttl: int | None = 600,
|
||||
key_prefix: str | None = None,
|
||||
use_args: bool = True,
|
||||
use_kwargs: bool = True,
|
||||
|
||||
Reference in New Issue
Block a user