CN108829743A - Data cached update method, device, computer equipment and storage medium - Google Patents

Data cached update method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN108829743A
CN108829743A CN201810508481.5A CN201810508481A CN108829743A CN 108829743 A CN108829743 A CN 108829743A CN 201810508481 A CN201810508481 A CN 201810508481A CN 108829743 A CN108829743 A CN 108829743A
Authority
CN
China
Prior art keywords
target object
data cached
data
configuration
duration
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
CN201810508481.5A
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810508481.5A priority Critical patent/CN108829743A/en
Priority to PCT/CN2018/101083 priority patent/WO2019223137A1/en
Publication of CN108829743A publication Critical patent/CN108829743A/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/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Abstract

The embodiment of the invention discloses a kind of data cached update method, device, computer equipment and storage mediums, wherein the method includes:Determine to be treated for data cached target object, the target object is used for data cached file destination or object code row;The configuration object for configuring the data caching method of the target object is created in the target object;The data cached duration of the target object is preset according to the data caching method of the configuration object configuration;If the data cached duration of the target object is more than preset duration, the data cached of the target object is updated.The embodiment of the present invention dynamic more new data and can ensure the real-times of data.

Description

Data cached update method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of data cached update methods, device, computer equipment And storage medium.
Background technique
Currently, there is the data for much needing to obtain from background request in the page, these data or when updating the page every time It is all sent to backstage and sends request then data buffer storage, later just no longer when request is obtained or only needed for the first time Request is sent, but use is data cached, but use the data being cached.Both modes respectively have the advantage and disadvantage of oneself: The advantages of sending request to backstage every time is can to ensure that data that the page show are the newest data of lane database preservation, Weakness is the page big for data volume, and transmission request is larger for the operating pressure of background system every time, can consume resource, Sending request needs the time simultaneously, and front end is affected after showing speed certainty, that is to say, that the page loads not fast enough, user's body It tests impacted;The use of data cached advantage is to use data cached, does not need to retransmit request, so clothes will not be consumed Business device resource, while showing that speed is very fast;The disadvantage is that:When the page does not exit for a long time, the data of caching are used for a long time in the page, are led Real-time property is caused to be affected, that is to say, that the data that user browses to may be the data of for a long time preceding caching.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of data cached update method, device, computer equipment and storage Medium dynamic more new data and can ensure the real-times of data.
On the one hand, the embodiment of the invention provides a kind of data cached update method, this method includes:
Determine to be treated for data cached target object, the target object includes for data cached mesh Mark file or object code row;
The configuration object for configuring the data caching method of the target object is created in the target object;
The data cached duration of the target object is preset according to the data caching method of the configuration object configuration;
If the data cached duration of the target object is more than preset duration, the caching number of the target object is updated According to.
On the other hand, the embodiment of the invention provides a kind of data cached updating device, described device includes:
First determination unit, it is to be treated for data cached target object, the target object packet for determining It includes for data cached file destination or object code row;
Creating unit, for creating the data caching method for configuring the target object in the target object Configure object;
Setting unit, for presetting the target object according to the data caching method of the configuration object configuration Data cached duration;
Updating unit updates the target if the data cached duration for the target object is more than preset duration Object it is data cached.
Another aspect the embodiment of the invention also provides a kind of computer equipment, including memory, processor and is stored in On the memory and the computer program that can run on the processor, when the processor executes the computer program Realize data cached update method as described above.
It is described computer-readable to deposit in another aspect, the embodiment of the invention also provides a kind of computer readable storage medium Storage media be stored with one perhaps more than one program the one or more programs can by one or more than one Processor execute, to realize data cached update method as described above.
The embodiment of the present invention provides a kind of data cached update method, device, computer equipment and storage medium, wherein Method includes:Determine to be treated for data cached target object, the target object is used for data cached target File or object code row;Matching for the data caching method for configuring the target object is created in the target object Set object;The data cached duration of the target object is preset according to the data caching method of the configuration object configuration; If the data cached duration of the target object is more than preset duration, the data cached of the target object is updated.The present invention Embodiment dynamic more new data and can ensure the real-times of data.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic flow diagram of data cached update method provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow diagram of data cached update method provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow diagram of data cached update method provided in an embodiment of the present invention;
Fig. 4 be another embodiment of the present invention provides a kind of data cached update method schematic flow diagram;
Fig. 5 be another embodiment of the present invention provides a kind of data cached update method schematic flow diagram;
Fig. 6 is a kind of schematic block diagram of data cached updating device provided in an embodiment of the present invention;
Fig. 7 is a kind of another schematic block diagram of data cached updating device provided in an embodiment of the present invention;
Fig. 8 is a kind of another schematic block diagram of data cached updating device provided in an embodiment of the present invention;
Fig. 9 is a kind of another schematic block diagram of data cached updating device provided in an embodiment of the present invention;
Figure 10 is a kind of another schematic block diagram of data cached updating device provided in an embodiment of the present invention
Figure 11 is a kind of structure composition schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of data cached update method provided in an embodiment of the present invention.It should Method may operate in smart phone (such as Android phone, IOS mobile phone), tablet computer, laptop and intelligence and set In the terminals such as standby.Data processing method described in the embodiment of the present invention can save space resources and ensure the reality of data Shi Xing.Fig. 1 is the schematic flow diagram of data processing method provided in an embodiment of the present invention.As shown in Figure 1, the method comprising the steps of S101~S104.
S101, determines to be treated for data cached target object, and the target object includes for caching number According to file destination or object code row.
In embodiments of the present invention, the target object is referred to for data cached file destination or object code Row, if the target object is file destination, the file destination may include file destination title, target file type and mesh Mark file address etc.;If the target object be object code row, the object code row may include object code row position, The value that function belonging to object code row and object code row are returned;Specific target object can be wanted according to actual treatment It asks and voluntarily selects, be not limited thereto.In the present embodiment, it is illustrated by object code behavior example of target object, for example, In URL interface, it is provided with data cached code line, the request of URL interface requests data can be edited in the code line Function, for the request path of request data, under normal circumstances, which is the path URL, is matched in the path URL It is equipped with the address URL, set data cached code line can pass through the URL Address requests back-end data.
S102 creates the configuration pair for configuring the data caching method of the target object in the target object As.
In embodiments of the present invention, the target object is arranged in the method that configuration object can be created in the target object Data cached duration, the configuration object created is the code line as made of programming language editor, can in the code line To include the function for defining caching duration, or key assignments corresponding to the key name and key name for defining caching duration Etc., the programming language for creating the configuration object can be JavaScript language, C Plus Plus etc..For example, what is created matches Setting object is dataDelay, and the configuration path that back-end data is obtained in target object is [' group '] [' 0 '] [' personal '] after target object obtains back-end data by the path, can cache acquired data, pass through The data cached duration of target object is arranged in the mode of creation configuration object, it is ensured that target object updates caching number on time According to.Specifically, it has been more than configuration object that the data caching method, which as works as the data cached time interval of the target object, When set caching duration, the data cached update of the target object is triggered.
S103 presets the data cached of the target object according to the data caching method of the configuration object configuration Duration.
In embodiments of the present invention, the data cached duration of the target object is arranged according to the configuration object, for example, can To be time by defining the key name that created configuration object detaDelay caches duration for regulation, if the target is arranged Target cache data when it is 2 hours a length of, [' group '] [' 0 '] [' personal '] can be configured in the following manner .time value be 2*60*60 seconds, if be arranged the target object it is data cached when it is 10 hours a length of, can be in the following manner The value for being configured [' group '] [' 0 '] [' personal '] .time is 10*60*60 seconds.
S104 updates the slow of the target object if the data cached duration of the target object is more than preset duration Deposit data.
In embodiments of the present invention, the target object can all be first carried out in advance and be created before request data each time Configuration object further first carry out the code line that the configuration object is configured in advance, to judge that current target object delays The preset duration of deposit data executes the target object to obtain back-end data, eventually after having executed created configuration object End will record the current time of the target object request data, if the target object is cached data, terminal can obtain the mesh Time when mark object is the last data cached, the current time recorded by terminal and the target object recorded are most It is poor that time when close primary data cached make, and obtains the current time interval of the target object request data, compares institute The current time interval and preset duration for stating target object, if the current time interval of the target object has been more than default It is long, illustrate the data cached time-out of the target object, updates the data cached of the target object.Wherein, the target pair is updated The data cached method of elephant can be to initiate URL request again by the target object, for example, can pass through the target pair As the address the URL initiation request of data configured, and requested data cover the target object, to update the mesh Mark the data cached of object.
Further, as shown in Fig. 2, the step S104 includes step S201~S203.
S201 determines the data cached time interval of the target object.
In embodiments of the present invention, when the target object initiates URL request, terminal will record target object request The current time of data, if the target object is cached data, it is data cached that terminal can obtain the target object the last time When time, time of the current time recorded by terminal with the target object that is recorded when the last data cached It is poor make, and obtains the current time interval of the target object request data.
Identified time interval is compared by S202 with preset duration set by configuration object.
In embodiments of the present invention, the current time interval and preset duration of the target object, if the target The current time interval of object has been more than preset duration, illustrates the data cached time-out of the target object, updates the target object It is data cached.
S203 updates the target pair if identified time interval is more than preset duration set by configuration object Elephant it is data cached.
In embodiments of the present invention, the data cached method for updating the target object can be to pass through the target pair As initiating URL request again, for example, request of data can be initiated by the address URL that the target object is configured, and will be asked The data asked cover the target object, to update the data cached of the target object.
Further, as shown in figure 3, the step S104 further includes S301~S302.
S301 calls the path of the request data of the target object.
In embodiments of the present invention, configured with the path for request data in the target object, for example, the path can Think the path URL, the address URL is configured in the path URL, the target object can pass through the URL Address requests backstage Data.
S302 updates the data cached of the target object according to the request path request data called.
As seen from the above, the embodiment of the present invention is to be treated for data cached target object by determining, described Target object is used for data cached file destination or object code row;Creation is described for configuring in the target object The configuration object of the data caching method of target object;Institute is preset according to the data caching method of the configuration object configuration State the data cached duration of target object;If the data cached duration of the target object be more than preset duration, update described in Target object it is data cached.The embodiment of the present invention dynamic more new data and can ensure the real-times of data.
Referring to Fig. 4, Fig. 4 is a kind of schematic flow diagram of data cached update method provided in an embodiment of the present invention.It should Method may operate in smart phone (such as Android phone, IOS mobile phone), tablet computer, laptop and intelligence and set In the terminals such as standby.As shown in figure 4, the method comprising the steps of S401~S406.
S401, determines to be treated for data cached target object, and the target object includes for caching number According to file destination or object code row.
In embodiments of the present invention, the target object is referred to for data cached file destination or object code Row, if the target object is file destination, the file destination may include file destination title, target file type and mesh Mark file address etc.;If the target object be object code row, the object code row may include object code row position, The value that function belonging to object code row and object code row are returned;Specific target object can be wanted according to actual treatment It asks and voluntarily selects, be not limited thereto.In the present embodiment, it is illustrated by object code behavior example of target object, for example, In URL interface, it is provided with data cached code line, the request of URL interface requests data can be edited in the code line Function, for the request path of request data, under normal circumstances, which is the path URL, is matched in the path URL It is equipped with the address URL, set data cached code line can pass through the URL Address requests back-end data.
S402 creates the configuration pair for configuring the data caching method of the target object in the target object As.
In embodiments of the present invention, the target object is arranged in the method that configuration object can be created in the target object Data cached duration, the configuration object created is the code line as made of programming language editor, can in the code line To include the function for defining caching duration, or key assignments corresponding to the key name and key name for defining caching duration Etc., the programming language for creating the configuration object can be JavaScript language, C Plus Plus etc..For example, what is created matches Setting object is dataDelay, and the configuration path that back-end data is obtained in target object is [' group '] [' 0 '] [' personal '] after target object obtains back-end data by the path, can cache acquired data, pass through The data cached duration of target object is arranged in the mode of creation configuration object, it is ensured that target object updates caching number on time According to.Specifically, it has been more than configuration object that the data caching method, which as works as the data cached time interval of the target object, When set caching duration, the data cached update of the target object is triggered.
S403 determines the title of the target object.
S404 configures the title of object according to the name definition of the target object, wherein the title of the configuration object It is corresponding with the title of the target object.
In embodiments of the present invention, the title of the configuration object can be by user's self-defining, and in practical applications, this is matched Title associated with the target object can be defined by setting object oriented.
S405 presets the data cached of the target object according to the data caching method of the configuration object configuration Duration.
In embodiments of the present invention, the data cached duration of the target object is arranged according to the configuration object, for example, can To be time by defining the key name that created configuration object detaDelay caches duration for regulation, if the target is arranged Target cache data when it is 2 hours a length of, [' group '] [' 0 '] [' personal '] can be configured in the following manner .time value be 2*60*60 seconds, if be arranged the target object it is data cached when it is 10 hours a length of, can be in the following manner The value for being configured [' group '] [' 0 '] [' personal '] .time is 10*60*60 seconds.
S406 updates the slow of the target object if the data cached duration of the target object is more than preset duration Deposit data.
In embodiments of the present invention, the target object can all be first carried out in advance and be created before request data each time Configuration object further first carry out the code line that the configuration object is configured in advance, to judge that current target object delays The preset duration of deposit data executes the target object to obtain back-end data, eventually after having executed created configuration object End will record the current time of the target object request data, if the target object is cached data, terminal can obtain the mesh Time when mark object is the last data cached, the current time recorded by terminal and the target object recorded are most It is poor that time when close primary data cached make, and obtains the current time interval of the target object request data, compares institute The current time interval and preset duration for stating target object, if the current time interval of the target object has been more than preset It is long, illustrate the data cached time-out of the target object, updates the data cached of the target object.Wherein, the target pair is updated The data cached method of elephant can be to initiate URL request again by the target object, for example, can pass through the target pair As the address the URL initiation request of data configured, and requested data cover the target object, to update the mesh Mark the data cached of object.
Referring to Fig. 5, Fig. 5 is a kind of schematic flow diagram of data cached update method provided in an embodiment of the present invention.It should Method may operate in smart phone (such as Android phone, IOS mobile phone), tablet computer, laptop and intelligence and set In the terminals such as standby.As shown in figure 5, the method comprising the steps of S501~S507.
S501, determines to be treated for data cached target object, and the target object includes for caching number According to file destination or object code row.
In embodiments of the present invention, in embodiments of the present invention, the target object is referred to for data cached mesh Mark file or object code row, if the target object is file destination, the file destination may include file destination title, Target file type and target file address etc.;If the target object is object code row, the object code row be can wrap Include the value that function and object code row belonging to the position of object code row, object code row are returned;Specific target pair As that can require voluntarily to select according to actual treatment, it is not limited thereto.In the present embodiment, using target object as object code Behavior example is illustrated, for example, being provided with data cached code line in URL interface, can be edited in the code line The request function of URL interface requests data, for the request path of request data, under normal circumstances, which is URL Path, is configured with the address URL in the path URL, and set data cached code line can pass through the URL Address requests Back-end data.
S502 creates the configuration pair for configuring the data caching method of the target object in the target object As.
In embodiments of the present invention, corresponding target is arranged in the method that configuration object can be created in the target object The data cached duration of object, the configuration object created is the code line as made of programming language editor, in the code line In may include for define caching duration function, or for define caching duration key name and key name corresponding to Key assignments etc., the programming language for creating the configuration object can be JavaScript language, C Plus Plus etc..For example, being created Configuration object be dataDelay, in target object obtain back-end data configuration path be [' group '] [' 0 '] [' personal '] after target object obtains back-end data by the path, can cache acquired data, pass through The data cached duration of target object is arranged in the mode of creation configuration object, it is ensured that target object updates caching number on time According to.Specifically, it has been more than configuration object that the data caching method, which as works as the data cached time interval of the target object, When set caching duration, the data cached update of the target object is triggered.
S503 presets the data cached of the target object according to the data caching method of the configuration object configuration Duration.
In embodiments of the present invention, the data cached duration of the target object is arranged according to the configuration object, for example, can To be time by defining the key name that created configuration object detaDelay caches duration for regulation, if the target is arranged Target cache data when it is 2 hours a length of, [' group '] [' 0 '] [' personal '] can be configured in the following manner .time value be 2*60*60 seconds, if be arranged the target object it is data cached when it is 10 hours a length of, can be in the following manner The value for being configured [' group '] [' 0 '] [' personal '] .time is 10*60*60 seconds.
S504 sends data inquiry request to the target object.
In embodiments of the present invention, default inquiry control can be set on the selection page selected for user, this is default Inquiry control belongs to virtual control, optionally, setting can show text prompt, the display text on the default inquiry control Prompt, for prompting the user with what function the default inquiry control can generate, for example, the display text prompt is " to send number According to inquiry request ", when user selects the default inquiry control on the selection page, and clicks the programmable button, according to user The data inquiry request is generated to the clicking operation of programmable button, facilitates user's starting to look by the way that the default inquiry control is arranged Operation is ask, the usage experience of user is improved.
S505, it is data cached according to whether the data inquiry request judges to be stored in the target object.
S506 judges to store in the target object data cached if being stored with data cached in the target object Duration be more than preset duration.
In embodiments of the present invention, the current time interval and preset duration of the target object, if the target The current time interval of object has been more than preset duration, illustrates the data cached time-out of the target object, updates the target object It is data cached.
S507 updates the slow of the target object if the data cached duration of the target object is more than preset duration Deposit number.
In embodiments of the present invention, the target object can all be first carried out in advance and be created before request data each time Configuration object further first carry out the code line that the configuration object is configured in advance, to judge that current target object delays The preset duration of deposit data executes the target object to obtain back-end data, eventually after having executed created configuration object End will record the current time of the target object request data, if the target object is cached data, terminal can obtain the mesh Time when mark object is the last data cached, the current time recorded by terminal and the target object recorded are most It is poor that time when close primary data cached make, and obtains the current time interval of the target object request data, compares institute The current time interval and preset duration for stating target object, if the current time interval of the target object has been more than default It is long, illustrate the data cached time-out of the target object, updates the data cached of the target object.Wherein, the target pair is updated The data cached method of elephant can be to initiate URL request again by the target object, for example, can pass through the target pair As the address the URL initiation request of data configured, and requested data cover the target object, to update the mesh Mark the data cached of object.
Referring to Fig. 6, a kind of corresponding above-mentioned data cached update method, the embodiment of the present invention also proposes a kind of data cached Updating device, the device 100 include:First determination unit 101, creating unit 102, setting unit 103, updating unit 104.
Wherein, first determination unit 101, it is to be treated for data cached target object, institute for determining Stating target object includes for data cached file destination or object code row.
Creating unit 102, for creating the data buffer storage plan for configuring the target object in the target object Configuration object slightly.
Setting unit 103, for presetting the target pair according to the data caching method of the configuration object configuration The data cached duration of elephant.
Updating unit 104 updates the mesh if the data cached duration for the target object is more than preset duration Mark the data cached of object.
As seen from the above, the embodiment of the present invention is to be treated for data cached target object by determining, described Target object is used for data cached file destination or object code row;Creation is described for configuring in the target object The configuration object of the data caching method of target object;Institute is preset according to the data caching method of the configuration object configuration State the data cached duration of target object;If the data cached duration of the target object be more than preset duration, update described in Target object it is data cached.The embodiment of the present invention dynamic more new data and can ensure the real-times of data.
As shown in fig. 7, the updating unit 103, including:
Second determination unit 1031, for determining the data cached time interval of the target object.
Comparing unit 1032, for comparing identified time interval and preset duration set by configuration object Compared with.
First updates subelement 1033, if be more than default set by configuration object for identified time interval It is long, then update the data cached of the target object.
As shown in figure 8, the updating unit 103, further includes:
Call unit 1034, the path of the request data for calling the target object.
Second updates subelement 1035, for updating the target object according to the request path request data called It is data cached.
Referring to Fig. 9, a kind of corresponding above-mentioned data cached update method, the embodiment of the present invention also proposes a kind of data cached Updating device, the device 200 include:First determination unit 201, creating unit 202, third determination unit 203, definition unit 204, setting unit 205, updating unit 206.
Wherein, first determination unit 201, it is to be treated for data cached target object, institute for determining Stating target object includes for data cached file destination or object code row.
Creating unit 202, for creating the data buffer storage plan for configuring the target object in the target object Configuration object slightly.
Third determination unit 203, for determining the title of the target object.
Definition unit 204, for configuring the title of object according to the name definition of the target object, wherein the configuration The title of object is corresponding with the title of the target object.
Setting unit 205, for presetting the target pair according to the data caching method of the configuration object configuration The data cached duration of elephant.
Updating unit 206 updates the mesh if the data cached duration for the target object is more than preset duration Mark the data cached of object.
Referring to Fig. 10, a kind of corresponding above-mentioned data cached update method, the embodiment of the present invention also propose a kind of caching number According to updating device, which includes:First determination unit 301, creating unit 302, setting unit 303, transmission unit 304, First judging unit 305, second judgment unit 306, updating unit 307.
Wherein, first determination unit 301, it is to be treated for data cached target object, institute for determining Stating target object includes for data cached file destination or object code row.
Creating unit 302, for creating the data buffer storage plan for configuring the target object in the target object Configuration object slightly.
Setting unit 303, for presetting the target pair according to the data caching method of the configuration object configuration The data cached duration of elephant.
Transmission unit 304, for sending data inquiry request to the target object.
First judging unit 305, for judging whether be stored in the target object according to the data inquiry request It is data cached.
Second judgment unit 306 judges in the target object if data cached for being stored in the target object The data cached duration of storage is more than preset duration.
Updating unit 307 updates the mesh if the data cached duration for the target object is more than preset duration Mark the data cached of object.
Above-mentioned data cached updating device and above-mentioned data cached update method correspond, specific principle and process It is identical as above-described embodiment the method, it repeats no more.
Above-mentioned data cached updating device can be implemented as a kind of form of computer program, and computer program can be such as It is run in computer equipment shown in Figure 11.
Figure 11 is a kind of structure composition schematic diagram of computer equipment of the present invention.The equipment can be terminal, be also possible to Server, wherein terminal can be smart phone, tablet computer, laptop, desktop computer, personal digital assistant and wear Wear the electronic device that formula device etc. has communication function.Server can be independent server, be also possible to multiple servers The server cluster of composition.Referring to Fig.1 1, the computer equipment 500 include the processor 502 connected by system bus 501, Non-volatile memory medium 503, built-in storage 504 and network interface 505.Wherein, the non-volatile of the computer equipment 500 is deposited Storage media 503 can storage program area 5031 and computer program 5032, which is performed, and may make place Reason device 502 executes a kind of data cached update method.The processor 502 of the computer equipment 500 is calculated and is controlled for providing Ability supports the operation of entire computer equipment 500.The built-in storage 504 is the computer in non-volatile memory medium 503 The operation of program 5032 provides environment, when which is executed by processor, processor 502 may make to execute a kind of caching Data-updating method.The network interface 505 of computer equipment 500 such as sends the task dispatching of distribution for carrying out network communication.This Field technical staff is appreciated that structure shown in Figure 11, only the block diagram of part-structure relevant to application scheme, The restriction for the computer equipment being applied thereon to application scheme is not constituted, specific computer equipment may include ratio More or fewer components as shown in the figure perhaps combine certain components or with different component layouts.
Wherein, following operation is realized when the processor 502 executes the computer program:
Determine to be treated for data cached target object, the target object includes for data cached mesh Mark file or object code row;
For configuring the configuration object of the data caching method of the target object in target object creation;
The data cached duration of the target object is preset according to the data caching method of the configuration object configuration;
If the data cached duration of the target object is more than preset duration, the caching number of the target object is updated According to.
In one embodiment, following operation is also realized when the processor 502 executes the computer program, including:
Determine the title of the target object;
According to the name definition of the target object configure object title, wherein it is described configuration object title with it is described The title of target object is corresponding.
In one embodiment, if the data cached duration of the target object is more than preset duration, the mesh is updated The data cached of object is marked, including:
Determine the data cached time interval of the target object;
Identified time interval is compared with preset duration set by configuration object;
If identified time interval is more than preset duration set by configuration object, the slow of the target object is updated Deposit data.
In one embodiment, the update target object is data cached, including:
Call the path of the request data of the target object;
According to the request path request data called to update the data cached of the target object.
In one embodiment, following operation is also realized when the processor 502 executes the computer program:
Data inquiry request is sent to the target object;
It is data cached according to whether the data inquiry request judges to be stored in the target object;
If being stored with data cached in the target object, judge that the data cached duration stored in the target object is super Cross preset duration;
If the data cached duration of the target object is more than preset duration, the caching number of the target object is updated According to.
It will be understood by those skilled in the art that the embodiment of computer equipment shown in Figure 11 is not constituted to computer The restriction of equipment specific composition, in other embodiments, computer equipment may include components more more or fewer than diagram, or Person combines certain components or different component layouts.For example, in some embodiments, computer equipment only includes memory And processor, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 11, herein It repeats no more.
The present invention provides a kind of computer readable storage medium, computer-readable recording medium storage has one or one A procedure above, the one or more programs can be executed by one or more than one processor, with realize with Lower step:
Determine to be treated for data cached target object, the target object includes for data cached mesh Mark file or object code row;
The configuration object for configuring the data caching method of the target object is created in the target object;
The data cached duration of the target object is preset according to the data caching method of the configuration object configuration;
If the data cached duration of the target object is more than preset duration, the caching number of the target object is updated According to.
In one embodiment, following steps are also realized:
Determine the title of the target object;
According to the name definition of the target object configure object title, wherein it is described configuration object title with it is described The title of target object is corresponding.
In one embodiment, if the data cached duration of the target object is more than preset duration, the mesh is updated The data cached of object is marked, including:
Determine the data cached time interval of the target object;
Identified time interval is compared with preset duration set by configuration object;
If identified time interval is more than preset duration set by configuration object, the slow of the target object is updated Deposit data.
In one embodiment, the update target object is data cached, including:
Call the path of the request data of the target object;
According to the request path request data called to update the data cached of the target object.
In one embodiment, following steps are also realized:
Data inquiry request is sent to the target object;
It is data cached according to whether the data inquiry request judges to be stored in the target object;
If being stored with data cached in the target object, judge that the data cached duration stored in the target object is super Cross preset duration;
If the data cached duration of the target object is more than preset duration, the caching number of the target object is updated According to.
Present invention storage medium above-mentioned includes:Magnetic disk, CD, read-only memory (Read-Only Memory, The various media that can store program code such as ROM).
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central
Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, specific integrated circuit) it realizes.
Step in the data cached update method of the embodiment of the present invention can the adjustment of carry out sequence, merging according to actual needs With delete.
Unit in the data cached updating device of the embodiment of the present invention can be merged according to actual needs, divides and be deleted Subtract.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of data cached update method, which is characterized in that the method includes:
Determine to be treated for data cached target object, the target object includes for data cached target text Part or object code row;
The configuration object for configuring the data caching method of the target object is created in the target object;
The data cached duration of the target object is preset according to the data caching method of the configuration object configuration;
If the data cached duration of the target object is more than preset duration, the data cached of the target object is updated.
2. the method as described in claim 1, which is characterized in that the method also includes:
Determine the title of the target object;
The title of object is configured according to the name definition of the target object, wherein the title and the target of the configuration object The title of object is corresponding.
3. the method as described in claim 1, which is characterized in that if the data cached duration of the target object is more than default It is long, then the data cached of the target object is updated, including:
Determine the data cached time interval of the target object;
Identified time interval is compared with preset duration set by configuration object;
If identified time interval is more than preset duration set by configuration object, the caching number of the target object is updated According to.
4. the method as described in claim 1, which is characterized in that it is described to update the data cached of the target object, including:
Call the path of the request data of the target object;
According to the request path request data called to update the data cached of the target object.
5. the method as described in claim 1, which is characterized in that the method also includes:
Data inquiry request is sent to the target object;
It is data cached according to whether the data inquiry request judges to be stored in the target object;
If being stored with data cached in the target object, judge that the data cached duration stored in the target object is more than pre- If duration;
If the data cached duration of the target object is more than preset duration, the data cached of the target object is updated.
6. a kind of data cached updating device, which is characterized in that described device includes:
First determination unit, to be treated for data cached target object for determining, the target object includes using In data cached file destination or object code row;
Creating unit, for creating the configuration for configuring the data caching method of the target object in the target object Object;
Setting unit presets the data cached of the target object according to the data caching method of the configuration object configuration Duration;
Updating unit updates the target object if the data cached duration for the target object is more than preset duration It is data cached.
7. device as claimed in claim 6, which is characterized in that described device further includes:
Third determination unit, for determining the title of the target object;
Definition unit, for configuring the title of object according to the name definition of the target object, wherein the configuration object Title is corresponding with the title of the target object.
8. device as claimed in claim 6, which is characterized in that the updating unit, including:
Second determination unit, for determining the data cached time interval of the target object;
Comparing unit, for identified time interval to be compared with preset duration set by configuration object;
First updates subelement, if being more than preset duration set by configuration object for identified time interval, updates The target object it is data cached.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes that claim 1-5 such as appoints when executing the computer program Data cached update method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or More than one program, the one or more programs can be executed by one or more than one processor, to realize Data cached update method as described in any one in claim 1-5.
CN201810508481.5A 2018-05-24 2018-05-24 Data cached update method, device, computer equipment and storage medium Pending CN108829743A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810508481.5A CN108829743A (en) 2018-05-24 2018-05-24 Data cached update method, device, computer equipment and storage medium
PCT/CN2018/101083 WO2019223137A1 (en) 2018-05-24 2018-08-17 Cache data update method and apparatus, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810508481.5A CN108829743A (en) 2018-05-24 2018-05-24 Data cached update method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108829743A true CN108829743A (en) 2018-11-16

