Class SoftReferenceCache

  • All Implemented Interfaces:

    public class SoftReferenceCache
    extends Object
    implements Cache
    Cache which is cleared according to memory pressure. This is simply a wrapper around java.lang.ref.SoftReference, and the performance will depend on the behaviour of SoftReference on your platform.
    Thomas Down
    • Method Detail

      • makeReference

        public CacheReference makeReference​(Object o)
        Description copied from interface: Cache
        Construct a temporary reference to an object. The reference persists until it becomes dereferenced itself, it is explicitly cleared by the user, or the cache determines that it is a candidate for disposal.
        Specified by:
        makeReference in interface Cache