How often have you implemented a cache in your application? Quite a lot? And how often has the cache lead to an OutOfMemoryError? Did you know that you could use something called SoftReference to prevent that? I didn’t too. It’s surprising how such a great feature in Java hasn’t been as popular as it should […]
http://gmailblog.blogspot.com/2008/07/remote-sign-out-and-info-to-help-you.html When you think about it is something that would useful in quite a lot of situations and although it is a very simple thing to implement it took Google to think about it.