CN111177611A - Method for multiplexing cache - Google Patents

Method for multiplexing cache Download PDF

Info

Publication number
CN111177611A
CN111177611A CN201811343518.XA CN201811343518A CN111177611A CN 111177611 A CN111177611 A CN 111177611A CN 201811343518 A CN201811343518 A CN 201811343518A CN 111177611 A CN111177611 A CN 111177611A
Authority
CN
China
Prior art keywords
data
multiplexing
cache
read
data sheet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811343518.XA
Other languages
Chinese (zh)
Inventor
郭成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shopex Software Co ltd
Original Assignee
Shopex Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shopex Software Co ltd filed Critical Shopex Software Co ltd
Priority to CN201811343518.XA priority Critical patent/CN111177611A/en
Publication of CN111177611A publication Critical patent/CN111177611A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for multiplexing cache, firstly, storing the operation result of a method needing to be cached in a cache; recording which data table information can be read by the method; when a certain data sheet is changed, the method using the data sheet is triggered to expire; thus, part of the buffered data is retained. The multiplexing caching method used by the invention can improve the performance of the whole system under the condition of small-amplitude content modification.

Description

Method for multiplexing cache
Technical Field
The invention belongs to the technical field of internet, and particularly relates to a multiplexing caching method.
Background
In an actually operating business system, in order to improve data reading performance, a method called cache is adopted, when data writing operation is performed, all caches are invalidated, and therefore, when the next operation is performed, a large amount of data reading and calculation operations need to be performed to recover the cache again. However, in this process, a large part of data is actually not required to be read and calculated again, so that a large amount of resources are wasted.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides a method for multiplexing a cache.
The invention is realized by the following technical scheme:
a method for multiplexing a buffer, comprising the steps of:
(1) firstly, storing a method operation result needing caching in a cache;
(2) then recording which data table information can be read by the method;
(3) when a certain data sheet is changed, the method using the data sheet is triggered to expire;
(4) the last part of the buffered data is preserved.
The invention has the beneficial effects that: the multiplexing caching method used by the invention can improve the performance of the whole system under the condition of small-amplitude content modification.
Drawings
A more complete understanding of the present invention, and the attendant advantages and features thereof, will be more readily understood by reference to the following detailed description when considered in conjunction with the accompanying drawings wherein:
FIG. 1 is a schematic diagram of a method invocation of the present invention;
FIG. 2 is a schematic diagram of page effect according to the present invention.
Detailed Description
The present invention will be described in detail with reference to specific embodiments, which are illustrative of the invention and are not to be construed as limiting the invention.
A method for multiplexing a buffer, comprising the steps of:
(1) firstly, storing a method operation result needing caching in a cache;
(2) then recording which data table information can be read by the method;
(3) when a certain data sheet is changed, the method using the data sheet is triggered to expire;
(4) the last part of the buffered data is preserved.
As shown in FIG. 1, the Content of the entire page comes from the Content part and the pendant widget1 and widget2 parts, and the Content part comes from the func1 and func2 methods of the Contentclass; widget1 content comes from the func1 and func2 methods of Widget Class 1; the content of Widget2 comes from the func1 and func2 methods of Widget class 2. These contents together make up the entire page.
As shown in fig. 2, it is assumed that in fig. 2, the data included in the areas 1 to 5 are from different data tables, and when an operator maintains the data of the area 2, the entire page cache is emptied according to the history state, and all caches need to be regenerated, but after using the present invention, only the corresponding data needs to be read from the data table in which the content of the area 2 is located, and the content of the areas 1 and 3 to 5 needs to be directly read from the previously recorded caches.
In summary, the multiplexing caching method used in the present invention can improve the performance of the whole system in the context of small-amplitude content modification.

Claims (1)

1. A method for multiplexing a buffer, comprising the steps of:
(1) firstly, storing a method operation result needing caching in a cache;
(2) then recording which data table information can be read by the method;
(3) when a certain data sheet is changed, the method using the data sheet is triggered to expire;
(4) the last part of the buffered data is preserved.
CN201811343518.XA 2018-11-13 2018-11-13 Method for multiplexing cache Pending CN111177611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811343518.XA CN111177611A (en) 2018-11-13 2018-11-13 Method for multiplexing cache

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811343518.XA CN111177611A (en) 2018-11-13 2018-11-13 Method for multiplexing cache

Publications (1)

Publication Number Publication Date
CN111177611A true CN111177611A (en) 2020-05-19

Family

ID=70649926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811343518.XA Pending CN111177611A (en) 2018-11-13 2018-11-13 Method for multiplexing cache

Country Status (1)

Country Link
CN (1) CN111177611A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699780A (en) * 2015-03-12 2015-06-10 浪潮集团有限公司 Method for improving webpage response speed under large data volume
CN106055640A (en) * 2016-05-31 2016-10-26 乐视控股(北京)有限公司 Buffer memory management method and system
CN106294597A (en) * 2016-07-28 2017-01-04 百度在线网络技术(北京)有限公司 For the method and apparatus that the static resource of webpage is grouped

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104699780A (en) * 2015-03-12 2015-06-10 浪潮集团有限公司 Method for improving webpage response speed under large data volume
CN106055640A (en) * 2016-05-31 2016-10-26 乐视控股(北京)有限公司 Buffer memory management method and system
CN106294597A (en) * 2016-07-28 2017-01-04 百度在线网络技术(北京)有限公司 For the method and apparatus that the static resource of webpage is grouped

Similar Documents

Publication Publication Date Title
WO2016082524A1 (en) Data storage method, device and system
US20140006687A1 (en) Data Cache Apparatus, Data Storage System and Method
CN108763508B (en) Data page access method, storage engines and computer readable storage medium
CN112346659B (en) Storage method, equipment and storage medium for distributed object storage metadata
TW200746061A (en) Information processing apparatus, information processing method, and computer program
CN106775466A (en) A kind of FTL read buffers management method and device without DRAM
TW200842572A (en) Method and apparatus for setting cache policies in a processor
TW201732602A (en) Versioning storage devices and methods
JPWO2009133605A1 (en) Virtual tape device, control method, control unit
TW201712540A (en) Data backup system
CN106681659A (en) Data compression method and device
CN100580669C (en) Method for realizing cache memory relates to file allocation table on Flash storage medium
CN105393236B (en) Requiring rapid data read/writing method and apparatus
CN111176566B (en) eMMC read-write control method supporting queue command and storage medium
CN111177611A (en) Method for multiplexing cache
CN113296691B (en) Data processing system, method and device and electronic equipment
US20060143313A1 (en) Method for accessing a storage device
CN102508790A (en) Content-based cache method applied to content analysis storage
JP2013097556A5 (en)
KR20100062562A (en) Database system based on hybrid storage device nand flash memory and non-volatile ram, and method of updating data in the database system
CN105260264A (en) Snapshot implementation method and snapshot system
CN112463041B (en) Processing method for host read-write data and related device
CN102622307A (en) Operating method for hard disk data and hard disk controller
CN110658999A (en) Information updating method, device, equipment and computer readable storage medium
CN103150197B (en) Based on the code Cache management method of static division

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200519