mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-29 03:56:43 +08:00
47 lines
814 B
Python
47 lines
814 B
Python
"""插件可用的缓存契约、适配器工厂和装饰器。"""
|
|
|
|
from app.adapters.cache.backends import (
|
|
AsyncFileBackend,
|
|
AsyncRedisBackend,
|
|
FileBackend,
|
|
RedisBackend,
|
|
)
|
|
from app.runtime.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",
|
|
]
|