cosmicds / cds-api

API for accessing the CosmicDS database
GNU General Public License v3.0
0 stars 3 forks source link

Cache valid API keys #99

Closed Carifio24 closed 11 months ago

Carifio24 commented 11 months ago

This PR adds a map of API keys that the server has found to be valid and stores them locally. This gives us the benefit of improved performance (no need for a database query) while still allowing the database to be persistent storage. If the server is reset/a new server is spun up, it can just build up the cache as it gets requests.

A few notes: