Skip to content

cache API

phoenixide edited this page Jun 20, 2022 · 1 revision

cache

putToCache

This function helps to store value in Cache

Type: function

Parameters

  • key String key to be put
  • value Object value to be stored in the key
  • ttl Number time in seconds

Returns Promise promise which says put successful or not

getValueFromCache

This is a description of the getValueFromCache function. This function helps to get value stored in Cache

Type: function

Parameters

  • key String key to be fetched

Returns Promise promise which contains key

deleteKeyFromCache

This is a description of the getValueFromCache function. This function helps to delete key value stored in Cache

Type: function

Parameters

  • key String key to be deleted

Returns Promise promise which contains key

closeCache

This function helps to close open cache

Type: function

Clone this wiki locally