Skip to content

memcache API

phoenixide edited this page Jun 20, 2022 · 1 revision

utils/memcache

get

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

Type: function

Parameters

  • key String key for which we need to get value

Returns Promise resolve promise to get return value

deleteKey

This is a description of the deleteKey function. This function helps to delete key and value stored in MemCache

Type: function

Parameters

  • key String key to be deleted

Returns Promise resolve promise to get return value

put

This is a description of the put value function. This function helps to put value to MemCache

Type: function

Parameters

  • key String key for which we need to put value
  • value Object value to be put in MemCache
  • ttl Number ttl value

Returns Promise resolve promise to get return value

close

This function helps to close the connection

Type: function

Clone this wiki locally