CN107341212A - A kind of buffering updating method and equipment - Google Patents

A kind of buffering updating method and equipment Download PDF

Info

Publication number
CN107341212A
CN107341212A CN201710495559.XA CN201710495559A CN107341212A CN 107341212 A CN107341212 A CN 107341212A CN 201710495559 A CN201710495559 A CN 201710495559A CN 107341212 A CN107341212 A CN 107341212A
Authority
CN
China
Prior art keywords
data
tables
file
target journaling
daily record
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
CN201710495559.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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710495559.XA priority Critical patent/CN107341212A/en
Publication of CN107341212A publication Critical patent/CN107341212A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Abstract

The invention discloses a kind of buffering updating method, methods described includes:Binary system binlog journal files corresponding to database in monitoring objective Relational DBMS;Judge to whether there is target journaling file in the journal file, wherein, the target journaling file is the journal file with new content;If it is, parsing the target journaling file, and under conditions of the target journaling file comprises at least daily record write-in, daily record deletion and daily record renewal sentence, parse due to the target journaling file change and produce the tables of data of change;According to the tables of data, cache contents are updated.The invention also discloses a kind of buffer update equipment, when deposit data generates, it can be read from parsing to obtain its related tables of data in the daily record of database, so as to the renewal cached according to packet, so there is no need to increase additional code to safeguard buffer update process.

Description

