mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
fix(cache): align subscribe share region capacity (#6173)
This commit is contained in:
@@ -668,7 +668,7 @@ class MoviePilotServerHelper:
|
|||||||
return params
|
return params
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@cached(region="subscribe_share", maxsize=5, ttl=1800, skip_empty=True)
|
@cached(region="subscribe_share", maxsize=32, ttl=1800, skip_empty=True)
|
||||||
def get_subscribe_statistic(
|
def get_subscribe_statistic(
|
||||||
cls,
|
cls,
|
||||||
stype: str,
|
stype: str,
|
||||||
@@ -696,7 +696,7 @@ class MoviePilotServerHelper:
|
|||||||
return cls._handle_list_response(cls.subscribe_statistic(params))
|
return cls._handle_list_response(cls.subscribe_statistic(params))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@cached(region="subscribe_share", maxsize=5, ttl=1800, skip_empty=True)
|
@cached(region="subscribe_share", maxsize=32, ttl=1800, skip_empty=True)
|
||||||
async def async_get_subscribe_statistic(
|
async def async_get_subscribe_statistic(
|
||||||
cls,
|
cls,
|
||||||
stype: str,
|
stype: str,
|
||||||
@@ -882,7 +882,7 @@ class MoviePilotServerHelper:
|
|||||||
return cls._handle_response(await cls.async_subscribe_fork(share_id))
|
return cls._handle_response(await cls.async_subscribe_fork(share_id))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@cached(region="subscribe_share", maxsize=1, ttl=1800, skip_empty=True)
|
@cached(region="subscribe_share", maxsize=32, ttl=1800, skip_empty=True)
|
||||||
def get_subscribe_shares(
|
def get_subscribe_shares(
|
||||||
cls,
|
cls,
|
||||||
name: Optional[str] = None,
|
name: Optional[str] = None,
|
||||||
@@ -910,7 +910,7 @@ class MoviePilotServerHelper:
|
|||||||
return cls._handle_list_response(cls.subscribe_shares(params))
|
return cls._handle_list_response(cls.subscribe_shares(params))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@cached(region="subscribe_share", maxsize=1, ttl=1800, skip_empty=True)
|
@cached(region="subscribe_share", maxsize=32, ttl=1800, skip_empty=True)
|
||||||
async def async_get_subscribe_shares(
|
async def async_get_subscribe_shares(
|
||||||
cls,
|
cls,
|
||||||
name: Optional[str] = None,
|
name: Optional[str] = None,
|
||||||
@@ -938,7 +938,7 @@ class MoviePilotServerHelper:
|
|||||||
return cls._handle_list_response(await cls.async_subscribe_shares(params))
|
return cls._handle_list_response(await cls.async_subscribe_shares(params))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@cached(region="subscribe_share", maxsize=1, ttl=1800, skip_empty=True)
|
@cached(region="subscribe_share", maxsize=32, ttl=1800, skip_empty=True)
|
||||||
def get_subscribe_share_statistics(cls) -> List[dict]:
|
def get_subscribe_share_statistics(cls) -> List[dict]:
|
||||||
"""
|
"""
|
||||||
获取订阅分享统计数据。
|
获取订阅分享统计数据。
|
||||||
@@ -948,7 +948,7 @@ class MoviePilotServerHelper:
|
|||||||
return cls._handle_list_response(cls.subscribe_share_statistics())
|
return cls._handle_list_response(cls.subscribe_share_statistics())
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@cached(region="subscribe_share", maxsize=1, ttl=1800, skip_empty=True)
|
@cached(region="subscribe_share", maxsize=32, ttl=1800, skip_empty=True)
|
||||||
async def async_get_subscribe_share_statistics(cls) -> List[dict]:
|
async def async_get_subscribe_share_statistics(cls) -> List[dict]:
|
||||||
"""
|
"""
|
||||||
异步获取订阅分享统计数据。
|
异步获取订阅分享统计数据。
|
||||||
|
|||||||
Reference in New Issue
Block a user