摘要 |
<p>The present invention relates to a method for controlling cache mapping and a cache system. The method includes: changing, at a preset time interval, a target data block in a cache of an underlying storage medium, where at least one data block in the underlying storage medium is mapped to the target data block, one or more data blocks in the underlying storage medium are mapped only to one target data block in the cache, the cache of the underlying storage medium includes a flash memory medium, and the changed target data block in the cache includes a target data block currently having the maximum number of erasure times in the cache. By utilizing the technical solution, the service life of the flash memory medium can be optimized.</p> |