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

Class sum

redis/commands/search/reducers.py:25–33  ·  view source on GitHub ↗

Calculates the sum of all the values in the given fields within the group

Source from the content-addressed store, hash-verified

23
24
25class sum(FieldOnlyReducer):
26 """
27 Calculates the sum of all the values in the given fields within the group
28 """
29
30 NAME = "SUM"
31
32 def __init__(self, field: str) -> None:
33 super().__init__(field)
34
35
36class min(FieldOnlyReducer):

Calls

no outgoing calls