netsleuth/tests/__pycache__/test_speed_math.cpython-314-pytest-9.1.1.pyc
qwen.ai[bot] 72fb8d0320 Add caching mechanism and fix cleanup logic in IP geolocation module
- Added LRU cache implementation with hourly invalidation for API responses in src/netsleuth/ip_geo.py
- Implemented _cached_json function with automatic cache cleanup and TTL management
- Fixed cache cleanup logic to properly remove expired entries based on timestamp
- Updated .gitignore to exclude the modified ip_geo.py file from tracking
- Enhanced API request efficiency through caching while maintaining data freshness requirements
2026-08-12 13:26:53 +00:00

91 KiB