cache-helper
Example
const { rpCache } = require('@mimik/cache-helper');
Promise
cache-helper~rpCached(type, options) ⇒ Make a cached request.
Kind: inner method of cache-helper
Returns: Promise
- .
Category: async
Throws:
-
Promise
Will throw the same error thanrpAuth
of@mimik/oauth-helper
.
Requires: module:@mimik/oauth-helper
, module:@mimik/rediser
, module:@mimik/sumologic-winston-logger
Fulfil: object
- Response of the rpAuth
of @mimik/oauth-helper
request.
Param | Type | Description |
---|---|---|
type | string |
Type of micro-service to request. |
options | object |
Options for the request. Similar to rpAuth of @mimik/oauth-helper options. |