@mimik/cache-helper
v2.0.1
Published
Cache helper for mimik microservices
Downloads
6
Readme
cache-helper
Example
const { rpCache } = require('@mimik/cache-helper');
cache-helper~rpCached(type, options) ⇒ Promise
Make a cached request.
Kind: inner method of cache-helper
Returns: Promise - .
Category: async
Throws:
- Promise Will throw the same error than
rpAuth
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. |