Skip to content

@codesoul-co/hypha-serving-cache API

Serving Cache Key、Store、Policy 与缓存协调。

  • 安装: npm install @codesoul-co/hypha-serving-cache@1.0.1
  • 入口导入: import { ... } from '@codesoul-co/hypha-serving-cache';
  • 公共导出: 64
  • 源码模块: 10

导出概览

种类数量
8
接口23
函数15
常量7
类型11

源码模块

模块用途导出数源码
cache-manager用于读写或协调缓存状态。Cache manager 模块公开 2 类、1 接口。3source
key用于使用该功能边界的公共契约与操作。Key 模块公开 6 函数。6source
middleware/llm-cache-middleware用于读写或协调缓存状态。Llm cache middleware 模块公开 1 类、2 函数。3source
policies用于使用该功能边界的公共契约与操作。Policies 模块公开 1 常量、3 函数。4source
prefix-shape用于使用该功能边界的公共契约与操作。Prefix shape 模块公开 1 类、1 接口。2source
schemas用于声明并运行时校验契约。Schemas 模块公开 6 常量、4 函数。10source
stores/memory-store用于持久化并读取该边界的数据。Memory store 模块公开 2 类。2source
stores/redis-store用于持久化并读取该边界的数据。Redis store 模块公开 1 类、2 接口。3source
stores/sqlite-store用于持久化并读取该边界的数据。Sqlite store 模块公开 1 类、1 接口。2source
types用于声明并运行时校验契约。Types 模块公开 18 接口、11 类型。29source

导入边界

本页只记录 @codesoul-co/hypha-serving-cache 包入口导出的公共 API。packages/serving-cache/src 中未由入口导出的实现不属于该 npm 包的公共契约。