| 123456789101112131415161718 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- """
- 缓存管理模块
- 使用方式:
- from foundation.observability.cachefiles import cache, CacheBaseDir
- # 保存数据(必须指定根目录,文件名自动使用变量名)
- catogues_result = {"key": "value"}
- cache.document_temp(catogues_result, base_cache_dir=CacheBaseDir.CONSTRUCTION_REVIEW)
- # → temp/construction_review/document_temp/catogues_result.json
- """
- from .cache_manager import cache, CacheBaseDir
- __all__ = ["cache", "CacheBaseDir"]
|