FT.DICTADD dict term [term ...]

Available in: Redis Stack

Time complexity: O(1)

Adds terms to a dictionary.

Parameters

  • dict: the dictionary name.

  • term: the term to add to the dictionary.

Return

Integer reply - the number of new terms that were added.

Examples

redis> FT.DICTADD dict foo bar "hello world"
(integer) 3