hai-cache

Official

Unified in-memory and Redis caching for speed.

Authorhai-series
Version1.0.0
Installs0

System Documentation

What problem does it solve?

使用 @h-ai/cache 提供统一的内存和 Redis 缓存能力,涵盖 KV、Hash、List、Set、ZSet 以及分布式锁等场景,帮助提升缓存一致性与性能。

Core Features & Use Cases

  • 提供 KV、Hash、List、Set、ZSet 的统一 API,并支持 TTL、持久化和过期策略。
  • 具备分布式锁、集合运算、排行榜等高级缓存场景的能力,适用于分布式应用和多节点环境。
  • 结合 IAM、缓存穿透保护等模式,提升数据访问速度和系统鲁棒性。

Quick Start

通过初始化 cache 模块并配置缓存类型、TTL 与分布式锁,开始使用 hai-cache 的 KV、Hash、List、Set、ZSet 接口以提升应用性能。

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hai-cache
Download link: https://github.com/hai-series/hai-framework/archive/main.zip#hai-cache

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.