riderlogs is an unbounded RPUSH-only list (929K+ entries as of writing, ~650MB), which is why getriderlogs needed a longer timeout in v2.7.58. Adds a CronJob that runs daily at 3am IST, binary-searches for the 90-day retention cutoff (the list is append-ordered so roughly chronological), and LTRIMs anything older. Binary search avoids scanning the full list - ~20 LINDEX calls instead of pulling 900K+ entries. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
3.9 KiB
3.9 KiB