mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-05 03:38:36 +08:00
fix cache maxsize
This commit is contained in:
@@ -261,7 +261,7 @@ class MemoryBackend(CacheBackend):
|
||||
:param maxsize: 缓存的最大条目数
|
||||
:param ttl: 默认缓存存活时间,单位秒
|
||||
"""
|
||||
self.maxsize = maxsize
|
||||
self.maxsize = maxsize or 1024 # 未设置时默认最大条目数为 1024
|
||||
self.ttl = ttl
|
||||
# 存储各个 region 的缓存实例,region -> TTLCache
|
||||
self._region_caches: Dict[str, MemoryTTLCache] = {}
|
||||
|
||||
Reference in New Issue
Block a user