How can we Use SoftReference in Java for better performance
I have heard that with the use of SoftReference we can build faster and efficient cache.
I have no clue how it can be done, We are trying to build a HashMap based cache, I am just thinking of utilizing SoftReference based cache to have memory efficient implementation.
Can someone please suggest how I can do it?
Any example code or links would be really helpful.
Also let me know is it really worth doing ? Or a simple HashMap based cache is better to use?
Cooking is Fun