Search before asking
Motivation
When using TS.RANGE/TS.MRANGE for range queries, it supports specifying twa (time-weighted average) as the aggregator
Redis reference:
https://redis.io/docs/latest/commands/ts.range/
Twa details
Solution
Refer to others aggregator like sum, avg
Refer to this code snippets
Are you willing to submit a PR?