3.0.0 • Published 6 months ago
@mimik/cache-helper v3.0.0
cache-helper
Example
import { rpCache } from '@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
rpAuthof@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. |