FT.DICTADD
Syntax
FT.DICTADD dict term [term ...]
- Available in:
- Redis Open Source / Search 1.4.0
- Time complexity:
- O(1)
- ACL categories:
-
@search, - Compatibility:
- Redis Enterprise and Redis Cloud compatibility
Add terms to a dictionary
Required arguments
dict
is dictionary name.
term
term to add to the dictionary.
Examples
Add terms to a dictionary
127.0.0.1:6379> FT.DICTADD dict foo bar "hello world"
(integer) 3Redis Enterprise and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud Flexible & Annual |
Redis Cloud Free & Fixed |
Notes |
|---|---|---|---|
| ✅ Supported | ✅ Supported | ✅ Supported |
Return information
Integer reply: the number of new terms added to the dictionary.