A kind of buffering updating method and equipment
Technical field
The present invention relates to mobile caching update method field, more particularly to a kind of buffering updating method and equipment.
Background technology
The central processing unit speed and the otherness of memory speed that caching technology can be used in settlement server product are asked Topic, while can also improve the response speed to user's request.At present, general data buffer storage scheme is by former database Data are saved in server, but when the data in database change, it is necessary to synchronized update caching in corresponding number According to.
The scheme that prior art uses has:Timing renewal caching, can have data renewal can not be communicated to user in time Problem, but the internet product that less suitable requirement of real-time is very high;It can also be updated using background page operation data, Need to write code when thering is new demand or demand to change and realized, it is more troublesome, and need the code safeguarded too many, efficiency is very It is low.
The content of the invention
It is a primary object of the present invention to propose a kind of buffering updating method and equipment, it is intended to, can be from when deposit data generates Its related tables of data is parsed to obtain in the daily record of its reading database, so that the renewal cached according to packet, thus Additional code need not be increased to safeguard buffer update process.
To achieve the above object, the present invention proposes a kind of buffering updating method, and methods described includes:
Binary system binlog journal files corresponding to database in monitoring objective Relational DBMS;
Judge to whether there is target journaling file in the journal file, wherein, the target journaling file is with new Increase the journal file of content;
If it is, parsing the target journaling file, and daily record write-in, daily record are comprised at least in the target journaling file Delete with conditions of daily record renewal sentence, parse due to the target journaling file change and produce the tables of data of change;
According to the tables of data, cache contents are updated.
Optionally, it is described according to the tables of data, cache contents are updated, including:
According to the title of the tables of data, inquire about from cache key associated data Hash table and connect with what the tables of data associated Mouth list;
According to the interface list, cache contents are updated.
Optionally, it is described according to the interface list, cache contents are updated, including:
Interface interchange function in the interface list, caching is updated.
Optionally, binary system binlog daily records corresponding to database in the monitoring objective Relational DBMS File, including:
According to the default monitoring cycle, binary system corresponding to database in monitoring objective Relational DBMS Binlog journal files.
Optionally, arranged in the cache key associated data Hash table comprising data table name and associated cache key Table.
Optionally, it is described according to the tables of data, cache contents are updated, including:
According to the tables of data, data to be cached are obtained;
The data to be cached are put into the first buffer area;
Delete former data cached corresponding to the tables of data.
Compared to prior art, buffering updating method proposed by the invention, pass through monitoring objective relational data depositary management Binary system binlog journal files corresponding to database in reason system, it whether there is the mesh with new content in journal file The target journaling file is parsed when marking journal file, and is deleted in the target journaling file including at least daily record write-in, daily record Under conditions of sentence is updated with daily record, parse due to the target journaling file change and produce the tables of data of change;According to Cache contents are updated by the tables of data.Using the embodiment of the present invention, during data cached generation, data can be read from Its related tables of data is parsed to obtain in the daily record in storehouse, so as to the renewal cached according to packet, so there is no need to increase Additional code safeguards buffer update process.
In addition, to achieve the above object, the present invention proposes a kind of buffer update equipment, the buffer update equipment bag Include:Memory, processor and communication bus;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used for buffer update program, to realize following steps:
Binary system binlog journal files corresponding to database in monitoring objective Relational DBMS;
Judge to whether there is target journaling file in the journal file, wherein, the target journaling file is with new Increase the journal file of content;
If it is, parsing the target journaling file, and daily record write-in, daily record are comprised at least in the target journaling file Delete with conditions of daily record renewal sentence, parse due to the target journaling file change and produce the tables of data of change;
According to the tables of data, cache contents are updated.
Optionally, the processor is additionally operable to perform buffer update program, to realize following steps:
According to the title of the tables of data, inquire about from cache key associated data Hash table and connect with what the tables of data associated Mouth list;
According to the interface list, cache contents are updated.
Optionally, the processor is additionally operable to execution and answers buffer update program, to realize following steps:
Interface interchange function in the interface list, caching is updated.
Optionally, the processor is used to perform buffer update program, to realize following steps:
According to the default monitoring cycle, binary system corresponding to database in monitoring objective Relational DBMS Binlog journal files.
Optionally, the processor is used to perform buffer update program, to realize following steps:
According to the tables of data, data to be cached are obtained;
The data to be cached are put into the first buffer area;
Delete former data cached corresponding to the tables of data.
Compared to prior art, buffer update equipment proposed by the invention, pass through monitoring objective relational data depositary management Binary system binlog journal files corresponding to database in reason system, it whether there is the mesh with new content in journal file The target journaling file is parsed when marking journal file, and is deleted in the target journaling file including at least daily record write-in, daily record Under conditions of sentence is updated with daily record, parse due to the target journaling file change and produce the tables of data of change;According to Cache contents are updated by the tables of data.During data cached generation, it can be read from parsing to obtain it in the daily record of database Related tables of data, so there is no need to increase additional code to safeguard buffer update process.
To achieve the above object, the present invention proposes a kind of computer-readable recording medium, described applied to mobile terminal Computer-readable recording medium storage has one or more program, and one or more of programs can be by one or more Computing device, so that one or more of computing device following steps:
Binary system binlog journal files corresponding to database in monitoring objective Relational DBMS;
Judge to whether there is target journaling file in the journal file, wherein, the target journaling file is with new Increase the journal file of content;
If it is, parsing the target journaling file, and daily record write-in, daily record are comprised at least in the target journaling file Delete with conditions of daily record renewal sentence, parse due to the target journaling file change and produce the tables of data of change;
According to the tables of data, cache contents are updated.
Optionally, one or more of programs can realize following steps by one or more computing device:
According to the title of the tables of data, inquire about from cache key associated data Hash table and connect with what the tables of data associated Mouth list;
According to the interface list, cache contents are updated.
Optionally, one or more of programs can realize following steps by one or more computing device:
Interface interchange function in the interface list, caching is updated.
Optionally, one or more of programs can realize following steps by one or more computing device:
According to the default monitoring cycle, binary system corresponding to database in monitoring objective Relational DBMS Binlog journal files.
Optionally, one or more of programs can realize following steps by one or more computing device:
Data table name and associated cache key list are included in the cache key associated data Hash table.
Optionally, one or more of programs can realize following steps by one or more computing device:
According to the tables of data, data to be cached are obtained;
The data to be cached are put into the first buffer area;
Delete former data cached corresponding to the tables of data.
Compared to prior art, computer-readable recording medium proposed by the invention, pass through monitoring objective relationship type number According to binary system binlog journal files corresponding to database in base management system, whether there is in journal file has in newly-increased Parse the target journaling file during target journaling file of appearance, and the target journaling file comprise at least daily record write-in, Under conditions of daily record deletion and daily record renewal sentence, parse due to the target journaling file change and produce the data of change Table;According to the tables of data, cache contents are updated.During data cached generation, it can be read from the daily record of database Its related tables of data is parsed to obtain, so there is no need to increase additional code to safeguard buffer update process.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing an optional mobile terminal in each embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic flow sheet of buffering updating method of the present invention;
Fig. 4 is the first embodiment schematic diagram of application buffering updating method of the present invention;
Fig. 5 is second of embodiment schematic diagram of application buffering updating method of the present invention;
Fig. 6 is the structural representation of buffer update equipment of the present invention;
Fig. 7 is the structural representation of computer-readable recording medium of the present invention.
Reference:
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only Be advantageous to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), guider, wearable device, Intelligent bracelet, pedometer etc. move Dynamic terminal, and the fixed terminal such as digital TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware architecture diagram for a kind of mobile terminal of each embodiment of the realization present invention, the shifting Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103rd, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the part such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or less parts, Either combine some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station Downlink information receive after, handled to processor 110;In addition, up data are sent to base station.Generally, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrate Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can be according to need To be omitted in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is receiving or It is sound that the voice data stored in memory 109, which is converted into audio signal and exported,.Moreover, audio output unit 103 The audio output related to the specific function that mobile terminal 100 performs can also be provided (for example, call signal receives sound, disappeared Breath receives sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after the processing of graphics processor 1041 can be deposited Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound Caused noise or interference during frequency signal.
Mobile terminal 100 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it (for example user uses any suitable objects or annex such as finger, stylus on contact panel 1071 or in contact panel 1071 Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc. One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel 1061 be the part independent as two to realize the input of mobile terminal and output function, but in certain embodiments, can Input and the output function of mobile terminal are realized so that contact panel 1071 and display panel 1061 is integrated, is not done herein specifically Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 100.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection Individual part, by running or performing the software program and/or module that are stored in memory 109, and call and be stored in storage Data in device 109, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) to all parts power supply, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system being based on below to the mobile terminal of the present invention enters Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system Unite as the LTE system of universal mobile communications technology, the UE that the LTE system includes communicating connection successively (User Equipment, is used Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling between EPC203, there is provided carrying and connection management.HSS2032 is all to manage for providing some registers Such as the function of attaching position register (not shown) etc, and preserve some and used about service features, data rate etc. The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the inventive method is proposed.
To solve prior art problem, the present invention proposes that a kind of buffering updating method, equipment and one kind are computer-readable Storage medium, it is described in detail individually below.
It should be noted that a kind of buffering updating method provided in an embodiment of the present invention, equipment and a kind of computer can Storage medium is read, can realize and its association caching is automatically updated when database data changes.
As shown in figure 3, in the present embodiment, buffering updating method can be divided into following steps:Step S310 is:Monitor mesh Mark binary system binlog journal files corresponding to database in Relational DBMS;Step S320 is:Described in judgement It whether there is target journaling file in journal file, wherein, the target journaling file is the journal file with new content; Step S330 is:In the case where S320 judged result is to be, the target journaling file is parsed, and in the target journaling Under conditions of file comprises at least daily record write-in, daily record deletion and daily record renewal sentence, parse due to the target journaling file Change and produce the tables of data of change;Step S340 is:According to the tables of data, cache contents are updated.It is above-mentioned these Step is according to different demand adjustment orders, or omits some steps.Or the step of other can also be supplemented according to demand.
It is understood that the executive agent of the buffering updating method of the embodiment of the present invention can be buffer update equipment, The application cache more new equipment is operated in server, is called when needing to carry out buffer update.
S310, binary system binlog journal files corresponding to database in monitoring objective Relational DBMS.
It should be noted that user obtains data by HTTP interface to access server.Server is according to interface name Carry out the coding of cache key with parameter value, and by it is all it is data cached deposit in the buffer, such as Redis of current main flow, MemCache.Coding rule is interface nameParameter name=parameter value & parameter names=parameter value 2.Such as an interface name is List of application GetAppList is obtained, parameter is the page number 1, single page data volume 20.So the cache key is " GetAppList PageNo=1&PageSize=2 ".When interface method generation cache key is called, server can access number according to it According to the daily record in storehouse, its associated tables of data is parsed, such as using table, application class table, and is stored in cache key associated data In table, while in order to improve systematic function, portion is also write in the cache key associated data Hash table of internal memory, the key of the Hash table It is data table name, value is its associated cache key list.
It should be noted that MySQL is a Relational DBMS, developed by MySQL AB companies of Sweden, Belong to product under Oracle at present.MySQL is one of most popular Relational DBMS, in terms of WEB application, MySQL is best RDBMS (Relational Database Management System, relational database management system) Application software.MySQL is a kind of relational database management system, and relational database is saved the data in different tables, without It is that all data are placed in one big warehouse, which adds speed and improves flexibility.
It is understood that the task operating of MySQL database can be all embodied in binary system BINLOG journal files, institute When journal file changes, to show that the data in database change, otherwise, database does not change.That , pass through binary log file corresponding to monitoring data storehouse, you can monitor the data variation of database.
S320, judge to whether there is target journaling file in the journal file, wherein, the target journaling file is tool There is the journal file of new content, if it is, performing S330.
MySQL daily records:Mainly include:Error log, inquiry log, slow inquiry log, transaction journal, binary log; Daily record is the important component of mysql databases.The change occurred during the operation of mysql databases is record in journal file Change;That is it is used for recording the client connection state of mysql databases, the implementation status of SQL statement and error message etc.. When database is by unexpected failure, the reason for document lending being checked by daily record, and journal file can be passed through Carry out data recovery.
Binary log is also called change daily record, is mainly used in record modification data or is possible to cause what data changed Mysql sentences, and have recorded sentence time of origin, perform duration, the data operated etc..Thus binary log is passed through It can inquire about in mysql databases and which change carried out.So journal file can be arrived by the persistently monitoring to journal file In change, when journal file changes, the journal file for determining content change is target journaling file.
S330, the target journaling file is parsed, and deleted in the target journaling file including at least daily record write-in, daily record Under conditions of sentence is updated with daily record, parse due to the target journaling file change and produce the tables of data of change.
It should be noted that when journal file has new content, monitor task parsing daily record, if daily record belong to write, Delete or update sentence, further parse the tables of data of its change, then submit buffer update task, the suction parameter of task is The title of the tables of data.
Tables of data in the embodiment of the present invention refers to each specific table data store, is stored in database.Example Such as the commodity in shopping website, the parameter for having commodity is stored in tables of data, specifically, the data inside tables of data can include Trade name, price, picture etc..The database of different functions can corresponding to tables of data differ, in the embodiment of the present invention Data sheet form is merely exemplary, does not form the specific restriction to the embodiment of the present invention.
It will be appreciated by persons skilled in the art that by the change of target journaling file, can specifically be changed Content, the content of change is carried out with tables of data it is corresponding, so as to parse the specific change in tables of data again.
Exemplary, target journaling file change corresponds to commodity A change, then finds number by commodity A change According to the information of corresponding commodity A in table, such as commodity A title, specification, picture, commodity picture is obtained by parsing and changed, The width of picture 2 corresponding to newly-increased commodity A.
S340, according to the tables of data, cache contents are updated.
, can be according to the title of the tables of data, from cache key associated data Hash table in one embodiment of the present of invention It is middle to inquire about the interface list associated with the tables of data;According to the interface list, cache contents are updated.According to described Cache contents are updated by the interface interchange function in interface list.
Interface list is exactly that many interfaces are formed, and the corresponding user request of each interface, passes through this interface Some specific caching can be generated, so a user asks a corresponding caching, so tables of data can be correspondingly multiple Interface.When tables of data is associated with multiple cachings, it is possible to be related to different interface methods, so there is this method row
In buffer update task, according to the title of the tables of data, from cache key associated data Hash table described above In, find the interface method list of tables of data association.Then the secondary tasks of buffer update are submitted in thread pool again, Its suction parameter is cache key.It can so ensure that the renewal of caching does not have when a tables of data associates multiple cache key Hysteresis.
In the secondary tasks of buffer update, its interface method and parameter value are parsed according to cache key.Then this is called to connect Mouth method, is updated to caching.Such as the tables of data of renewal is application class table, its cache key associated is “GetAppListPageNo=1&PageSize=2 ", then can parse its interface method is GetAppList, parameter It is equal to 1, PageSize for PageNo and is equal to 2.Then, call GetAppList (1,2) that cache size can be generated.
In one embodiment of the present of invention, can also be set, specifically, according to default monitoring cycle, monitoring the monitoring cycle Binary system binlog journal files corresponding to database in relationship by objective (RBO) type data base management system.The cycle of monitor task can be with It is adjusted in the system of server sets the page, such as 1 second, 5 seconds, 10 seconds.It is understood that the cycle of monitoring gets over It is short, obtain that delta data is more timely, and Consumer's Experience is better, but the pressure of system is will also result in, so being accumulated according to multiple experience It is tired, obtain monitoring Sunday when being 1 second, too big system pressure will not be also caused while can ensure Consumer's Experience.
Pass through the embodiment of the present invention, it is ensured that when data renewal is frequent, caching can quickly be updated.User is just The change of data can be seen in time, so as to improve Consumer's Experience.
It is described cache contents to be updated according to the tables of data, including:According to the tables of data, obtain and wait to cache Data;The data to be cached are put into the first buffer area;Delete former data cached corresponding to the tables of data.
Using the embodiment of the present invention, go for double-buffer area, except the support to single buffer area, the program is also supported Double buffering.I.e. when data cached renewal, another buffer area is first write, then the data of former buffer area are deleted.So use Family is exactly noninductive for data cached more new experience, ensure that the optimization of Consumer's Experience.
Compared to prior art, buffering updating method proposed by the invention, pass through monitoring objective relational data depositary management Binary system binlog journal files corresponding to database in reason system, it whether there is the mesh with new content in journal file The target journaling file is parsed when marking journal file, and is deleted in the target journaling file including at least daily record write-in, daily record Under conditions of sentence is updated with daily record, parse due to the target journaling file change and produce the tables of data of change;According to Cache contents are updated by the tables of data.Using the embodiment of the present invention, during data cached generation, data can be read from Its related tables of data is parsed to obtain in the daily record in storehouse, so as to the renewal cached according to packet, so there is no need to increase Additional code safeguards buffer update process.
Referring to Fig. 4, Fig. 4 is the embodiment schematic diagram of application buffering updating method of the present invention, is comprised the following steps:
S410, default monitoring cycle are 5s, two are entered corresponding to database in monitoring objective Relational DBMS Binlog journal files processed;
S420, judge to whether there is target journaling file in the journal file, wherein, the target journaling file is tool There is the journal file of new content;
S430, if it is, parsing the target journaling file, and log write is comprised at least in the target journaling file Enter, under conditions of daily record deletion and daily record renewal sentence, parse due to the target journaling file change and produce the number of change According to table;
S440, according to the title of the tables of data, inquiry and tables of data pass from cache key associated data Hash table The interface list of connection;According to the interface list, cache contents are updated.
Referring to Fig. 5, Fig. 5 is second of embodiment schematic diagram of application data cache method of the present invention, including such as Lower step:
Whether S510, monitoring MySQL binary files change;
S520, if it is, the journal file that parsing is newly-increased, and obtain operational order and the operation of the daily record for change Table;
S530, and journal change for write, delete and/or more newer command in the case of, its pass is obtained according to data table name The cache key list of connection;
S540, parsed according to the information of cache key in cache key list, and obtain interface and corresponding parameter;
S550, buffer update is carried out according to interface and parameter.
Referring to Fig. 6, Fig. 6 is buffer update equipment 600, and applied to mobile terminal, the multidate information display device includes: Processor 610, memory 620 and communication bus 630;
The communication bus 630 is used to realize the connection communication between processor 610 and memory 620;
The processor 620 is used to perform buffer update program, to realize following steps:
Binary system binlog journal files corresponding to database in monitoring objective Relational DBMS;
Judge to whether there is target journaling file in the journal file, wherein, the target journaling file is with new Increase the journal file of content;
If it is, parsing the target journaling file, and daily record write-in, daily record are comprised at least in the target journaling file Delete with conditions of daily record renewal sentence, parse due to the target journaling file change and produce the tables of data of change;
According to the tables of data, cache contents are updated.
Further, the processor 620 is additionally operable to perform buffer update program, to realize following steps:
According to the title of the tables of data, inquire about from cache key associated data Hash table and connect with what the tables of data associated Mouth list;
According to the interface list, cache contents are updated.
Further, the processor 620 is additionally operable to perform buffer update program, to realize following steps:
Cache contents are updated by the interface interchange function in the interface list.
Further, the processor 620 is used to perform buffer update program, to realize following steps:
According to the default monitoring cycle, binary system corresponding to database in monitoring objective Relational DBMS Binlog journal files.
Further, the processor 620 is additionally operable to perform buffer update program, to realize following steps:
According to the tables of data, data to be cached are obtained;
The data to be cached are put into the first buffer area;
Delete former data cached corresponding to the tables of data.
Compared to prior art, buffer update equipment proposed by the invention, pass through monitoring objective relational data depositary management Binary system binlog journal files corresponding to database in reason system, it whether there is the mesh with new content in journal file The target journaling file is parsed when marking journal file, and is deleted in the target journaling file including at least daily record write-in, daily record Under conditions of sentence is updated with daily record, parse due to the target journaling file change and produce the tables of data of change;According to Cache contents are updated by the tables of data.Using the embodiment of the present invention, during data cached generation, data can be read from Its related tables of data is parsed to obtain in the daily record in storehouse, so as to the renewal cached according to packet, so there is no need to increase Additional code safeguards buffer update process.
It should be noted that MySQL is a Relational DBMS, developed by MySQL AB companies of Sweden, Belong to product under Oracle at present.MySQL is one of most popular Relational DBMS, in terms of WEB application, MySQL is best RDBMS (Relational Database Management System, relational database management system) Application software.MySQL is a kind of relational database management system, and relational database is saved the data in different tables, without It is that all data are placed in one big warehouse, which adds speed and improves flexibility.
It is understood that the task operating of MySQL database can be all embodied in binary system BINLOG journal files, institute When journal file changes, to show that the data in database change, otherwise, database does not change.That , pass through binary log file corresponding to monitoring data storehouse, you can monitor the data variation of database.
MySQL daily records:Mainly include:Error log, inquiry log, slow inquiry log, transaction journal, binary log; Daily record is the important component of mysql databases.The change occurred during the operation of mysql databases is record in journal file Change;That is it is used for recording the client connection state of mysql databases, the implementation status of SQL statement and error message etc.. When database is by unexpected failure, the reason for document lending being checked by daily record, and journal file can be passed through Carry out data recovery.
Binary log is also called change daily record, is mainly used in record modification data or is possible to cause what data changed Mysql sentences, and have recorded sentence time of origin, perform duration, the data operated etc..Thus binary log is passed through It can inquire about in mysql databases and which change carried out.So journal file can be arrived by the persistently monitoring to journal file In change, when journal file changes, the journal file for determining content change is target journaling file.
It should be noted that when journal file has new content, monitor task parsing daily record, if daily record belong to write, Delete or update sentence, further parse the tables of data of its change, then submit buffer update task, the suction parameter of task is The title of the tables of data.
Tables of data in the embodiment of the present invention refers to each specific table data store, is stored in database.Example Such as the commodity in shopping website, the parameter for having commodity is stored in tables of data, specifically, the data inside tables of data can include Trade name, price, picture etc..The database of different functions can corresponding to tables of data differ, in the embodiment of the present invention Data sheet form is merely exemplary, does not form the specific restriction to the embodiment of the present invention.
It will be appreciated by persons skilled in the art that by the change of target journaling file, can specifically be changed Content, the content of change is carried out with tables of data it is corresponding, so as to parse the specific change in tables of data again.
Exemplary, target journaling file change corresponds to commodity A change, then finds number by commodity A change According to the information of corresponding commodity A in table, such as commodity A title, specification, picture, commodity picture is obtained by parsing and changed, The width of picture 2 corresponding to newly-increased commodity A.
S340, according to the tables of data, cache contents are updated.
, can be according to the title of the tables of data, from cache key associated data Hash table in one embodiment of the present of invention It is middle to inquire about the interface list associated with the tables of data;According to the interface list, cache contents are updated.According to described Cache contents are updated by the interface interchange function in interface list.
Interface list is exactly that many interfaces are formed, and the corresponding user request of each interface, passes through this interface Some specific caching can be generated, so a user asks a corresponding caching, so tables of data can be correspondingly multiple Interface.When tables of data is associated with multiple cachings, it is possible to be related to different interface methods, so there is this method row
In buffer update task, according to the title of the tables of data, from cache key associated data Hash table described above In, find the interface method list of tables of data association.Then the secondary tasks of buffer update are submitted in thread pool again, Its suction parameter is cache key.It can so ensure that the renewal of caching does not have when a tables of data associates multiple cache key Hysteresis.
In the secondary tasks of buffer update, its interface method and parameter value are parsed according to cache key.Then this is called to connect Mouth method, is updated to caching.Such as the tables of data of renewal is application class table, its cache key associated is “GetAppListPageNo=1&PageSize=2 ", then can parse its interface method is GetAppList, parameter It is equal to 1, PageSize for PageNo and is equal to 2.Then, call GetAppList (1,2) that cache size can be generated.
In one embodiment of the present of invention, can also be set, specifically, according to default monitoring cycle, monitoring the monitoring cycle Binary system binlog journal files corresponding to database in relationship by objective (RBO) type data base management system.The cycle of monitor task can be with It is adjusted in the system of server sets the page, such as 1 second, 5 seconds, 10 seconds.It is understood that the cycle of monitoring gets over It is short, obtain that delta data is more timely, and Consumer's Experience is better, but the pressure of system is will also result in, so being accumulated according to multiple experience It is tired, obtain monitoring Sunday when being 1 second, too big system pressure will not be also caused while can ensure Consumer's Experience.
Further, present invention also offers a kind of computer-readable recording medium 700, referring to Fig. 7, applied to mobile whole End, the computer-readable recording medium storage have one or more program 710, and one or more of programs 710 can Performed by one or more processor 720, to realize following steps:
Binary system binlog journal files corresponding to database in monitoring objective Relational DBMS;
Judge to whether there is target journaling file in the journal file, wherein, the target journaling file is with new Increase the journal file of content;
If it is, parsing the target journaling file, and daily record write-in, daily record are comprised at least in the target journaling file Delete with conditions of daily record renewal sentence, parse due to the target journaling file change and produce the tables of data of change;
According to the tables of data, cache contents are updated.
Further, one or more of programs 710 are also performed by one or more of processors 720, with Realize following steps:
According to the title of the tables of data, inquire about from cache key associated data Hash table and connect with what the tables of data associated Mouth list;
According to the interface list, cache contents are updated.
Further, one or more of programs 710 are also performed by one or more of processors 720, with Realize following steps:
Cache contents are updated by the interface interchange function in the interface list.
Further, one or more of programs 710 are also performed by one or more of processors 720, with Realize following steps:
According to the default monitoring cycle, binary system corresponding to database in monitoring objective Relational DBMS Binlog journal files.
Further, one or more of programs 710 are also performed by one or more of processors 720, with Realize following steps:
According to the tables of data, data to be cached are obtained;
The data to be cached are put into the first buffer area;
Delete former data cached corresponding to the tables of data.
Compared to prior art, computer-readable recording medium 700 proposed by the invention, pass through monitoring objective relationship type Binary system binlog journal files corresponding to database in data base management system, it whether there is in journal file with newly-increased The target journaling file is parsed during the target journaling file of content, and log write is comprised at least in the target journaling file Enter, under conditions of daily record deletion and daily record renewal sentence, parse due to the target journaling file change and produce the number of change According to table;According to the tables of data, cache contents are updated., can be from it during data cached generation using the embodiment of the present invention Its related tables of data is parsed to obtain in the daily record of reading database, so that the renewal cached according to packet, thus not Need to increase additional code to safeguard buffer update process.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner, or the network equipment, robot etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of buffering updating method, it is characterised in that methods described includes:
Binary system binlog journal files corresponding to database in monitoring objective Relational DBMS;
Judge to whether there is target journaling file in the journal file, wherein, the target journaling file is with newly-increased interior The journal file of appearance;
If it is, parsing the target journaling file, and daily record write-in, daily record deletion are comprised at least in the target journaling file Under conditions of updating sentence with daily record, parse due to the target journaling file change and produce the tables of data of change;
According to the tables of data, cache contents are updated.
2. buffering updating method according to claim 1, it is characterised in that it is described according to the tables of data, in caching Appearance is updated, including:
According to the title of the tables of data, the interfaces column associated with the tables of data is inquired about from cache key associated data Hash table Table;
According to the interface list, cache contents are updated.
3. buffering updating method according to claim 2, it is characterised in that it is described according to the interface list, to caching Content is updated, including:
Cache contents are updated by the interface interchange function in the interface list.
4. buffering updating method according to claim 1, it is characterised in that the monitoring objective relational data library management Binary system binlog journal files corresponding to database in system, including:
According to the default monitoring cycle, binary system binlog days corresponding to database in monitoring objective Relational DBMS Will file.
5. buffering updating method according to claim 3, it is characterised in that it is described according to the tables of data, in caching Appearance is updated, including:
According to the tables of data, data to be cached are obtained;
The data to be cached are put into the first buffer area;
Delete former data cached corresponding to the tables of data.
6. a kind of buffer update equipment, it is characterised in that the buffer update equipment includes:Memory, processor and communication are total Line;
The communication bus is used to realize the connection communication between processor and memory;
The processor is used for buffer update program, to realize following steps:
Binary system binlog journal files corresponding to database in monitoring objective Relational DBMS;
Judge to whether there is target journaling file in the journal file, wherein, the target journaling file is with newly-increased interior The journal file of appearance;
If it is, parsing the target journaling file, and daily record write-in, daily record deletion are comprised at least in the target journaling file Under conditions of updating sentence with daily record, parse due to the target journaling file change and produce the tables of data of change;
According to the tables of data, cache contents are updated.
7. buffer update equipment according to claim 6, it is characterised in that the processor is additionally operable to perform buffer update Program, to realize following steps:
According to the title of the tables of data, the interfaces column associated with the tables of data is inquired about from cache key associated data Hash table Table;
According to the interface list, cache contents are updated.
8. the buffer update equipment according to claim 6 or 7, it is characterised in that the processor, which is additionally operable to execution, to be delayed More new procedures are deposited, to realize following steps:
Interface interchange function in the interface list, caching is updated.
9. buffer update equipment according to claim 6, it is characterised in that the processor is used to perform buffer update journey Sequence, to realize following steps:
According to the default monitoring cycle, binary system binlog days corresponding to database in monitoring objective Relational DBMS Will file.
A kind of 10. computer-readable recording medium, applied to mobile terminal, it is characterised in that the computer-readable storage medium Matter is stored with one or more program, one or more of programs can by one or more computing device so that The step of buffering updating method of one or more of computing devices as described in claim any one of 1-5.
CN201710495559.XA 2017-06-26 2017-06-26 A kind of buffering updating method and equipment Pending CN107341212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710495559.XA CN107341212A (en) 2017-06-26 2017-06-26 A kind of buffering updating method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710495559.XA CN107341212A (en) 2017-06-26 2017-06-26 A kind of buffering updating method and equipment

Publications (1)

Publication Number Publication Date
CN107341212A true CN107341212A (en) 2017-11-10

Family

ID=60221094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710495559.XA Pending CN107341212A (en) 2017-06-26 2017-06-26 A kind of buffering updating method and equipment

Country Status (1)

Country Link
CN (1) CN107341212A (en)

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977469A (en) * 2017-12-22 2018-05-01 腾讯科技(深圳)有限公司 To the method, apparatus and terminal being managed recently using file
CN108491332A (en) * 2018-04-04 2018-09-04 浙江小泰科技有限公司 A kind of real-time buffering updating method and system based on Redis
CN108874964A (en) * 2018-06-07 2018-11-23 火烈鸟网络(广州)股份有限公司 A kind of method and system in monitoring data library
CN108958652A (en) * 2018-06-25 2018-12-07 郑州云海信息技术有限公司 A kind of method, apparatus and computer readable storage medium of record log information
CN109413159A (en) * 2018-09-27 2019-03-01 平安普惠企业管理有限公司 Cache file update method, device, computer equipment and storage medium
CN109446262A (en) * 2018-10-31 2019-03-08 成都四方伟业软件股份有限公司 A kind of data assemblage method and device
CN109597817A (en) * 2018-11-14 2019-04-09 阿里巴巴集团控股有限公司 A kind of caching data processing method, device, equipment and medium
CN109828980A (en) * 2019-02-19 2019-05-31 北京字节跳动网络技术有限公司 Data cache method, device, terminal and storage medium
CN109857812A (en) * 2019-02-27 2019-06-07 珠海天燕科技有限公司 A kind of method and apparatus handling data in caching
CN109871388A (en) * 2019-02-19 2019-06-11 北京字节跳动网络技术有限公司 Data cache method, device, whole electronic equipment and storage medium
CN109977129A (en) * 2019-03-28 2019-07-05 中国联合网络通信集团有限公司 Multi-stage data caching method and equipment
CN110555042A (en) * 2018-03-30 2019-12-10 车伯乐(北京)信息科技有限公司 Real-time data retrieval method, device and system
CN110795032A (en) * 2019-10-18 2020-02-14 苏州浪潮智能科技有限公司 Method, system and related device for updating software layer cache in storage system
CN110807040A (en) * 2019-10-30 2020-02-18 北京达佳互联信息技术有限公司 Method, device, equipment and storage medium for managing data
CN111026771A (en) * 2019-11-19 2020-04-17 拉货宝网络科技有限责任公司 Method for ensuring consistency of cache and database data
CN111078719A (en) * 2019-12-31 2020-04-28 北京互金新融科技有限公司 Data recovery method and device, storage medium and processor
CN111177161A (en) * 2019-11-07 2020-05-19 腾讯科技(深圳)有限公司 Data processing method and device, computing equipment and storage medium
CN111274254A (en) * 2020-01-16 2020-06-12 上海米哈游天命科技有限公司 Data updating method, device, equipment and storage medium
CN111506261A (en) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 Caching method, device, equipment and storage medium based on double cache areas
CN111797104A (en) * 2020-06-12 2020-10-20 中国建设银行股份有限公司 Method and device for acquiring data change condition and electronic equipment
CN112035471A (en) * 2020-08-28 2020-12-04 中国平安人寿保险股份有限公司 Transaction processing method and computer equipment
CN112905618A (en) * 2021-04-06 2021-06-04 浙江网商银行股份有限公司 Data processing method and device
CN113094208A (en) * 2021-04-02 2021-07-09 上海中通吉网络技术有限公司 Method and system for realizing data recovery based on binding interface and Binlog log
CN117235024A (en) * 2023-11-16 2023-12-15 江西国泰利民信息科技有限公司 Cache updating method, system, storage medium and equipment based on code analysis

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116627A (en) * 2013-01-31 2013-05-22 汉柏科技有限公司 Database access method with high concurrency service-oriented architecture (SOA) technology and system
CN104572689A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 Data synchronizing method, device and system
CN105306457A (en) * 2015-09-30 2016-02-03 努比亚技术有限公司 Data caching device and method
US20160055166A1 (en) * 2014-08-22 2016-02-25 Steve Guilford Systems, Apparatus, and Methods for Accessing Data from a Database as a File
CN105740383A (en) * 2016-01-27 2016-07-06 中国科学院计算技术研究所 Method and system for realizing data consistency of database and cache in big data platform
CN106126356A (en) * 2016-06-24 2016-11-16 努比亚技术有限公司 The realization of a kind of server buffer, generation method and system
CN106484869A (en) * 2016-10-12 2017-03-08 北京集奥聚合科技有限公司 A kind of distributed caching method based on mysql binlog and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103116627A (en) * 2013-01-31 2013-05-22 汉柏科技有限公司 Database access method with high concurrency service-oriented architecture (SOA) technology and system
CN104572689A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 Data synchronizing method, device and system
US20160055166A1 (en) * 2014-08-22 2016-02-25 Steve Guilford Systems, Apparatus, and Methods for Accessing Data from a Database as a File
CN105306457A (en) * 2015-09-30 2016-02-03 努比亚技术有限公司 Data caching device and method
CN105740383A (en) * 2016-01-27 2016-07-06 中国科学院计算技术研究所 Method and system for realizing data consistency of database and cache in big data platform
CN106126356A (en) * 2016-06-24 2016-11-16 努比亚技术有限公司 The realization of a kind of server buffer, generation method and system
CN106484869A (en) * 2016-10-12 2017-03-08 北京集奥聚合科技有限公司 A kind of distributed caching method based on mysql binlog and system

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977469A (en) * 2017-12-22 2018-05-01 腾讯科技(深圳)有限公司 To the method, apparatus and terminal being managed recently using file
CN107977469B (en) * 2017-12-22 2022-10-21 腾讯科技(深圳)有限公司 Method, device and terminal for managing recently used files
CN110555042B (en) * 2018-03-30 2023-06-20 车伯乐(北京)信息科技有限公司 Method, device and system for retrieving data in real time
CN110555042A (en) * 2018-03-30 2019-12-10 车伯乐(北京)信息科技有限公司 Real-time data retrieval method, device and system
CN108491332A (en) * 2018-04-04 2018-09-04 浙江小泰科技有限公司 A kind of real-time buffering updating method and system based on Redis
CN108874964A (en) * 2018-06-07 2018-11-23 火烈鸟网络(广州)股份有限公司 A kind of method and system in monitoring data library
CN108958652A (en) * 2018-06-25 2018-12-07 郑州云海信息技术有限公司 A kind of method, apparatus and computer readable storage medium of record log information
CN109413159A (en) * 2018-09-27 2019-03-01 平安普惠企业管理有限公司 Cache file update method, device, computer equipment and storage medium
CN109446262A (en) * 2018-10-31 2019-03-08 成都四方伟业软件股份有限公司 A kind of data assemblage method and device
CN109597817A (en) * 2018-11-14 2019-04-09 阿里巴巴集团控股有限公司 A kind of caching data processing method, device, equipment and medium
CN109828980A (en) * 2019-02-19 2019-05-31 北京字节跳动网络技术有限公司 Data cache method, device, terminal and storage medium
CN109871388A (en) * 2019-02-19 2019-06-11 北京字节跳动网络技术有限公司 Data cache method, device, whole electronic equipment and storage medium
CN109857812A (en) * 2019-02-27 2019-06-07 珠海天燕科技有限公司 A kind of method and apparatus handling data in caching
CN109977129A (en) * 2019-03-28 2019-07-05 中国联合网络通信集团有限公司 Multi-stage data caching method and equipment
CN110795032A (en) * 2019-10-18 2020-02-14 苏州浪潮智能科技有限公司 Method, system and related device for updating software layer cache in storage system
CN110807040A (en) * 2019-10-30 2020-02-18 北京达佳互联信息技术有限公司 Method, device, equipment and storage medium for managing data
CN110807040B (en) * 2019-10-30 2023-03-24 北京达佳互联信息技术有限公司 Method, device, equipment and storage medium for managing data
CN111177161B (en) * 2019-11-07 2023-08-15 腾讯科技(深圳)有限公司 Data processing method, device, computing equipment and storage medium
CN111177161A (en) * 2019-11-07 2020-05-19 腾讯科技(深圳)有限公司 Data processing method and device, computing equipment and storage medium
CN111026771A (en) * 2019-11-19 2020-04-17 拉货宝网络科技有限责任公司 Method for ensuring consistency of cache and database data
CN111026771B (en) * 2019-11-19 2023-11-07 拉货宝网络科技有限责任公司 Method for ensuring consistency of cache and database data
CN111078719A (en) * 2019-12-31 2020-04-28 北京互金新融科技有限公司 Data recovery method and device, storage medium and processor
CN111274254A (en) * 2020-01-16 2020-06-12 上海米哈游天命科技有限公司 Data updating method, device, equipment and storage medium
CN111506261A (en) * 2020-03-24 2020-08-07 平安国际智慧城市科技股份有限公司 Caching method, device, equipment and storage medium based on double cache areas
CN111797104A (en) * 2020-06-12 2020-10-20 中国建设银行股份有限公司 Method and device for acquiring data change condition and electronic equipment
CN112035471A (en) * 2020-08-28 2020-12-04 中国平安人寿保险股份有限公司 Transaction processing method and computer equipment
CN113094208A (en) * 2021-04-02 2021-07-09 上海中通吉网络技术有限公司 Method and system for realizing data recovery based on binding interface and Binlog log
CN113094208B (en) * 2021-04-02 2024-04-09 上海中通吉网络技术有限公司 Method and system for realizing data recovery based on binding interface and Binlog log
CN112905618A (en) * 2021-04-06 2021-06-04 浙江网商银行股份有限公司 Data processing method and device
CN117235024A (en) * 2023-11-16 2023-12-15 江西国泰利民信息科技有限公司 Cache updating method, system, storage medium and equipment based on code analysis
CN117235024B (en) * 2023-11-16 2024-01-26 江西国泰利民信息科技有限公司 Cache updating method, system, storage medium and equipment based on code analysis

Similar Documents

Publication Publication Date Title
CN107341212A (en) A kind of buffering updating method and equipment
CN107688607A (en) The method and mobile terminal of a kind of database access, computer-readable recording medium
CN107330035A (en) Operation Log synchronous method, mobile terminal and computer-readable recording medium in a kind of database
CN107197017A (en) A kind of consuming method, terminal and computer-readable recording medium based on consumption queue
CN107508892A (en) A kind of page access method, server and computer-readable recording medium
CN107038245A (en) Page switching method, mobile terminal and storage medium
CN107193889A (en) Ad blocking method, terminal and computer-readable recording medium
CN107832163A (en) A kind of buffering updating method, server and computer-readable recording medium
CN107730303A (en) A kind of advertisement sending method, equipment and computer-readable recording medium
CN107133302A (en) Realize method, system, terminal and the computer-readable recording medium of data consistency
CN107749919A (en) A kind of application program page display method and equipment
CN107181700A (en) Control method, mobile terminal and the storage medium of application program for mobile terminal
CN107257510A (en) Video unifies player method, terminal and computer-readable recording medium
CN107911536A (en) A kind of across application program access method, equipment and computer-readable recording medium
CN107566605A (en) A kind of interactive interface processing method, equipment and computer-readable recording medium
CN107273433A (en) A kind of file scanning method, equipment and computer-readable recording medium
CN107426304A (en) Method, system and the proxy server of interactive media resource
CN108076134A (en) Record information acquisition method, terminal, server and computer readable storage medium
CN107133151A (en) A kind of daily record data processing method, equipment and computer-readable recording medium
CN107124466A (en) One kind prevents caching penetrating method and device, computer-readable recording medium
CN107135086A (en) One kind broadcast method for pushing and equipment, computer-readable recording medium
CN107133350A (en) Data-updating method, mobile terminal and storage medium based on search engine
CN107360211A (en) A kind of inserting method, relevant device and the computer-readable storage medium of information flow information
CN107833077A (en) Advertisement insertion and mobile terminal
CN107332883A (en) Information updating method, device and computer-readable recording medium

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

Application publication date: 20171110

RJ01 Rejection of invention patent application after publication