UNPKG

@ladjs/koa-cache-responses

Version:

Caching middleware for Koa using koa-cash and route pattern-based matching with path-to-regexp. Made for Lad.

50 lines (28 loc) 1.43 kB
# [**@ladjs/koa-cache-responses**](https://github.com/ladjs/koa-cache-responses) [![build status](https://github.com/ladjs/koa-cache-responses/actions/workflows/ci.yml/badge.svg)](https://github.com/ladjs/koa-cache-responses/actions/workflows/ci.yml) [![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org) [![license](https://img.shields.io/github/license/ladjs/koa-cache-responses.svg)](LICENSE) [![npm downloads](https://img.shields.io/npm/dt/koa-cash.svg)](https://npm.im/koa-cash) > Caching middleware for Koa using `koa-cash` and route pattern-based matching with `path-to-regexp`. Made for [Lad](https://lad.js.org). ## Table of Contents * [Install](#install) * [Usage](#usage) * [Contributors](#contributors) * [License](#license) ## Install [npm][]: ```sh npm install @ladjs/koa-cache-responses ``` ## Usage See [@ladjs/web](https://github.com/ladjs/web) integration. ## Contributors | Name | Website | | -------------- | -------------------------- | | **Nick Baugh** | <http://niftylettuce.com/> | ## License [MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/) ## [npm]: https://www.npmjs.com/