We wanted to update the session, as new role granted for the user. We can achieve this with the combination of findByIndexNameAndIndexValue methond and by setting RedisOperationsSessionRepository on IMMEDIATE flush mode. Since we can't call save, due to the package access of RedisSession. But I think its not necessary to convert to IMMEDIATE just for this purpose.
Would it be possible to provide a method like setAttributeImmidiate(sessionId, name, value) on RedisOperationsSessionRepository?