FT.DICTADD

Syntax
FT.DICTADD dict term [term ...]
Available in:
Redis Stack / Search 1.4.0
Time complexity:
O(1)

向字典中添加术语

示例

必需的参数

dict

是字典名称。

term

要添加到字典中的术语。

返回

FT.DICTADD 返回一个整数回复,表示添加的新术语的数量。

示例

Add terms to a dictionary
127.0.0.1:6379> FT.DICTADD dict foo bar "hello world"
(integer) 3

另请参阅

FT.DICTDEL | FT.DICTDUMP

RediSearch


RATE THIS PAGE
Back to top ↑