refactor backend module architecture

This commit is contained in:
jxxghp
2026-08-14 15:45:38 +08:00
parent 557cc0e2e3
commit 7b3444c366
716 changed files with 10378 additions and 7709 deletions
+46
View File
@@ -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",
]