API Docs for: 0.2.1
Show:

Hook.KeyValues Class

Module: Hook

Item Index

Methods

Methods

get

(
  • key
  • callback
)
Promise

Parameters:

  • key String
  • callback Function

Returns:

Promise:

Example:

Get a key value

client.keys.get('my-custom-key', function(key) {
  console.log(key.value);
});

set

(
  • key
  • value
)
Promise

Parameters:

  • key String
  • value String | Number

Returns:

Promise:

Example:

Set a key value

client.keys.set('my-custom-key', 'custom value').then(function(key) {
  console.log(key);
});