CN110489696A - Buffering updating method, device and electronic equipment, storage medium - Google Patents
Buffering updating method, device and electronic equipment, storage medium Download PDFInfo
- Publication number
- CN110489696A CN110489696A CN201910703438.9A CN201910703438A CN110489696A CN 110489696 A CN110489696 A CN 110489696A CN 201910703438 A CN201910703438 A CN 201910703438A CN 110489696 A CN110489696 A CN 110489696A
- Authority
- CN
- China
- Prior art keywords
- page
- load request
- caching
- data
- database
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
- G06F16/24552—Database cache management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Shopping interfaces
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Finance (AREA)
- Data Mining & Analysis (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present application provides a kind of buffering updating method, device and electronic equipment, storage medium, is related to distributed caching field.The page load request sent by receiving user terminal, wherein page load request carries page load request;According to page load request from database, extraction and the associated first page data of page load request, while the operation of subsequent access database is locked;Data update is carried out according to caching of the first page data to setting;The operation of subsequent access database is unlocked.When the page associated there is no page load request in caching, it needs to be updated caching by accessing database, when one of page load request access database update caching, the operation of subsequent access database is locked, to avoid a large amount of access request from directly falling on database, the pressure for alleviating database improves the performance of service system, ensure that the normal operation of service system.
Description
Technical field
This application involves distributed caching field more particularly to a kind of buffering updating methods, device and electronic equipment, storage
Medium.
Background technique
In people's daily life, often by user terminal access webpage, for example, the commodity page of access Taobao, is visited
Ask the soft literary page etc. of public platform.Normally, when user terminal initiates accessing page request, by the number for accessing server
According to the caching in library, the page is browsed.
In traditional technology, when a large number of users accesses to the same page, which is inquired by high concurrent.When
Cache one of access request it is accessed after, moment failure, and new caching does not have enough time also generating is subsequent to visit in large quantities
Ask that request can be fallen directly on database;Or it when the page that a large amount of access requests need to access, is not present in the buffer, largely
Ground access request can also be fallen directly on database;For another example a large amount of key that caches fails in the same time under high concurrent
When, access request can directly can also be fallen on database in large quantities.When access request can also be fallen directly on database in large quantities
When, database pressure can increase severely, and will lead to database corruption when serious.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of buffering updating method, device and electronic equipment, storage medium, with solution
Certainly when a large amount of access request is fallen directly on database, makes database increased pressure, database corruption is caused when serious
Problem.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
In a first aspect, the embodiment of the present application provides a kind of buffering updating method, comprising:
Receive the page load request that user terminal is sent;
According to the page load request from database, extract and the associated first page number of the page load request
According to, while the operation of subsequent access database is locked;
Data update is carried out according to caching of the first page data to setting;
The operation of the subsequent access database is unlocked.
Optionally, described according to the page load request from database, extract with the page load request close
The first page data of connection, at the same to it is subsequent access database operation lock before, the method also includes:
In the caching of setting, when there are second page data associated with page load request, by the second page
Data feedback is to the user terminal.
Optionally, described cache includes temporal cache and permanently caches, and in the caching for working as setting, exists and adds with the page
When carrying the associated second page data of request, include: by the second page data feedback to the user terminal
In the temporal cache of setting, when there are second page data associated with page load request, by described second
Page data feeds back to the user terminal;
In the temporal cache of setting, when second page data associated with page load request are not present, judge to set
It is permanent caching in whether there is and the associated second page data of page load request;
In the permanent caching of setting, when there are second page data associated with page load request, by described second
Page data feeds back to the user terminal.
Optionally, the method also includes:
In the permanent caching of setting, when second page data associated with page load request are not present, it will extract
With the associated first page data feedback of the page load request to the user terminal.
Optionally, in the temporal cache of setting, exist and the associated second page data of page load request described
When, before the method for the second page data feedback to the user terminal, the method also includes:
Caching page-tag is not carried in page load request, or the page in the caching page-tag and database carried
When the caching page-tag of face data is inconsistent, judge in the temporal cache set, if exist and be associated with page load request
Second page data.
Optionally, in the temporal cache of setting, exist and the associated second page data of page load request described
When, before the method for the second page data feedback to the user terminal, the method also includes:
Page in the caching page-tag and database that page load request carries caching page-tag, and carries
When the page-tag of face data is consistent, feeds back and characterize the prompt information for being loaded directly into local cache to user terminal.
Optionally, after the operation to the subsequent access database is unlocked, the method also includes:
When receiving the page load request again, by the first page number in the caching of the updated setting of data
According to feeding back to the user terminal.
Second aspect, the embodiment of the present application also provides a kind of buffer update devices, comprising:
Information receiving unit is configured to receive the page load request of user terminal transmission, wherein the page load
Request carries page load request;
Data extracting unit is configured to according to the page load request from database, and extraction adds with the page
It carries and requests associated first page data;
Lock cell is operated, is configured to lock the operation of subsequent access database;
Data updating unit is configured to carry out data update according to caching of the first page data to setting;
Unlocking unit is operated, is configured to be unlocked the operation of the subsequent access database.
The third aspect, the embodiment of the present application also provides a kind of storage mediums, are stored thereon with computer program, feature
It is, which realizes method described in the application first aspect when being executed by processor the step of.
Fourth aspect, the embodiment of the present application also provides a kind of electronic equipment, comprising:
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize the embodiment of the present application first party
The step of method described in face.
In the embodiment of the present application, the page load request sent by receiving user terminal, wherein the page load
Request carries page load request;Then it according to the page load request from database, extracts and is loaded with the page
Associated first page data are requested, while the operation of subsequent access database is locked;Then according to described first
Page data carries out data update to the caching of setting;Finally the operation of the subsequent access database is unlocked.When
In caching when the page associated there is no page load request, need to be updated caching by accessing database, when wherein
When one page load request access database update caching, the operation of subsequent access database is locked, to keep away
Exempt from a large amount of access request to directly fall on database, alleviate the pressure of database, improve the performance of service system, guarantees
The normal operation of service system.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property
Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the interaction schematic diagram of server provided by the embodiments of the present application and multiple user terminals;
Fig. 2 is the first flow diagram of buffering updating method provided by the embodiments of the present application;
Fig. 3 is second of flow diagram of buffering updating method provided by the embodiments of the present application;
Fig. 4 is the third flow diagram of buffering updating method provided by the embodiments of the present application;
Fig. 5 is the first module diagram of buffer update device provided by the embodiments of the present application;
Fig. 6 is second of module diagram of buffer update device provided by the embodiments of the present application;
Fig. 7 is the third module diagram of buffer update device provided by the embodiments of the present application
Fig. 8 is the structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The application protection all should belong in technical staff's every other embodiment obtained without creative efforts
Range.
The embodiment of the present application provides a kind of buffering updating method, is applied to server 101, as shown in Figure 1, server
101 communicate to connect with multiple user terminals 102, to realize interaction.Server 101 includes database and caching, and server 101 can
According to the request of user terminal 102, the data in database to be stored in caching, for the load of user terminal 102.Such as figure
Shown in 2, which comprises
S21: the page load request that user terminal 102 is sent is received, wherein the page load request carries the page
Load request.
User can trigger page load request in the application program (e.g., Taobao, day cat, Jingdone district etc.) of user terminal 102,
And page load request is sent to server 101.Wherein, page load request can be displaying commodity detail information or commodity
The page load request of profile information etc..Normally, the page data in caching not necessarily can real-time update, need to extract
In page data to caching in database, so that subsequent user terminal 102 loads real-time page data.
S22: it according to the page load request from database, extracts and the associated first page of page load request
Face data, while the operation of subsequent access database is locked.
For example, page load request is the commodity detail information in order to obtain A commodity, page load request carry about
The page ID of the commodity detail information of A commodity, so as to extract and the page ID of the page load request associated
One page data.Wherein, first page data can be for example, html page data or json object data.Specifically, to
The extracting mode of one page data can be with are as follows: extracts first page data from database by the way that information centre RocketMQ is asynchronous.
When the page load request accesses database, a large amount of page load request is fallen directly on database in order to prevent, thus,
The operation to subsequent access database is needed to lock.
Specific lock mode can be with are as follows: is locked by Puzzle lock to the operation of subsequent access database.Wherein,
Puzzle lock refers in multi-thread concurrent operation, and the mechanism of whole lock control is carried out to a group task, when in expected task execution
Lock is discharged when completion.Specifically, the work step of Puzzle lock is as follows: a number of tasks initial value N is arranged in a. count initialized lock,
An and time-out time T;B. main thread submits all tasks to start to execute, and Puzzle lock is counted;C. main thread waits meter
Number lock release, during this period, execute the thread of task execute complete when, by the N execution of the Puzzle lock operation that subtracts one;D. Puzzle lock
It is discharged when N is kept to zero or the waiting time is more than the time-out time T of setting.
S23: data update is carried out according to caching of the first page data to setting.
It is to be appreciated that background work personnel may be adjusted the page data in database, change, thus, it is
Subsequent page load request is able to access that newest page data, and therefore, it is necessary to carry out data update to caching.
S24: the operation of the subsequent access database is unlocked.
Based on the above-mentioned description to Puzzle lock, after S23 is finished, i.e., the thread for currently executing task is being executed
At by the N of the Puzzle lock execution operation that subtracts one, and executing the operation of next access database.
A kind of buffering updating method provided by the embodiments of the present application is asked by receiving the page load that user terminal is sent
It asks;Then it according to the page load request from database, extracts and the associated first page number of the page load request
According to, while the operation of subsequent access database is locked;Then according to the first page data to the caching of setting
Carry out data update;Finally the operation of the subsequent access database is unlocked.It is loaded when the page is not present in caching
It when requesting the associated page, needs to be updated caching by accessing database, when one of page load request accesses
When database update caches, the operation of subsequent access database is locked, to avoid a large amount of access request direct
The pressure for alleviating database on the database is fallen, the performance of service system is improved, ensure that the normal fortune of service system
Row.
Optionally, as shown in figure 3, before S22, the method also includes:
In the caching of setting, when there are second page data associated with page load request, by the second page
Data feedback is to the user terminal 102.
In the caching of setting, when there are second page data associated with page load request, directly by caching
Two page datas feed back to user terminal 102, can not have to access database.
Optionally, the caching of setting includes temporal cache and permanent caching, wherein temporal cache refers to the page in caching
Data are there are the out-of-service time, for example, page data A fails after storing 1 month in temporal cache, and database is right at any time
Page data in temporal cache is updated, so that the page data in temporal cache is real-time update.Permanently caching is
Refer to that the page data in caching will not fail, database will not the spontaneous page data in permanent caching be updated.It can
To understand ground, the page data in temporal cache is than real-time in permanently caching, and permanent caching is than the page number in temporal cache
According to abundant in content.Specifically, in the caching of setting, when there are second page data associated with page load request, by institute
Stating second page data feedback to the user terminal includes:
S31: judge setting temporal cache in, if exist with the associated second page data of page load request, such as
Fruit is then to execute S32, if it is not, then executing S33.
S32: by the second page data feedback to the user terminal 102.
Based on above-mentioned, since the page data in temporal cache is real time data, thus determines in temporal cache first and be
No presence and the associated second page data of page load request, if it is present by the second page data feedback to institute
User terminal 102 is stated, thereby may be ensured that the most real-time page data of user's reading.
S33: judge setting it is permanent cache in, if exist with the associated second page data of page load request, such as
Fruit is then to execute S34, if it is not, then executing S35.
S34: by the second page data feedback to the user terminal 102.
It is to be appreciated that since the page data in permanently caching is abundanter than the page data in temporal cache, interim
The page data being not present in caching may exist in permanent caching, therefore, when there is no load with the page in temporal cache
When requesting associated second page data, accessible permanent caching.
S35: it will extract and the associated first page data feedback of the page load request to the user terminal
102。
If second page data associated with page load request are not present in temporal cache and permanent caching, directly will
Extract with the associated first page data feedback of the page load request to the user terminal 102.Meanwhile using mentioning
That gets is updated temporal cache and permanent caching with the associated first page data of the page load request.
Optionally, as shown in figure 4, before S31, the method also includes:
S41: the caching page-tag and number for judging whether page load request carries caching page-tag, and carrying
It is whether consistent according to the caching page-tag of the page data in library, if it is not, then S31 is executed, if it is, executing S42.
S42: it feeds back and characterizes the prompt information for being loaded directly into local cache to user terminal 102.
Wherein, caching page-tag can be ETag, and it is " the reality of requested variable that http protocol specification, which defines ETag,
Body value ", i.e. characterization page-tag.When the caching page-tag and number that page load request carries caching page-tag and carries
When consistent according to the caching page-tag of the page data in library, illustrate that local be cached with of user terminal 102 is asked with page load
Associated second page data are sought, are loaded directly into;When page load request does not carry caching page-tag or carrying
When caching page-tag and the inconsistent caching page-tag of the page data in database, illustrate that user terminal 102 is local not
Be cached with the associated second page data of page load request, need from server 101 load.
Optionally, after S24, the method also includes:
When receiving the page load request again, by the first page number in the caching of the updated setting of data
According to feeding back to the user terminal 102.
It is to be appreciated that receiving subsequent page load again after being updated to the page data in caching and asking
When asking, user terminal 102 can load newest page data.
Fig. 5 is please referred to, the embodiment of the present application also provides a kind of buffer update devices 500, it should be noted that this
The technical effect of buffer update device 500 provided by application embodiment, basic principle and generation is identical with above-described embodiment,
To briefly describe, the present embodiment part does not refer to place, can refer to corresponding contents in the above embodiments.Described device 500 is wrapped
Include information receiving unit 501, data extracting unit 502, operation lock cell 503, data updating unit 504 and operation unlock
Unit 505.
Information receiving unit 501 is configured to receive the page load request of the transmission of user terminal 102, wherein the page
Face load request carries page load request.
Data extracting unit 502 is configured to according to the page load request from database, is extracted and the page
The associated first page data of load request.
Operation lock cell 503 is configured to lock the operation of subsequent access database.
Data updating unit 504 is configured to carry out data update according to caching of the first page data to setting.
Operation unlocking unit 505 is configured to be unlocked the operation of the subsequent access database.
Following function may be implemented in a kind of buffer update device provided by the embodiments of the present application: receiving user terminal and sends
Page load request;According to the page load request from database, extract and the page load request associated the
One page data, while the operation of subsequent access database is locked;According to the first page data to setting
Caching carries out data update;The operation of the subsequent access database is unlocked.It is loaded when the page is not present in caching
It when requesting the associated page, needs to be updated caching by accessing database, when one of page load request accesses
When database update caches, the operation of subsequent access database is locked, to avoid a large amount of access request direct
The pressure for alleviating database on the database is fallen, the performance of service system is improved, ensure that the normal fortune of service system
Row.
Optionally, as shown in fig. 6, described device 500 further include:
Information transmitting unit 601 is configured in the caching of setting, exists and the associated second page of page load request
When face data, by the second page data feedback to the user terminal 102.
Specifically, the caching includes temporal cache and permanent caching, and information transmitting unit 601 is specifically configured to work as and set
In fixed temporal cache, when there are second page data associated with page load request, by the second page data feedback
To the user terminal 102;In the temporal cache of setting, it is not present and the associated second page data of page load request
When, judge to whether there is and the associated second page data of page load request in the permanent caching of setting;It is permanent when setting
In caching, when there are second page data associated with page load request, by the second page data feedback to the use
Family terminal 102.
Information transmitting unit 601 can be configured in the permanent caching of setting, be not present and page load request
When associated second page data, it will extract with the page load request associated first page data feedback to described
User terminal 102.
Optionally, it as shown in fig. 7, described device 500 can also include: judging unit 701, is configured to load in the page
Request does not carry caching page-tag, or the caching page mark of the page data in the caching page-tag and database carried
When signing inconsistent, judge in the temporal cache set, if exist and the associated second page data of page load request.
Information transmitting unit 601 is further configured to carry caching page-tag in page load request, and carry
When caching page-tag is consistent with the page-tag of the page data in database, feedback characterization is loaded directly into mentioning for local cache
Show information to user terminal 102.
Information transmitting unit 601 is further configured to when receiving the page load request again, after data are updated
Setting caching in first page data feedback to the user terminal 102.
The embodiment of the present application also provides a kind of electronic equipment, Fig. 8 is the knot of electronic equipment provided by the embodiments of the present application
Structure schematic diagram.As shown in figure 8, electronic equipment can generate bigger difference because configuration or performance are different, it may include one
Or more than one processor 801 and memory 802, it can store one or more storage applications in memory 802
Program or data.Wherein, memory 802 can be of short duration storage or persistent storage.The application program for being stored in memory 802 can
To include one or more modules (diagram is not shown), each module may include to the series of computation in electronic equipment
Machine executable instruction.Further, processor 801 can be set to communicate with memory 802, executes deposit on an electronic device
Series of computation machine executable instruction in reservoir 802.Electronic equipment can also include one or more power supplys 803, one
A or more than one wired or wireless network interface 804, one or more input/output interfaces 805.
In a specific embodiment, electronic equipment includes memory, processor and is stored on the memory simultaneously
The computer executable instructions that can be run on the processor, when the computer executable instructions are executed by the processor
Realize following below scheme:
Receive the page load request that user terminal is sent;According to the page load request from database, extract with
The associated first page data of page load request, while the operation of subsequent access database is locked;According to
The first page data carry out data update to the caching of setting;The operation of the subsequent access database is solved
Lock.
Further, described computer-readable to deposit the embodiment of the present application also provides a kind of computer readable storage medium
Storage media is realized for storing computer executable instructions, when the computer executable instructions are executed by processor to flow down
Journey:
Receive the page load request that user terminal is sent;According to the page load request from database, extract with
The associated first page data of page load request, while the operation of subsequent access database is locked;According to
The first page data carry out data update to the caching of setting;The operation of the subsequent access database is solved
Lock.
Wherein, the computer readable storage medium includes read-only memory (Read-Only Memory, abbreviation
ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.
Claims (10)
1. a kind of buffering updating method characterized by comprising
Receive the page load request that user terminal is sent;
According to the page load request from database, extraction and the associated first page data of the page load request,
The operation of subsequent access database is locked simultaneously;
Data update is carried out according to caching of the first page data to setting;
The operation of the subsequent access database is unlocked.
2. the method according to claim 1, wherein it is described according to the page load request from database
In, extraction and the associated first page data of the page load request, while the operation of subsequent access database is carried out
Before locking, the method also includes:
In the caching of setting, when there are second page data associated with page load request, by the second page data
Feed back to the user terminal.
3. described according to the method described in claim 2, it is characterized in that, the caching includes temporal cache and permanent caching
In the caching of setting, when there are second page data associated with page load request, by the second page data feedback
Include: to the user terminal
In the temporal cache of setting, when there are second page data associated with page load request, by the second page
Data feedback is to the user terminal;
In the temporal cache of setting, when second page data associated with page load request are not present, setting is judged forever
It whether there is and the associated second page data of page load request in caching long;
In the permanent caching of setting, when there are second page data associated with page load request, by the second page
Data feedback is to the user terminal.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
In the permanent caching of setting, when associated with page load request second page data are not present, will extract with
The associated first page data feedback of page load request is to the user terminal.
5. according to the method described in claim 3, it is characterized in that, in the temporal cache of setting, existing and the page described
When the associated second page data of load request, before the method for the second page data feedback to the user terminal,
The method also includes:
Caching page-tag is not carried in page load request, or the page number in the caching page-tag and database carried
According to caching page-tag it is inconsistent when, in the temporal cache that judges setting, if exist and page load request associated the
Two page datas.
6. according to the method described in claim 3, it is characterized in that, in the temporal cache of setting, existing and the page described
When the associated second page data of load request, before the method for the second page data feedback to the user terminal,
The method also includes:
Page number in the caching page-tag and database that page load request carries caching page-tag, and carries
According to page-tag it is consistent when, feedback characterization is loaded directly into the prompt information of local cache to user terminal.
7. the method according to claim 1, wherein it is described to it is described it is subsequent access database operation into
After row unlock, the method also includes:
It is when receiving the page load request again, the first page data in the caching of the updated setting of data are anti-
It is fed to the user terminal.
8. a kind of buffer update device characterized by comprising
Information receiving unit is configured to receive the page load request of user terminal transmission;
Data extracting unit is configured to according to the page load request from database, is extracted and is asked with page load
Seek associated first page data;
Lock cell is operated, is configured to lock the operation of subsequent access database;
Data updating unit is configured to carry out data update according to caching of the first page data to setting;
Unlocking unit is operated, is configured to be unlocked the operation of the subsequent access database.
9. a kind of storage medium, is stored thereon with computer program, which is characterized in that realize power when the program is executed by processor
Benefit requires the step of 1-7 described in any item methods.
10. a kind of electronic equipment characterized by comprising
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize that claim 1-7 is described in any item
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910703438.9A CN110489696B (en) | 2019-07-31 | 2019-07-31 | Cache updating method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910703438.9A CN110489696B (en) | 2019-07-31 | 2019-07-31 | Cache updating method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110489696A true CN110489696A (en) | 2019-11-22 |
CN110489696B CN110489696B (en) | 2023-07-04 |
Family
ID=68547791
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910703438.9A Active CN110489696B (en) | 2019-07-31 | 2019-07-31 | Cache updating method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110489696B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111259034A (en) * | 2020-02-17 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Cache data management method and related device |
CN111259300A (en) * | 2020-01-17 | 2020-06-09 | 苏宁云计算有限公司 | Page loading method, device and system |
CN111506337A (en) * | 2020-04-15 | 2020-08-07 | 中国银行股份有限公司 | Application software updating method and device |
CN112100554A (en) * | 2020-08-14 | 2020-12-18 | 北京思特奇信息技术股份有限公司 | System and method for improving page response speed based on redis cache |
CN114390069A (en) * | 2022-01-30 | 2022-04-22 | 青岛海尔科技有限公司 | Data access method, system, equipment and storage medium based on distributed cache |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446222A (en) * | 2011-12-22 | 2012-05-09 | 华为技术有限公司 | Method, device and system of webpage content preloading |
CN104239339A (en) * | 2013-06-19 | 2014-12-24 | 上海缪思信息科技有限公司 | Data access control method and system |
US20150278242A1 (en) * | 2014-03-31 | 2015-10-01 | International Business Machines Corporation | Increase database performance by reducing required communications and information transfers |
CN105138587A (en) * | 2015-07-31 | 2015-12-09 | 小米科技有限责任公司 | Data access method, apparatus and system |
CN106210022A (en) * | 2016-06-29 | 2016-12-07 | 天涯社区网络科技股份有限公司 | A kind of system and method for processing forum's height concurrent data requests |
CN106227763A (en) * | 2016-07-13 | 2016-12-14 | 珠海市魅族科技有限公司 | The method and device that a kind of webpage loads |
WO2019008715A1 (en) * | 2017-07-05 | 2019-01-10 | 富士通株式会社 | Data loading program, data loading method, and data loading device |
-
2019
- 2019-07-31 CN CN201910703438.9A patent/CN110489696B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446222A (en) * | 2011-12-22 | 2012-05-09 | 华为技术有限公司 | Method, device and system of webpage content preloading |
CN104239339A (en) * | 2013-06-19 | 2014-12-24 | 上海缪思信息科技有限公司 | Data access control method and system |
US20150278242A1 (en) * | 2014-03-31 | 2015-10-01 | International Business Machines Corporation | Increase database performance by reducing required communications and information transfers |
CN105138587A (en) * | 2015-07-31 | 2015-12-09 | 小米科技有限责任公司 | Data access method, apparatus and system |
CN106210022A (en) * | 2016-06-29 | 2016-12-07 | 天涯社区网络科技股份有限公司 | A kind of system and method for processing forum's height concurrent data requests |
CN106227763A (en) * | 2016-07-13 | 2016-12-14 | 珠海市魅族科技有限公司 | The method and device that a kind of webpage loads |
WO2019008715A1 (en) * | 2017-07-05 | 2019-01-10 | 富士通株式会社 | Data loading program, data loading method, and data loading device |
Non-Patent Citations (2)
Title |
---|
IVAN VORAS,DANKO BASCH: "A high performance memory database for web application caches" * |
夏冬生: "B/S模式下ASP编程的数据传输及接口" * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111259300A (en) * | 2020-01-17 | 2020-06-09 | 苏宁云计算有限公司 | Page loading method, device and system |
CN111259300B (en) * | 2020-01-17 | 2023-05-19 | 苏宁云计算有限公司 | Page loading method, device and system |
CN111259034A (en) * | 2020-02-17 | 2020-06-09 | 腾讯科技(深圳)有限公司 | Cache data management method and related device |
CN111506337A (en) * | 2020-04-15 | 2020-08-07 | 中国银行股份有限公司 | Application software updating method and device |
CN112100554A (en) * | 2020-08-14 | 2020-12-18 | 北京思特奇信息技术股份有限公司 | System and method for improving page response speed based on redis cache |
CN114390069A (en) * | 2022-01-30 | 2022-04-22 | 青岛海尔科技有限公司 | Data access method, system, equipment and storage medium based on distributed cache |
CN114390069B (en) * | 2022-01-30 | 2024-03-22 | 青岛海尔科技有限公司 | Data access method, system, equipment and storage medium based on distributed cache |
Also Published As
Publication number | Publication date |
---|---|
CN110489696B (en) | 2023-07-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110489696A (en) | Buffering updating method, device and electronic equipment, storage medium | |
US11349940B2 (en) | Server side data cache system | |
US9779127B2 (en) | Integrating database management system and external cache | |
CN104823170B (en) | Distributed caching cluster management | |
EP4202694A1 (en) | Node memory-based data processing method and apparatus, device, and medium | |
CN108958927A (en) | Dispositions method, device, computer equipment and the storage medium of container application | |
CN104580226A (en) | Session data sharing system and method | |
CN104391930A (en) | Distributed file storage device and method | |
CN108959385A (en) | Database portion arranging method, device, computer equipment and storage medium | |
CN106462589A (en) | Dynamic cache allocation and network management | |
CN103607424B (en) | Server connection method and server system | |
CN110737857A (en) | back-end paging acceleration method, system, terminal and storage medium | |
CN102624881A (en) | Mobile-device-oriented service cache system architecture and development method | |
CN107493329A (en) | A kind of remote document access method of distributed memory file system | |
CN108228597A (en) | Data bank access method and device | |
CN105592118B (en) | Synchronous user applies method, system and the server-side of data | |
EP3812930A1 (en) | Distributed transaction processing method and related device | |
CN110225087A (en) | Cloud access method, device and storage medium based on global load balancing | |
CN114217981A (en) | Bank-enterprise direct connection communication method and device, computer equipment and storage medium | |
US9853912B2 (en) | Stateless services in content management clients | |
CN106874073A (en) | The implementation method and device of affairs under SOA framework | |
CN110413918A (en) | Data transmission method for uplink, device, equipment and storage medium | |
CN106919470A (en) | A kind of data reconstruction method and device | |
US10827035B2 (en) | Data uniqued by canonical URL for rest application | |
CN108960801A (en) | Transaction record management method, system and storage medium based on block chain technology |
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 | ||
CB02 | Change of applicant information |
Address after: Room 306, No. 799, Ximen Road, Chengqiao Town, Chongming District, Shanghai 202150 Applicant after: SHANGHAI I2FINANCE SOFTWARE CO.,LTD. Address before: Room 2076, area C, building 8, No.2, Guanshan Road, Chengqiao Town, Chongming District, Shanghai 202150 Applicant before: SHANGHAI I2FINANCE SOFTWARE CO.,LTD. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |