alexsherman / leeg

2 stars 0 forks source link

Redis integration #39

Closed alexsherman closed 5 years ago

alexsherman commented 5 years ago

Not ready yet. First pass at integrating redis into service. Right now its not very smart. It's serializing/deserializing each req service right now, but I think we can do it without ser/de if we store desired particular vectors separately (or could learn to use ToRedisArgs trait but that shit look like a mess tbh).

Also, each req service stores a copy of its champions, which is much bigger than the score vector. I want to change it so that champions.rs exposes a single shared, immutable, always-same-order Champions and remove that as an object from all of the services.

Then finally I still have to make the service actually check redis for the stuff it wants.