SOBotics / apicache

Caches SE API responses to save on requests
8 stars 2 forks source link

Add support for custom 'freshness' values #2

Closed ArtOfCode- closed 7 years ago

ArtOfCode- commented 7 years ago

By default, we cache posts in Redis for 600 seconds. Scenario:

Bot B should be able to send a freshness parameter indicating the maximum acceptable age of posts returned to it. Since Redis doesn't record insert times, we'll probably need to write a 1234:time key along with the 1234 post record to keep track.