Caching processing method and device
A cache processing and caching technology, applied in the field of network storage, can solve the problem of wasting cache space and so on
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] Such as figure 1 As shown, a cache processing method includes the following steps:
[0047] Step 1, when the first data of the first user needs to be cached, read the current storage start address;
[0048] Step 2, storing the first data into a cache space starting from the current storage start address, wherein the cache space occupied by the first data is the first cache space;
[0049] Step 3, corresponding to the first data in the first user, save a storage location information including the start address and space length of the first cache space, so that when the first data needs to be read, the Locating the first cache space according to the start address and the space length, and reading the first data from the first cache space;
[0050]Step 4, updating the current storage start address to the next address of the first cache space, so that the next data that needs to be cached can be cached from the storage start address, so that each cached data All can cont...
Embodiment 2
[0080] A cache processing device, comprising:
[0081] The module for reading the storage start address is used to read the current storage start address when the first data of the first user needs to be cached; the cache module is used to store the first data from the current storage start address to a cache space, wherein the cache space occupied by the first data is the first cache space;
[0082] The stored data management module is configured to store storage location information including the start address and space length of the first cache space corresponding to the first data in the first user, so that when the first cache space needs to be read data, the first cache space can be located according to the start address and space length, and the first data can be read from the first cache space; in addition, the storage data management module can also record the first The idle state of the data, and according to the idle state, it is judged whether the first data is re...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 