OdyseeTeam / odysee-api

API server for Odysee
https://odysee.com
MIT License
228 stars 49 forks source link

Improve query cache #395

Closed anbsky closed 2 years ago

anbsky commented 2 years ago

The current JSON-RPC query result cache doesn't have any eviction mechanism and wasn't designed with high current load in mind. This adds a more sophisticated caching library, changes caching logic to do retrieval in one go instead of separate retrieve + save and adds protection against cache stampede.

Closes #394.