mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
refactor backend module architecture
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
"""插件可用的缓存契约、适配器工厂和装饰器。"""
|
||||
|
||||
from app.infrastructure.cache import (
|
||||
AsyncFileBackend,
|
||||
AsyncRedisBackend,
|
||||
FileBackend,
|
||||
RedisBackend,
|
||||
)
|
||||
from app.platform.cache import (
|
||||
AsyncCache,
|
||||
AsyncCacheBackend,
|
||||
AsyncFileCache,
|
||||
AsyncMemoryBackend,
|
||||
Cache,
|
||||
CacheBackend,
|
||||
FileCache,
|
||||
LRUCache,
|
||||
MemoryBackend,
|
||||
TTLCache,
|
||||
async_fresh,
|
||||
cached,
|
||||
fresh,
|
||||
is_fresh,
|
||||
)
|
||||
|
||||
|
||||
__all__ = [
|
||||
"AsyncCache",
|
||||
"AsyncCacheBackend",
|
||||
"AsyncFileBackend",
|
||||
"AsyncFileCache",
|
||||
"AsyncMemoryBackend",
|
||||
"AsyncRedisBackend",
|
||||
"Cache",
|
||||
"CacheBackend",
|
||||
"FileBackend",
|
||||
"FileCache",
|
||||
"LRUCache",
|
||||
"MemoryBackend",
|
||||
"RedisBackend",
|
||||
"TTLCache",
|
||||
"async_fresh",
|
||||
"cached",
|
||||
"fresh",
|
||||
"is_fresh",
|
||||
]
|
||||
Reference in New Issue
Block a user