alexsherman / leeg

2 stars 0 forks source link

Create cache for req_service so don't have to regen each request #21

Closed alexsherman closed 5 years ago

alexsherman commented 5 years ago

simple redis cache where keys are summoner ids and values are rust req structs (figure out the ser/de involved). stale time can be a few hours, or a day even - unless you're a new player, your reqs should not be significantly off if they are only missing the current day's games.

alexsherman commented 5 years ago

this that good shit https://github.com/benashford/redis-async-rs

should importantly cache score matrices of global results (winrate of each champ given these partial comps) as well as summoner score services. use least frequently used mode

alexsherman commented 5 years ago

Done the basic shit in the new pr. i'll make follow up issues for the many improvements that can be made