MVC, SessionState, Session Lock , Microsoft.Web.Redis.RedisSessionStateProvider
先前提到MVC設成ReadOnly, request會不會被sessionLock取決於provider的實作。
Microsoft.Web.Redis.RedisSessionStateProvider 在ReadOnly的情況就會等待Lock解除才取得到session資料。
如果想要調整成不用確認Lock的話,可以下載github的程式碼。
針對RedisConnectionWrapper.cs 的 readLockAndGetDataScript 的字串
將字串上方writeLockValue 的處理註解掉就可。