route-cache
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -19,3 +19,3 @@ var Eidetic = require('eidetic'); | ||
var body = string instanceof Buffer ? string.toString() : string; | ||
cachestore.put(req.path, body, ttl); | ||
cachestore.put(req.url, body, ttl); | ||
send.call(this, body); | ||
@@ -26,2 +26,2 @@ }; | ||
} | ||
}; | ||
}; |
{ | ||
"name": "route-cache", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "express middleware for caching your routes", | ||
@@ -22,3 +22,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"eidetic": "0.1.1" | ||
"eidetic": "0.1.1" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
@@ -9,2 +9,7 @@ # Route-Cache | ||
## Install | ||
```sh | ||
npm install route-cache | ||
``` | ||
## How to use | ||
@@ -25,10 +30,10 @@ ```javascript | ||
### Future plans / todos | ||
## Future plans / todos | ||
- tests (via mocha & supertest) | ||
- client-side Cache-Control | ||
- support for distributed caches (redis or memcache) | ||
- accomodate for "Dog piling" when routes logic is extra slow | ||
- accomodate for "Dog piling/thundering herd" when routes logic is extra slow | ||
#### License | ||
------ | ||
The MIT License (MIT) | ||
@@ -54,2 +59,2 @@ | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
SOFTWARE. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3308
26
58