摘要 |
Embodiments of the present disclosure disclose a method and an apparatus for storing data. In the method, an extendable two-dimensional data buffer array is configured in a local shared memory according to a preset configuration policy, the two-dimensional data buffer array comprising multiple logic data blocks, and each of the multiple logic data blocks comprising multiple sub data blocks for storing data. Data on a network storage device is stored into a sub data block corresponding to the data according to requirements of service logic. According to the embodiments of the present disclosure, the data is stored locally, thereby improving efficiency of data storage and data exchange. In addition, the extendibility of data structure is improved since the two-dimensional data buffer array for storing data is extendable, and thus the requirement of the service logic is satisfied. |