Patent attributes
The present disclosure provides a data storage method, an apparatus, and a storage medium, the method comprising: receiving a data storage request from a client, wherein the data storage request comprises data to be stored; determining a state of the data to be stored according to a least frequently used (LFU) and a least recently used (LRU) of the data to be stored, wherein the state is a cold data state or a hot data state; and determining a corresponding storage medium for the data to be stored according to the state of the data to be stored, and storing the data to be stored in the storage medium. The data storage method, the apparatus, and the storage medium provided in the present disclosure allow for reducing the probability of reading a disk and improving the stability of a system.