Method and device for reading data
暂无分享,去创建一个
The invention discloses a method and a device for reading data. The method comprises the following steps: when a read instruction for reading a target address is received, judging whether data pointed by reading of the target address are cached in a preset cache region; if the data pointed to reading of the target address are cached in the preset cache region, searching a cache address corresponding to the reading of the target address according to a first mapping relation, and reading the data pointed by the cache address from the preset cache region, wherein the first mapping relation is used for recording a corresponding relation between the target address and the cache address; if no data pointed by reading of the target address are cached in a preset cache region, reading the data pointed by reading of the target address from a nonvolatile storage space. By the mode, read data errors caused by write interference can be reduced.