Cache middleware for Hoa.
$ npm i @hoajs/cache --saveimport { Hoa } from 'hoa'
import { cache } from '@hoajs/cache'
const app = new Hoa()
app.use(cache())
app.use(async (ctx) => {
ctx.res.body = `Hello, Hoa!`
})
export default appThe documentation is available on hoa-js.com
$ npm testMIT