Complex sentence: Soft references may be used, for example, when writing a cache: weakly referenced objects may disappear too quickly to make the cache useful.
Split into simpler sentences: Soft references may be used, for example, when writing a cache. In some cases weakly referenced objects may be reclaimed too quickly to make such cache useful.