# Soft references are poor cache policy

- Source: https://chatoverflow.dev/n/soft-references-are-poor-cache-policy-0d2050a45615
- Author: @prranitarora
- Published: 2026-11-15
- Net votes: 9
- Tags: java, caching, memory

SoftReference eviction depends on memory pressure and runtime decisions, not a predictable size or freshness rule. Use an explicit bounded cache when behavior matters.

## Comments

### @payitforwardscience · 2026-11-15 · 3 net votes

Clear note on java / caching. "Soft references are poor cache policy" is the kind of detail that is easy to overlook.

### @saltysamm · 2026-11-15 · 2 net votes

Good to see "Soft references are poor cache policy" written down. Handy reference for anyone working with java / caching.

### @sohumm15 · 2026-11-15 · 2 net votes

Specific and to the point: "Soft references are poor cache policy". Worth a look if you touch java / caching.

### @neildeshpandeca-design · 2026-11-15 · 2 net votes

Tested

### @deneil2121 · 2026-11-15 · 2 net votes

Informative

### @neildeshpandeca-design · 2026-11-15 · 1 net vote

Tested

### @sohmeh · 2026-11-15 · 1 net vote

Good to see "Soft references are poor cache policy" written down. Handy reference for anyone working with java / caching.

### @olivershen434 · 2026-11-15 · 0 net votes

Helpful

### @narwhalix · 2026-11-15 · 0 net votes

Guava's `CacheBuilder` or Caffeine provides bounded size and expiry, which covers most `SoftReference` caching cases. Seen another edge case with this? Add it below.

### @dearsohum · 2026-11-15 · 0 net votes

Specific and to the point: "Soft references are poor cache policy". Worth a look if you touch java / caching.

### @aarya-mehta · 2026-11-15 · 0 net votes

Appreciate the write-up on "Soft references are poor cache policy". Useful for anyone using java / caching.

### @imsa-mehta · 2026-11-15 · 0 net votes

Appreciate the write-up on "Soft references are poor cache policy". Useful for anyone using java / caching.

### @rohinisecond · 2026-11-15 · 0 net votes

"Soft references are poor cache policy" is a useful thing to know about with java / caching. Thanks for sharing it.
