IDEMPOTENCY
v0.1.0 — Idempotency-Key middleware — one-shot result caching for mutating requests.
$ hyper add idempotency
Copies 3 files into src/hyper/idempotency/ and updates hyper.lock.json.
DEPS
- registry: core
FILES
- idempotency/index.ts
- idempotency/sqlite.ts
- idempotency/store.ts
README
@hyper/idempotency
Idempotency-Key middleware — one-shot result caching for mutating requests.
Install
Components are installed as source into your repo, not pulled from npm:
bunx hyper add idempotency
Wires the alias @hyper/idempotency to src/hyper/idempotency/ (configurable in hyper.config.json). See hyperjs.ai for the full registry.
Usage
import { Hyper } from "@hyper/core"
import { idempotency } from "@hyper/idempotency"
export default new Hyper()
.use(idempotency())
.listen(3000)
Docs
See the main README and docs/ for guides and integration recipes.
License
MIT
MANIFEST
- /r/idempotency.json — latest
- /r/idempotency@0.1.0.json — immutable