Building cache for a Java application is required many times. Writing an efficient cache can be really helpful for better application performance. If you want to build a faster and efficient cache in Java then it can be achieved using SoftReference based HashMap. This example demonstrates a sample cache using SoftReference.
Continue Reading