DotNetClasses
DotNetClasses copied to clipboard
Reduce Redis EXPIRE calls using CustomRedisSessionStoreCustom redis session store
Replaces the default RedisCache behavior (https://github.com/dotnet/aspnetcore/blob/main/src/Caching/StackExchangeRedis/src/RedisCache.cs) , which refreshes the session TTL on every access to the web session, with a custom implementation that renews it only when near expiry (below 20% of the idle timeout). This reduces redundant EXPIRE calls and Redis roundtrips while maintaining consistent session expiration behavior.
Issue:206131
Cherry pick to beta success
- bb0f2a91
- 45736658
- dc5bb969
Cherry pick to beta success
- ae2acb21
Cherry pick to beta success
- b36fa689