Code Monkey home page Code Monkey logo

koa-boost's Introduction

koa-boost

Greenkeeper badge

travis-ci status coverage status npm version Standard - JavaScript Style Guide

Cache middleware for koa.

Installation

npm install koa-boost --save

Usage

Store Cache in Application Memory
const Koa = require('koa')
const boost = require('koa-boost')

const app = new Koa()
app.use(boost({
  pattern: '/api/*',
  ttl: 60 // 60 seconds
}));
Use Redis as Cache Provider
const Koa = require('koa')
const boost = require('koa-boost')
const Redis = require('ioredis')

const app = new Koa()
const redis = new Redis()
app.use(boost({
  provider: redis,
  pattern: '/api/*',
  ttl: 60 // 60 seconds
}));

Options

  • pattern {string|array} — pattern to match incoming request paths against. Supports glob matching and other features provided by highly optimized wildcard and glob matching library micromatch. Defaults to null — all requests will be cached.
  • ttl {integer} — time in seconds that cached response should remain in the cache. Defaults to 60 seconds.

koa-boost's People

Contributors

fortis avatar greenkeeper[bot] avatar

Stargazers

 avatar

Watchers

 avatar

koa-boost's Issues

An in-range update of koa is breaking the build 🚨

Version 2.5.0 of koa was just published.

Branch Build failing 🚨
Dependency koa
Current Version 2.4.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

