Release v3.6.0 - Release data cache with configurable TTL and Redis support
Features
- Release data cache to bypass HTTP requests for cached repos (#166)
- Configuration file support (
~/.config/lastversion.yml) - Optional Redis cache backend (
pip install lastversion[redis]) - Automatic cache cleanup with configurable interval
- Network fallback: use stale cache when API fails or rate limits exceeded
- Cache CLI commands:
lastversion cache info,lastversion cache cleanup --cache-ttlCLI option to override cache TTL per-request- Bandit security scanning in pre-commit hooks
Fixes
- Config singleton now uses deep copy to prevent shared state between instances
Configuration Example
# ~/.config/lastversion.yml
cache:
release_cache:
enabled: true
ttl: 3600 # 1 hour
backend: file # or 'redis'
file:
max_age: 86400 # 24 hours