1. A cache-based data read/write method applied in a computer system, comprising: acquiring, by a processor, a first query address corresponding to a first physical memory data block where data is to be read/written; acquiring, by the processor, a first cache location attribute of the first physical memory data block, wherein the first cache location attribute indicates a level in levels of caches storable for the first physical memory data block, wherein the first cache location attribute corresponds to a frequency of data access of the first physical memory data block, and wherein the frequency of data access defines a highest enterable level of cache of the levels of caches for the first physical memory data block; querying, by the processor, the levels of caches from the highest enterable level of cache to lower levels of caches lower than the highest enterable level of cache and ignoring the levels of caches higher than the highest enterable level of cache to determine whether one level of cache in the queried levels of caches is a hit cache or all the queried levels of caches are missed caches, wherein the querying is performed according to the first cache location attribute in descending order of the levels of caches storable for the first physical memory data block; reading/writing, by the processor, the data in the first query address of the first physical memory data block in a level of the hit cache when one of the levels of caches in the queried levels of caches is the hit cache; and reading/writing, by the processor, the data in the first query address of the first physical memory data block in a memory when all of the queried levels of caches are the missed caches.