koa is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 12 commits.

  • 916f914 Release 2.5.0
  • 3c23aa5 feat: ignore set header/status when header sent (#1137)
  • 0923ef6 run coverage using --runInBand (#1141)
  • e544012 [Update] license year to 2018 (#1130)
  • a64e4ae docs: small grammatical fix in api docs index (#1111)
  • e5db6a9 docs: fixed typo (#1112)
  • c2615ec docs: capitalize K in word koa (#1126)
  • 6baa411 Error handling: on non-error throw try to stringify if error is an object (#1113)
  • 53bea20 Use eslint-config-koa (#1105)
  • 9068316 Update mgol's name in AUTHORS, add .mailmap (#1100)
  • 79c3c73 Avoid generating package locks instead of ignoring them (#1108)
  • 841844e chore: update copyright year to 2017 (#1095)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of micromatch is breaking the build 🚨

Version 3.1.3 of micromatch was just published.

Branch Build failing 🚨
Dependency micromatch
Current Version 3.1.2
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

micromatch is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 3 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of sinon is breaking the build 🚨

Version 4.0.1 of sinon just got published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.0.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As sinon is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 16 commits.

  • ec9126c Update docs/changelog.md and set new release id in docs/_config.yml
  • 1222a0f Add release documentation for v4.0.1
  • 1bf1f2d 4.0.1
  • 1545c26 Update History.md and AUTHORS for new release
  • e9fab2d Merge pull request #1579 from fatso83/upgrade-deps
  • f2252b4 Upgrade nise and lolex versions
  • d81a937 Fix doc typo: scenarious -> scenarios
  • af3a645 Merge pull request #1577 from evan-007/fix_doc_typo
  • 7c9c881 Remove extra backtick from fake-xhr-and-server docs
  • cf9bf05 Merge pull request #1575 from mroderick/tidy-up-docs
  • 2e8abad Remove obsoleted lib/sinon/sandbox-stub.js
  • 28e70d1 Use an include for migration guides
  • 3c68adc Move migration guides to new section
  • 6197ff3 Merge pull request #1565 from fatso83/patch-docs
  • dfb9ee6 Add migration guide for 4.0

There are 16 commits in total.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of joi is breaking the build 🚨

Version 11.2.0 of joi was just published.

Branch Build failing 🚨
Dependency joi
Current Version 11.1.1
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

joi is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 6 commits.

  • c5741ff 11.2.0
  • bdc7d02 Merge pull request #1308 from wswoodruff/add-func-class-validation
  • 60852a2 Add Joi.func().class()
  • 15810d6 Move Func in its own file
  • 27e340b Fixes #1246 by hardcoding timezone
  • c1cd0a3 Fix use of global joi in extension doc

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of mocha is breaking the build 🚨

Version 4.1.0 of mocha was just published.

Branch Build failing 🚨
Dependency mocha
Current Version 4.0.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v4.1.0

4.1.0 / 2017-12-28

This is mainly a "housekeeping" release.

Welcome @Bamieh and @xxczaki to the team!

🐛: Fixes

  • #2661: progress reporter now accepts reporter options (@canoztokmak)
  • #3142: xit in bdd interface now properly returns its Test object (@Bamieh)
  • #3075: Diffs now computed eagerly to avoid misinformation when reported (@abrady0)
  • #2745: --help will now help you even if you have a mocha.opts (@Zarel)

🎉 Enhancements

  • #2514: The --no-diff flag will completely disable diff output (@CapacitorSet)
  • #3058: All "setters" in Mocha's API are now also "getters" if called without arguments (@makepanic)

📖 Documentation

🔩 Other

Commits

The new version differs by 409 commits.

  • 6b9ddc6 Release v4.1.0
  • 3c4b116 update CHANGELOG for v4.1.0
  • 5be22b2 options.reporterOptions are used for progress reporter
  • ea96b18 add .fossaignore [ci skip]
  • adc67fd Revert "[ImgBot] optimizes images (#3175)"
  • ae3712c [ImgBot] optimizes images (#3175)
  • 33db6b1 Use x64 node on appveyor
  • 4a6e095 Run appveyor tests on x64 platform. Might enable sharp installation
  • 3abed9b Lint netlify-headers script
  • 119543e Add preconnect for doubleclick domain that google analytics results in contacting
  • bd5109e Remove crossorigin='anonymous' from preconnect hints. Only needed for fonts, xhr and es module loads
  • 123ee4f Handle the case where all avatars are already loaded at the time when the script exexecutes
  • 64deadc Specific value for inlining htmlimages to guarantee logo is inlined
  • 8f1ded4 https urls where possible
  • d5a5125 Be explicit about styling of screenshot images

There are 250 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of joi is breaking the build 🚨

Version 11.3.2 of joi was just published.

Branch Build failing 🚨
Dependency joi
Current Version 11.3.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

joi is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of mocha-junit-reporter is breaking the build 🚨

Version 1.16.0 of mocha-junit-reporter was just published.

Branch Build failing 🚨
Dependency mocha-junit-reporter
Current Version 1.15.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

mocha-junit-reporter is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of joi is breaking the build 🚨

Version 13.0.2 of joi was just published.

Branch Build failing 🚨
Dependency joi
Current Version 13.0.1
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

joi is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 5 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ioredis-mock is breaking the build 🚨

Version 3.1.2 of ioredis-mock was just published.

Branch Build failing 🚨
Dependency ioredis-mock
Current Version 3.1.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

ioredis-mock is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v3.1.2
  • Fixed: Fixed hexists edge cases (#331)
Commits

The new version differs by 1 commits.

  • b392026 Fix: Fixed hexists edge cases (#331)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of micromatch is breaking the build 🚨

Version 3.1.5 of micromatch was just published.

Branch Build failing 🚨
Dependency micromatch
Current Version 3.1.4
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

micromatch is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ioredis-mock is breaking the build 🚨

Version 3.1.1 of ioredis-mock was just published.

Branch Build failing 🚨
Dependency ioredis-mock
Current Version 3.1.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

ioredis-mock is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v3.1.1
  • Fixed: Ignore codeclimate
Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of sinon is breaking the build 🚨

Version 4.0.2 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.0.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 21 commits.

  • 39e5737 Update docs/changelog.md and set new release id in docs/_config.yml
  • c2bd7b1 Add release documentation for v4.0.2
  • da24e94 4.0.2
  • cea60e8 Update History.md and AUTHORS for new release
  • d4dcfca Document the stub.reset breaking change (#1590)
  • aab1917 Merge pull request #1596 from mroderick/fix-preversion-to-use-history.md
  • 5dbe685 Update 'nise' to latest version (#1593)
  • 578b9ea Update History.md and AUTHORS for new release
  • 499b698 Fix preversion.sh to stage History.md
  • 1e5fd0f Remove unneeded characters
  • 2a69d51 fix typo in contributing
  • 6cc71ec Document how to trigger progress events (#1585)
  • e49fcf1 Fix broken test-coverage task
  • 527086a Use supports-color module to test if system supports colors
  • 78782b4 Merge pull request #1580 from mroderick/dependency-hygeine

There are 21 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of mocha is breaking the build 🚨

Version 4.0.1 of mocha was just published.

Branch Build failing 🚨
Dependency mocha
Current Version 4.0.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v4.0.1

4.0.1 / 2017-10-05

🐛 Fixes

Commits

The new version differs by 6 commits.

  • eb8bf8d Release v4.0.1
  • 3b485ea update CHANGELOG.md for v4.0.1 [ci skip]
  • 96e5c1a upgrade eslint to v4.8.0
  • d7cff37 Update growl to 1.10.3
  • 0cdd921 remove preversion script; test on publish; closes #2999
  • f49c0ce Fix changelog issues/pr URLs (#3047)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of sinon is breaking the build 🚨

Version 4.1.2 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.1.1
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 7 commits.

  • 12567cf Update docs/changelog.md and set new release id in docs/_config.yml
  • 2af9818 4.1.2
  • 164fd2e Update History.md and AUTHORS for new release
  • 8de60ac Update Lolex to include fix for #872
  • bcc6960 Remove deprecated methods from documentation (#1613)
  • ec3f489 Ignore coveralls module when checking for unused dependencies
  • 5693d38 Prefer node 8 for single run tests in Travis CI

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of ioredis-mock is breaking the build 🚨

Version 3.1.0 of ioredis-mock just got published.

Branch Build failing 🚨
Dependency ioredis-mock
Current Version 3.0.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As ioredis-mock is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v3.1.0

New features

Add pipelining with method chaining (#312 @funnisimo)

Added a 'pipeline' method which allows chaining of methods like ioredis.

Updated discard and multi to work with the pipeline.

Commits

The new version differs by 3 commits.

  • d5c8f02 Changelog: 🚀
  • f6d87ee Chore: Update changelog
  • 8368c2b Feat: Add pipelining with method chaining (#312 @funnisimo )

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of mocha-junit-reporter is breaking the build 🚨

Version 1.15.0 of mocha-junit-reporter just got published.

Branch Build failing 🚨
Dependency mocha-junit-reporter
Current Version 1.14.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As mocha-junit-reporter is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this 💪

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 2 commits.

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

An in-range update of nyc is breaking the build 🚨

Version 11.4.1 of nyc was just published.

Branch Build failing 🚨
Dependency nyc
Current Version 11.4.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

nyc is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 3 commits.

  • b473820 chore(release): 11.4.1
  • 4e4f428 fix: explicitly update spawn-wrap (#748)
  • 456fa20 docs: hide the header in the issue template on render [skip ci] (#731)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.