MCPcopy
hub / github.com/redis/redis-py / suglen

Method suglen

redis/commands/search/commands.py:1633–1639  ·  view source on GitHub ↗

Return the number of entries in the AutoCompleter index. For more information see `FT.SUGLEN <https://redis.io/commands/ft.suglen>`_.

(self, key: str)

Source from the content-addressed store, hash-verified

1631 return pipe.execute()[-1]
1632
1633 def suglen(self, key: str) -> int:
1634 """
1635 Return the number of entries in the AutoCompleter index.
1636
1637 For more information see `FT.SUGLEN <https://redis.io/commands/ft.suglen>`_.
1638 """ # noqa
1639 return self.execute_command(SUGLEN_COMMAND, key)
1640
1641 def sugdel(self, key: str, string: str) -> int:
1642 """

Calls 1

execute_commandMethod · 0.45

Tested by 4

test_auto_completeMethod · 0.64
test_auto_completeMethod · 0.64