Family

ID=64148631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810508481.5A Pending CN108829743A (en) 2018-05-24 2018-05-24 Data cached update method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108829743A (en)
WO (1) WO2019223137A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021445A (en) * 2016-05-16 2016-10-12 努比亚技术有限公司 Cached data loading method and apparatus
CN106294205A (en) * 2015-05-15 2017-01-04 北京国双科技有限公司 caching data processing method and device
CN107025226A (en) * 2016-01-29 2017-08-08 广州市动景计算机科技有限公司 Targeted sites access method, device and transfer server
CN107357857A (en) * 2017-06-29 2017-11-17 深圳市金立通信设备有限公司 A kind of method and service node device for updating cache information
CN107451236A (en) * 2017-07-26 2017-12-08 上海斐讯数据通信技术有限公司 Data cache method, device and computer-processing equipment
CN107644071A (en) * 2017-09-18 2018-01-30 广州爱九游信息技术有限公司 Buffering updating method, device and data-storage system
CN107943594A (en) * 2016-10-13 2018-04-20 北京京东尚科信息技术有限公司 Data capture method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965717A (en) * 2014-06-05 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for loading page
CN106790363A (en) * 2016-11-22 2017-05-31 天脉聚源(北京)传媒科技有限公司 A kind of data cache method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294205A (en) * 2015-05-15 2017-01-04 北京国双科技有限公司 caching data processing method and device
CN107025226A (en) * 2016-01-29 2017-08-08 广州市动景计算机科技有限公司 Targeted sites access method, device and transfer server
CN106021445A (en) * 2016-05-16 2016-10-12 努比亚技术有限公司 Cached data loading method and apparatus
CN107943594A (en) * 2016-10-13 2018-04-20 北京京东尚科信息技术有限公司 Data capture method and device
CN107357857A (en) * 2017-06-29 2017-11-17 深圳市金立通信设备有限公司 A kind of method and service node device for updating cache information
CN107451236A (en) * 2017-07-26 2017-12-08 上海斐讯数据通信技术有限公司 Data cache method, device and computer-processing equipment
CN107644071A (en) * 2017-09-18 2018-01-30 广州爱九游信息技术有限公司 Buffering updating method, device and data-storage system

