@delon/cache

中文文档
22.2.0发布于 2026/10/29MITTypeScriptES Module近 30 天下载 5840

Cache the dictionary, city data etc.

原始使用文档
文档目录4 节
  1. Links
  2. Architecture
  3. Troubleshooting
  4. License

@delon/cache CI Codecov NPM version

Cache the dictionary, city data etc.

Architecture

Architecture

Troubleshooting

Please follow this guidelines when reporting bugs and feature requests:

  1. Use GitHub Issues board to report bugs and feature requests (not our email address)
  2. Please always write steps to reproduce the error. That way we can focus on fixing the bug, not scratching our heads trying to reproduce it.

Thanks for understanding!

License

The MIT License (see the LICENSE file for the full text)

版本与发布记录

@delon/cache 共发布 277 个版本,首次发布于 2018/01/08;过去 12 个月发布了 16 个版本。

版本发布日期距今
22.2.0latest2026/10/2913 天前
22.1.12026/09/261 个月前
22.1.02026/09/261 个月前
22.0.02026/09/112 个月前
22.0.0-next.1next2026/09/012 个月前
21.3.02026/06/164 个月前

关于 @delon/cache 的常见问题

@delon/cache 是什么?

Cache the dictionary, city data etc.

如何安装 @delon/cache?

在项目目录运行 npm install @delon/cache,或使用 pnpm add / yarn add / bun add。

@delon/cache 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@delon/cache 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@delon/cache 可以商用吗?

@delon/cache 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@delon/cache 的下载量有多少?

根据 npm 官方下载统计,@delon/cache 在 2026/10/12 – 2026/11/10 这 30 天内被下载 5,840 次,日均约 195 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@delon/cache 还在维护吗?

最新版本 22.2.0 发布于 2026/10/29(13 天前);至今共发布 277 个版本,其中过去 12 个月发布了 16 个;首次发布于 2018/01/08。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。