Koa Query String LRU
By default, Koa uses the native querystring
module which does not provide nesting support and caches parsed results in a plain object regardless of his size.
This pathes a Koa app with:
- qs (a querystring parsing and stringifying library with some added security)
- lru-cache (a cache object that deletes the least-recently-used items)
Installation
$ npm install --save koa-qs-lru
Usage
var koa = var qs = ; // qs & lru-cache default settingsvar app = ; // custom settingsvar app = ;
Check qs and lru-cache packages for API documentation.
Example
var koa = var qs = ; var app = ; app; app;