Name: mr33420 Date: 11/05/98
SoftReferences are good for use in caches.
I am building an app that replaces (updates)
the objects contained in the cache.
It is very similar to the way web browser
caches work.
The problem is there is no way to update the
objects because the field:
private Object referent;
in class java.lang.ref.Reference cannot be changed. It
sort of defeats the purpose of using it for a cache (it's
recommended use).
(Review ID: 42113)
======================================================================
- duplicates
-
JDK-4278866 Need a cache that uses SoftReference: Need Reference.set() to update a cache
- Closed