Method and apparatus for caching readback data in a cache memory. Upon a
transfer of cached readback data to a host device, a cache manager
operates to force a retention of the readback data in the cache memory in
relation to a time parameter and a locality parameter associated with
said data. In this way, the readback data are either retained in hopes of
satisfying a subsequent cache hit, or not retained to accommodate
subsequently cached data. Preferably, the cache manager compares the time
parameter to a time threshold and the locality parameter to a locality
threshold, and forces said retention of the readback data if both said
thresholds are met. The readback data is preferably associated with a
data structure such as a RAID stripe, the time parameter preferably
indicates elapsed time since last access to the structure and the
locality parameter preferably indicates accesses to the structure.