mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-27 20:22:47 +08:00
fix cache default
This commit is contained in:
@@ -940,7 +940,7 @@ class TTLCache:
|
||||
logger.warning(f"缓存关闭失败: {e}")
|
||||
|
||||
|
||||
def cached(region: Optional[str] = None, maxsize: Optional[int] = None, ttl: Optional[int] = None,
|
||||
def cached(region: Optional[str] = None, maxsize: Optional[int] = 1024, ttl: Optional[int] = None,
|
||||
skip_none: Optional[bool] = True, skip_empty: Optional[bool] = False):
|
||||
"""
|
||||
自定义缓存装饰器,支持为每个 key 动态传递 maxsize 和 ttl
|
||||
|
||||
Reference in New Issue
Block a user