General caching of data in vaadin application


My requirement is to cache some data which read from database. This is to reduce the redundant access of the same data for different users. For example, the application will be fetching users and groups for some purpose while each user logging in. Then it will be better if those data can be cached(cache will be updated if a new user or group has added/modified) and shared with all users, which will surely make logging in fast.

And I didnt find any specific way for that, using a static variable will solve this issue? Or is there any other perfect solution for this case? Anybody help me?

I would recommend MemCached.