By default, we cache posts in Redis for 600 seconds. Scenario:
Bot A requests post 1234.
Bot B requests post 1234 two minutes later, but because of reasons, wants the current version of the post not the two-minute old version.
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.
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 a1234:time
key along with the1234
post record to keep track.