@mimik/cache-helper

2.0.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @mimik/cache-helper

Weekly Downloads

17

Version

2.0.1

License

MIT

Unpacked Size

6.13 kB

Total Files

7

Last publish

Collaborators

  • sasan.raisdana
  • miburger
  • hofachiang
  • mimik-npm-editor
  • mimikopensource