ChatiumFor developersPlaygroundPricing
Sign in

listSet

The addToSet method returns all the elements of the set stored under the specified key.

Parameters

  • key : string - the key under which the set is stored.

Return Value

Promise<string[]>

The return type is a response that is an array of strings, representing all the elements of the set.

Example Request

const members = await listSet('mySetKey')