jantman / gw2copilot

A Python-based GuildWars2 helper tool
GNU Affero General Public License v3.0
4 stars 1 forks source link

Cache TTL #20

Closed jantman closed 7 years ago

jantman commented 8 years ago

Add TTL support to CachingAPIClient._get(); we should be able to specify a TTL in seconds to the _get() call, and only serve the file from disk if it's newer than the TTL.