summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-09-25 07:36:37 -0500
committerCraig Jennings <c@cjennings.net>2025-09-25 07:36:37 -0500
commit4d8973dcc5c3c3d043011e67c8d4e9d581df6a43 (patch)
treed6aa9805349d7bfa42326ac0e6096d09b982b007 /assets
parent5b6cb1c970d3bd082743cd37148287f322b0b8fa (diff)
Add caching system for weather dataHEADmain
Implement a caching mechanism to reduce API calls and improve performance. The cache stores weather data with configurable TTL (15 minutes default) and automatic cleanup when exceeding max entries (50 default). - Add cache configuration options for TTL and max entries - Store fetched data with timestamps in hash table - Add force refresh functionality with 'r' key binding - Implement automatic cache cleanup to prevent unbounded growth - Fall back to stale cache on network errors - Also, fixed URL parameter concatenation in fetch function
Diffstat (limited to 'assets')
0 files changed, 0 insertions, 0 deletions