diff options
| author | Craig Jennings <c@cjennings.net> | 2025-09-25 07:36:37 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-09-25 07:36:37 -0500 |
| commit | 4d8973dcc5c3c3d043011e67c8d4e9d581df6a43 (patch) | |
| tree | d6aa9805349d7bfa42326ac0e6096d09b982b007 /LICENSE | |
| parent | 5b6cb1c970d3bd082743cd37148287f322b0b8fa (diff) | |
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 'LICENSE')
0 files changed, 0 insertions, 0 deletions
