x-ray-http-cache
http-cache driver for x-ray.
Uses superagent-cache for caching.
See it's documentation for supported caching drivers.
Installation
npm install x-ray-http-cache --save
Usage
var httpCache = ; // using redis for cachingvar redisModule = ; var redisCache = redisUrl: 'http://localhost:6379'; var Xray = ; var x = ; { console; // close connection to redis when finished redisCachedb;};
Throttle
It's currently not possible to determine whether or not to throttle based on cache.
However if you are sure the cache is already populated you can reset throttling using:
x;
License
MIT