Also Published As

Publication number Publication date
WO2019223137A1 (en) 2019-11-28

Similar Documents

Publication Publication Date Title
CN109308255B (en) Method and device for A/B test experiment
CN103329113B (en) Configuration is accelerated and custom object and relevant method for proxy server and the Dynamic Website of hierarchical cache
CN110149423A (en) Domain name processing method, device, readable storage medium storing program for executing and electronic equipment
CN109408751B (en) Data processing method, terminal, server and storage medium
CN110336871A (en) A kind of document handling method, device, storage medium and electronic equipment
CN110348236A (en) A kind of operating right setting method, device and the storage medium of file
KR20100137323A (en) Client, brokerage sever and method for providing cloud storage
CN108762760A (en) Software interface customizing method, device, computer equipment and storage medium
CN105468707A (en) Cache-based data processing method and device
CN109542907A (en) Database caches construction method, device, computer equipment and storage medium
WO2016048987A1 (en) Preemptive loading of protected data for streaming mobile devices
CN109033302A (en) A kind of method for page jump, device, terminal and storage medium
CN106412078B (en) Accurate information method for pushing, device and system
CN108595652A (en) Load method, apparatus, computer equipment and the storage medium of DOM node data
JP2016162389A (en) Thin client system, connection management device, virtual machine operating device, method, and program
CN102163197A (en) Skin changing method, system and device
CN112822061A (en) Method and system for exposing service to outside by edge node
CN113940037A (en) Resource subscription method and device, computer equipment and storage medium
CN106254411B (en) For providing system, server system and the method for service
CN108829743A (en) Data cached update method, device, computer equipment and storage medium
CN109656939B (en) Cache updating method, device, equipment and storage medium
CN111148170A (en) Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium
CN114666161B (en) Component security policy management method, device, equipment and storage medium
CN110489483A (en) Method of data synchronization, device, computer equipment and storage medium
US7441086B2 (en) Data caching method and computer-readable medium storing a program executing the method

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: 20181116

RJ01 Rejection of invention patent application after publication