If we use a static hash map for caching process in a normal class (Not a singelton class) will it work in cluster environment?
A static field's value is stored in the memory of the JVM, and each JVM will thus have its own static map. This can be OK, unless you want a unique cache for all the members of the cluster.
1.4m articles
1.4m replys
5 comments
57.0k users