hile-ioredis
Installation
SKILL.md
@hile/ioredis SKILL
本文档规范 @hile/ioredis 的使用方式,确保 Redis 客户端生命周期由 Hile 统一管理。
1. 架构概览
@hile/ioredis 提供一个默认导出的 Hile 服务:
- 使用环境变量构建 ioredis 客户端
- 首次加载时建立连接并等待
connect - 进程退出时调用
client.disconnect()
依赖:@hile/core、ioredis。
2. 环境变量
| 变量 | 说明 |
|---|---|
REDIS_HOST |
Redis 主机 |
Related skills
More from cevio/hile
hile-http
@hile/http 的代码生成与使用规范。适用于路由、控制器、中间件、文件系统自动路由及与 @hile/core 的集成场景。
21hile-core
@hile/core 的代码生成与使用规范。适用于定义/加载 Hile 服务、生命周期编排、依赖图与容器事件相关场景。
20hile-cli
@hile/cli 的强约束生成规范。适用于 boot 编排、启动流程、容器事件日志与退出阶段管理。
18hile-typeorm
@hile/typeorm 的代码生成与使用规范。适用于 DataSource 服务加载、transaction 事务封装、及与 @hile/core/@hile/cli 集成场景。
18hile-monorepo
引导 AI 在本仓库或使用 Hile 的项目中,正确选用并遵守各 Hile 模块的约束与用法。编辑/生成涉及 @hile/* 或 create-hile 的代码时必读。凡依赖 @hile/http-next 的应用须同时严格遵守 packages/http-next/SKILL.md 全文,不得选择性遵守。
10message-loader
Code generation and contribution rules for @hile/message-loader. Use when editing this package or when the user asks about @hile/message-loader patterns or API.
1