Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

add caching based on lat/lon with a configurable timeout #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arimus
Copy link

@arimus arimus commented Nov 7, 2019

Was looking to prevent unnecessary lookups to the Dark Sky servers for both performance and cost reasons. For many use cases, this type of data doesn't need to be frequently updated.

FYI, from my local tests this changed the response time for cached responses from ~615ms to ~1. It's not a very robust cache, nor does it clean-up after itself atm. But given the type of data and the fact that it's optional should make it relatively safe to integrate.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant