Method, apparatus, and system for data caching
AssigneeGuangzhou Ucweb Computer Technology Co., Ltd.
InventorsJie LIANG, Jian WU
Life of this patent
Estimating the term…
Abstract
A data caching method is disclosed. The method comprises changing, according to an instruction, a cache value, corresponding to a key, in a cache on a volatile memory, recording the instruction following a first effective content of a log file in a non-volatile memory to obtain a second effective content, the second effective content including the first effective content and the recorded instruction, and storing the key and the changed cache value corresponding to the key into the non-volatile memory.
Claims21
A data caching method, comprising:
- changing, according to an instruction, a cache value, corresponding to a key, in a cache on a volatile memory;
- recording the instruction following a first effective content of a log file in a non-volatile memory to obtain a second effective content, the second effective content including the first effective content and the recorded instruction;
- and
- storing, when meeting a preset backup condition, the key and the changed cache value corresponding to the key into the non-volatile memory.
An apparatus for data caching, comprising:
- a cache value change module configured to change, according to an instruction, a cache value, corresponding to a key, in a cache on a volatile memory;
- a log record module configured to record the instruction following a first effective content of a log file in a non-volatile memory to obtain a second effective content, the second effective content including the first effective content and the recorded instruction;
- and
- a data backup module configured to store, when meeting a preset backup condition, the key and the changed cache value corresponding to the key into the non-volatile memory.
A data caching method, comprising:
- changing, according to an instruction, a cache value corresponding to a key, the cache value being in a cache on a volatile memory, and the key being in the volatile memory;
- appending the instruction to an end of an instruction chain of the key, the instruction chain being in a log table on the volatile memory;
- and
- storing the key in the log table and the changed cache value corresponding to the key into a non-volatile memory;
A non-transitory computer-readable storage medium storing one or more programs, the one or more programs comprising instructions which, when executed by a processor of a computer system, cause the computer system to perform a method, comprising:
- changing, according to an instruction, a cache value, corresponding to a key, in a cache on a volatile memory;
- recording the instruction following a first effective content of a log file in a non-volatile memory to obtain a second effective content, the second effective content including the first effective content and the recorded instruction;
- and
- storing, when meeting a preset backup condition, the key and the changed cache value corresponding to the key into the non-volatile memory.
Dependencies are inferred from the claim text.