Skip to content

Cache point totals to redis#139

Open
nickfreese wants to merge 3 commits intomasterfrom
feature/redis-cache-points-calc
Open

Cache point totals to redis#139
nickfreese wants to merge 3 commits intomasterfrom
feature/redis-cache-points-calc

Conversation

@nickfreese
Copy link
Contributor

This caches point totals in Redis with a timestamp for when they were calculated. points totaling will use the cached points and the timestamp to load in everything since that timestamp and add the new entries to get the current total. Totals are only cached if the last cache entry has expired so it will update from scratch after the entry expires. Alternatively we could make it update the cache each time totaling is run, I'm interested in what y'all think.

Currently I've got the ttl on these Redis entries set at 1 hour out of an abundance of caution, but maybe it should be way longer, like 1 or 2 days?

@nickfreese nickfreese requested review from ejk and taleon July 9, 2025 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments