Skip to content

Releases: akrisanov/Reliable.HttpClient

caching/v1.0.1

29 Aug 22:02
caching/v1.0.1
00d97a2
Compare
Choose a tag to compare

🐛 Bug Fix Release

This patch release fixes an important bug where cache presets were not respecting their configured expiry times.

What's Fixed

Cache Preset Expiry Times

  • AddMediumTermCache<T>() now correctly uses 10 minutes (was incorrectly using 5 minutes)
  • AddShortTermCache<T>() now correctly uses 1 minute as documented
  • AddLongTermCache<T>() now correctly uses 1 hour as documented
  • All other cache presets (AddHighPerformanceCache, AddConfigurationCache, etc.) now use their documented expiry times

Root Cause

The GetExpiry function had a hardcoded 5-minute fallback that was overriding the preset configurations. This has been fixed to properly reference the configured DefaultExpiry value.

Important Notes

  • Non-breaking change – this fix corrects behavior to match documentation
  • ✅ Cache-Control headers still take precedence over preset values
  • ✅ All existing functionality continues to work as expected

Full Changelog: caching/v1.0.0...caching/v1.0.1

caching/v1.0.0

29 Aug 15:23
caching/v1.0.0
21c9e16
Compare
Choose a tag to compare

🚀 What's New in v1.0.0

  • 6 Cache Presets for common scenarios: ShortTerm, MediumTerm, LongTerm, HighPerformance, etc.
  • One-Line Setup Methods: AddShortTermCache, AddMediumTermCache, AddLongTermCache, etc.
  • Combined Resilience+Caching APIs: AddResilienceWithCaching, AddResilienceWithMediumTermCache
  • Automatic IMemoryCache Registration – no manual setup required

✨ Developer Experience

  • Reduced configuration complexity from ~10 lines to 1 line (80% reduction)
  • Setup time reduced from 15-30 minutes to 2-5 minutes

🔧 Advanced Features

  • Smart Cache Keys with SHA256 hashing for security
  • HTTP Cache-Control headers support
  • Custom cache providers support (Redis, SQL, etc.)
  • Memory cache and custom cache providers
  • Cache invalidation and management APIs
  • Multi-Target Support – .NET 6.0, 8.0, and 9.0

caching/v1.0.0-alpha1

29 Aug 12:06
caching/v1.0.0-alpha1
30b4356
Compare
Choose a tag to compare
caching/v1.0.0-alpha1 Pre-release
Pre-release

HTTP response caching extension for Reliable.HttpClient.

Features

  • Automatic HTTP response caching with configurable rules
  • Secure SHA256-based cache keys with collision prevention
  • Memory cache & custom providers (Redis, etc.)
  • Seamless integration with resilience policies
  • Manual cache management (invalidation, clearing)

Installation

dotnet add package Reliable.HttpClient.Caching --version 1.0.0-alpha1

Documentation