DotNetClasses icon indicating copy to clipboard operation
DotNetClasses copied to clipboard

Reduce Redis EXPIRE calls using CustomRedisSessionStoreCustom redis session store

Open claudiamurialdo opened this issue 1 month ago • 2 comments

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

claudiamurialdo avatar Nov 03 '25 14:11 claudiamurialdo

Cherry pick to beta success
  • bb0f2a91
  • 45736658
  • dc5bb969

genexusbot avatar Nov 03 '25 14:11 genexusbot

Cherry pick to beta success
  • ae2acb21

genexusbot avatar Nov 28 '25 20:11 genexusbot

Cherry pick to beta success
  • b36fa689

genexusbot avatar Dec 11 '25 12:12 genexusbot