Fix redis config
Fix concurrent modification with memory state
Use ExtendedStateFactory