A disk cache may include a volatile memory such as a dynamic random access
memory and a nonvolatile memory such as a polymer memory. When a cache
line needs to be allocated on a write, the polymer memory may be
allocated and when a cache line needs to be allocated on a read, the
volatile memory may be allocated.