steamcmd / api

Read-only API interface for steamcmd app_info
https://www.steamcmd.net
MIT License
56 stars 7 forks source link

Leverage key/value caching #4

Closed jonakoudijs closed 3 years ago

jonakoudijs commented 4 years ago

To avoid executing steamcmd everytime (even though info for the same number is requested a few times in a few seconds), caching should be added. Heroku offers a free tier of redis.

Add caching to info request, use a ttl (ex. 5 minutes) and add cache information. For example:

{
  "status" : "success",
  "data"   : {
    "740" : { ... },
  "cache" : true
}
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.