mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
统一使用 app.core.cache 中的 TTLCache
This commit is contained in:
@@ -10,7 +10,7 @@ from datetime import datetime
|
||||
from typing import Any, Literal, Optional, List, Dict, Union
|
||||
from typing import Callable
|
||||
|
||||
from cachetools import TTLCache
|
||||
from app.core.cache import TTLCache
|
||||
from jinja2 import Template
|
||||
|
||||
from app.core.config import global_vars
|
||||
|
||||
@@ -10,10 +10,10 @@ from app.core.event import eventmanager, Event
|
||||
from app.log import logger
|
||||
from app.schemas import ConfigChangeEventData
|
||||
from app.schemas.types import EventType
|
||||
from app.utils.singleton import SingletonClass
|
||||
from app.utils.singleton import Singleton
|
||||
|
||||
|
||||
class RedisHelper(metaclass=SingletonClass):
|
||||
class RedisHelper(metaclass=Singleton):
|
||||
"""
|
||||
Redis连接和操作助手类
|
||||
|
||||
|
||||
Reference in New Issue
Block a user