Need to add global variable in REDIS Cache. For Ex: Consider an student, employee and Staff related application. Every role has a unique object. When student log in to the application we need to get student information from redis. Same for other roles log in too.
If we store all the details at time of application initialization, we no need to send request to get role related details. If we store it into session, that data will be checking by every users login. And also session id has been varied for every users.
Is it possible? If yes, How can we store the values at the time of application initialization?