add: chongming-cache 统一缓存工具(diskcache / redis 双后端,dict-like 接口)

This commit is contained in:
2026-08-17 15:07:29 +08:00
commit ee1a370ee5
11 changed files with 905 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
name = "chongming-cache"
version = "0.1.0"
description = "统一缓存封装:兼容 diskcache / redis 后端"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"diskcache>=5.6.3",
"redis>=5.0.0",
]
[dependency-groups]
dev = [
"pytest>=8.0.0",
"fakeredis>=2.28.0",
]
[tool.hatch.build.targets.wheel]
packages = ["src/chongming_cache"]