Air ticket freight rate query method and device based on cache preheating, equipment and medium

Through the cache preheating mechanism, the cached flight information is regularly updated based on the relationship between the ticket flight departure time and the current time, which solves the back-end service pressure problem of high concurrent ticket freight query, improves the response speed and system stability, and reduces costs.

CN120256474APending Publication Date: 2025-07-04SHENZHEN DIDATRAVEL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510219421.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-26
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

In the case of high concurrency, directly querying the air ticket freight rate information will lead to excessive pressure on back-end services, excessive latency and resource consumption, and serious waste of network bandwidth and back-end service resources.

Method used

Through the cache preheating mechanism, the flight information in the cache space is regularly updated based on the distance between the ticket flight departure time and the current time, and only gets it from the cache when the ticket freight information within the preset range is queried, reducing the query pressure on the back-end service.

Benefits of technology

It improves the response speed of air ticket freight information query, reduces the back-end service load, improves system stability and resource utilization, and reduces data transmission costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120256474A_ABST
    Figure CN120256474A_ABST
Patent Text Reader

Abstract

The invention relates to an air ticket freight rate query method and device based on cache preheating, equipment and a storage medium, and the method comprises the steps: obtaining the flight take-off time of a target air ticket in response to an instruction of querying the freight rate information of the target air ticket by a user, judging whether the flight take-off time of the target air ticket is within a preset range, and if yes, executing the step 1; based on the flight take-off time of the target air ticket, the cache space is inquired to obtain freight rate information of the target air ticket and feed back the freight rate information to the user, and the flight information stored in the cache space is periodically updated based on the distance between the flight take-off time and the current time. According to the method and the device, the freight rate information of the frequently requested airline tickets is stored in the cache through a cache preheating mechanism, so that the response speed of airline ticket freight rate information query can be improved, the load of back-end service can be reduced, the overall stability and reliability of the system can be improved, the data transmission cost can be effectively reduced, and the utilization rate of back-end resources can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a method, device, equipment and storage medium for querying air ticket fares based on cache preheating. Background Art

[0002] Currently, since directly querying the fare information of air tickets usually requires accessing the backend service or database, when the access volume is large, or multiple users frequently query the air ticket fares from the backend service, it may cause a large pressure on the backend service. Especially in the case of high concurrency, there may be relatively high latency and consumption of server resources. Therefore, directly querying air ticket prices may consume too much network bandwidth and backend service resources.

[0003] Therefore, the technical solution on how to improve the response speed of air ticket fare query and reduce the load pressure on the backend service has become a technical problem that needs to be solved urgently by those skilled in the art. It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure, and thus may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0004] In view of the above, this application provides a method, device, equipment and storage medium for querying air ticket fares based on cache preheating, aiming to solve the above technical problems.

[0005] In a first aspect, this application provides a method for querying air ticket fares based on cache preheating, the method comprising:

[0006] Responding to an instruction from a user to query the fare information of a target air ticket;

[0007] Obtaining the flight departure time of the target air ticket;

[0008] Judging whether the flight departure time of the target air ticket is within a preset range;

[0009] If so, querying the cache space based on the flight departure time of the target air ticket to obtain the fare information of the target air ticket and feedbacking it to the user, wherein the flight information stored in the cache space is updated regularly based on the distance between the flight departure time and the current time.

[0010] In a second aspect, this application provides a device for querying air ticket fares based on cache preheating, the device comprising:

[0011] A response module: for responding to an instruction from a user to query the fare information of a target air ticket;

[0012] An obtaining module: for obtaining the flight departure time of the target air ticket;

[0013] Judgment module: used to judge whether the flight departure time of the target ticket is within a preset range;

[0014] Query module: used to, if the flight departure time of the target ticket is within the preset range, query the cache space based on the flight departure time of the target ticket to obtain the fare information of the target ticket and feedback it to the user, wherein the flight information stored in the cache space is updated regularly based on the distance between the flight departure time and the current time.

[0015] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete communication with each other through the communication bus;

[0016] Memory: used to store computer programs;

[0017] Processor: when used to execute the program stored on the memory, implement the air ticket fare query method based on cache preheating described in any embodiment of the first aspect.

[0018] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it implements the air ticket fare query method based on cache preheating described in any embodiment of the first aspect.

[0019] The above technical solutions provided by the embodiments of the present application have the following advantages compared with the prior art:

[0020] In response to the user's instruction to query the fare information of the target ticket, the present application obtains the flight departure time of the target ticket, judges whether the flight departure time of the target ticket is within the preset range. If so, based on the flight departure time of the target ticket, it queries the cache space to obtain the fare information of the target ticket and feedbacks it to the user. Among them, the flight information stored in the cache space is updated regularly based on the distance between the flight departure time and the current time. Through the cache preheating mechanism, the fare information of frequently requested air tickets is saved in the cache, which can improve the response speed of air ticket fare information queries, reduce the load on the backend service, improve the overall stability and reliability of the system, effectively reduce the data transmission cost, and improve the utilization rate of backend resources. Description of the Drawings

[0021] The drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0022] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0023] Figure 1 It is a schematic flowchart of an embodiment of the air ticket fare query method based on cache preheating of the present application;

[0024] Figure 2 It is a schematic module diagram of an embodiment of the air ticket fare query device based on cache preheating of the present application;

[0025] Figure 3 It is a schematic diagram of an embodiment of the electronic device of the present application;

[0026] The realization of the purpose of the present application, functional features and advantages will be further described in conjunction with the embodiments with reference to the drawings. Detailed implementation manners

[0027] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.

[0028] The following disclosure provides many different embodiments or examples for implementing different structures of the present application. To simplify the disclosure of the present application, the components and settings of specific examples are described below. Of course, they are only examples and are not intended to limit the present application. In addition, the present application may repeat reference numerals and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0029] The present application provides an air ticket fare query method based on cache preheating. Refer to Figure 1 As shown, it is a schematic flowchart of the method of an embodiment of the air ticket fare query method based on cache preheating of the present application. This method can be executed by an electronic device, which is implemented by software and / or hardware. The air ticket fare query method based on cache preheating includes:

[0030] Step S10: Respond to the instruction of the user to query the fare information of the target air ticket;

[0031] Step S20: Obtain the flight departure time of the target air ticket;

[0032] Step S30: Determine whether the flight departure time of the target ticket is within a preset range;

[0033] Step S40: If so, based on the flight departure time of the target ticket, query the cache space to obtain the fare information of the target ticket and feedback it to the user, where the flight information stored in the cache space is updated regularly based on the distance between the flight departure time and the current time.

[0034] The user can input relevant flight information through the human-computer interaction interface of the terminal and initiate a request to query the fare information of the ticket. The target ticket refers to the ticket that the user needs to query. Since directly querying the fare information of the ticket usually requires accessing the backend service or database, when the access volume is large, or multiple users frequently query the ticket fare from the backend service, it may cause a relatively large pressure on the backend service. Especially in the case of high concurrency, there may be relatively high latency and consumption of server resources. Therefore, directly querying the ticket price may consume too much network bandwidth and backend service resources. For this reason, in order to reduce the load pressure on the backend service and improve the utilization rate of backend resources, this application uses a cache preheating mechanism to save the fare information of frequently requested tickets in the cache, which can improve the query response speed and system performance. By using the cache preheating mechanism, the load on the backend service can be reduced, the overall stability and reliability of the system can be improved, the data transmission cost can be effectively reduced, and the utilization rate of backend resources can be improved.

[0035] Specifically, in response to the instruction of the user to query the fare information of the target ticket, obtain the flight departure time of the target ticket. The flight departure time can indicate how long it is until the departure time of this flight from the current time point. Since flights with a departure time far from the current time are usually queried less frequently, the query method for the fare information of the target ticket can be determined according to the distance between the flight departure time of the target ticket and the current time point.

[0036] Determine whether the flight departure time of the target ticket is within a preset range (for example, 3 days). If it is within the preset range, it means that the flight departure time of the target ticket is relatively close to the current time point. The preset range can be set according to actual needs, and this range can also be changed according to actual needs. If the flight departure time of the target ticket is within the preset range, then based on the flight departure time of the target ticket, query the cache space to obtain the fare information of the target ticket and feedback it to the user. Storing recent flight information in the cache space can improve the response speed of ticket fare queries.

[0037] If the flight information in the cache space is updated simultaneously, the data of flights with a relatively long departure time will also be updated frequently, which may lead to unnecessary invalid updates. Therefore, the flight information in the cache space can be updated regularly according to different time gradients. By regularly updating the flight information stored in the cache space based on the distance between the flight departure time and the current time, the update frequency of different flight information in the cache space can be divided according to the flight departure time, and the update efficiency of the cache can be improved.

[0038] In one embodiment, determining whether the flight departure time is within a preset range further includes:

[0039] If the flight departure time is not within the preset range, query the database to obtain the fare information of the target ticket.

[0040] For flights with frequent price changes in the near future and infrequent price changes in the far future, the cache preset range value can be independent of the cache. That is, for flights with frequent price changes in the near future and infrequent price changes in the far future, query the fare information through the database or backend service.

[0041] In one embodiment, the step of regularly updating the flight information stored in the cache space based on the distance between the flight departure time and the current time includes:

[0042] Set the minimum target days, maximum target days, update frequency, and maximum days update threshold from the current time;

[0043] Generate a time graph for updating flight information in the cache space according to the minimum target days, maximum target days, update frequency, and update threshold;

[0044] Regularly update the flight information in the cache space according to the time graph.

[0045] The minimum target number of days refers to the minimum number of days from now, that is, the least number of days starting from the current time point. The maximum target number of days refers to the minimum number of days from now, that is, the least number of days starting from the current time point. The update frequency refers to the update frequency of flight information in the cache space. For example, how many minutes to update once. The maximum number of days update threshold refers to the flight information exceeding this threshold, and its update frequency in the cache flight information will be uniformly set. For example, if the minimum target number of days is 1 day and the maximum target number of days is 7 days, then the flight information between 1 day and 7 days from the current time point is updated. If the maximum number of days update threshold is 3 days, then on the 3rd day between 1 day and 7 days, the update frequency of the flight information in the cache is uniformly set. Therefore, according to the minimum target number of days, the maximum target number of days, the update frequency and the update threshold, a time graph for updating flight information in the cache space can be generated, that is, the time points that need to be updated every day are generated, and then the flight information in the cache space is updated regularly according to the time graph.

[0046] Furthermore, according to the minimum target number of days, the maximum target number of days, the update frequency and the maximum number of days update threshold, a time graph for updating flight information in the cache space is generated, including:

[0047] Calculate the target time points at which the flight information needs to be updated every day according to the minimum target number of days, the maximum target number of days, the update frequency and the maximum number of days update threshold;

[0048] Generate a time graph for updating flight information in the cache space according to the target time points.

[0049] According to the minimum target number of days, the maximum target number of days, the update frequency and the maximum number of days update threshold, the time points that need to be updated between the minimum target number of days and the maximum number of days update threshold can be calculated, and the time points that need to be updated between the maximum number of days update threshold and the maximum target number of days can also be calculated, so as to obtain the target time points at which the flight information needs to be updated every day between the minimum target number of days and the maximum target number of days, and generate a time graph for updating flight information in the cache space according to the target time points.

[0050] In one embodiment, the calculating the target time points at which the flight information needs to be updated according to the minimum target number of days, the maximum target number of days, the update frequency and the maximum number of days update threshold includes:

[0051] For the flight information between the minimum target number of days and the maximum number of days update threshold, calculate the target time points at which the flight information needs to be updated according to the update frequency;

[0052] For the flight information between the maximum number of days update threshold and the maximum target number of days, calculate the target time points at which the flight information needs to be updated through a preset formula.

[0053] For flight information between the minimum target days and the maximum day update threshold, assuming the update frequency is set to 20 minutes, that is, it is updated every 20 minutes, the target time points for updating the cache of the flight information for these days can be calculated. For flight information between the maximum day update threshold and the maximum target days, the unified update time can be calculated through a formula, so as to obtain the target time points for updating the cache.

[0054] Among them, the preset formula includes:

[0055] T = (A + B - 1) / B

[0056] Among them, T represents the target time point, A represents the first time period greater than the maximum day update threshold, and B represents the maximum day update threshold. Assuming the maximum day update threshold is 2 days, then A represents 3 days. When the result of T is not an integer, T is rounded up. For example, assuming that T is calculated to be 2 hours, then it is updated every 2 hours.

[0057] In one embodiment, generating a time map for updating flight information in the cache space according to the target time point includes:

[0058] Taking the number of days for which the cache needs to be updated as the key and the target time point as the value, generate a time map for updating flight information in the cache space. Generating a time map in the form of key-value pairs can determine at which time points the flight information in the cache needs to be updated, thereby avoiding invalid updates and improving the update efficiency of the flight information in the cache.

[0059] Refer to Figure 2 shown in the functional module schematic diagram of the air ticket price query device 100 based on cache preheating of the present application.

[0060] The air ticket price query device 100 based on cache preheating of the present application can be installed in an electronic device. According to the functions implemented, the air ticket price query device 100 based on cache preheating can include a response module 110, an acquisition module 120, a judgment module 130, and a query module 140. The modules of the present application can also be referred to as units, which refer to a series of computer program segments that can be executed by the processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.

[0061] In this embodiment, the functions of each module / unit are as follows:

[0062] Response module 110: used to respond to the instruction of the user to query the price information of the target air ticket;

[0063] Acquisition module 120: used to acquire the flight departure time of the target air ticket;

[0064] Judgment module 130: used to judge whether the flight departure time of the target ticket is within a preset range;

[0065] Query module 140: if the flight departure time of the target ticket is within a preset range, based on the flight departure time of the target ticket, query the cache space to obtain the fare information of the target ticket and feedback it to the user, wherein the flight information stored in the cache space is updated regularly based on the distance between the flight departure time and the current time.

[0066] In one embodiment, judging whether the flight departure time is within a preset range further includes:

[0067] If the flight departure time is not within the preset range, query the database to obtain the fare information of the target ticket.

[0068] In one embodiment, the step of regularly updating the flight information stored in the cache space based on the distance between the flight departure time and the current time includes:

[0069] Set the minimum target days, maximum target days, update frequency and maximum days update threshold from the current time;

[0070] Generate a time map for updating flight information in the cache space according to the minimum target days, maximum target days, update frequency and update threshold;

[0071] Regularly update the flight information in the cache space according to the time map.

[0072] In one embodiment, generating a time map for updating flight information in the cache space according to the minimum target days, maximum target days, update frequency and maximum days update threshold includes:

[0073] Calculate the target time points for updating flight information every day according to the minimum target days, maximum target days, update frequency and maximum days update threshold;

[0074] Generate a time map for updating flight information in the cache space according to the target time points.

[0075] In one embodiment, calculating the target time points for updating flight information according to the minimum target days, maximum target days, update frequency and maximum days update threshold includes:

[0076] For the flight information between the minimum target days and the maximum days update threshold, calculate the target time points for updating flight information according to the update frequency;

[0077] For flight information between the maximum number of days update threshold and the maximum target number of days, calculate the target time point for updating the flight information through a preset formula.

[0078] In one embodiment, the preset formula includes:

[0079] T = (A + B - 1) / B

[0080] Wherein, T represents the target time point, A represents the first time period greater than the maximum number of days update threshold, and B represents the maximum number of days update threshold.

[0081] In one embodiment, generating a time map for updating flight information in the cache space according to the target time point includes:

[0082] Generate a time map for updating flight information in the cache space with the number of days requiring cache update as the key and the target time point as the value.

[0083] Refer to Figure 3 As shown, it is a schematic diagram of a preferred embodiment of the electronic device of the present application.

[0084] The electronic device includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114. Among them, the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114;

[0085] The memory 113 is used to store computer programs, for example, a ticket price query program based on cache warm-up;

[0086] Among them, the processor 111 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 111 is generally used to control the overall operation of the electronic device, such as performing control and processing related to data interaction or communication. In this embodiment, the processor 111 is used to run the program code stored in the memory 113 or process data, such as running the program code of a ticket price query program based on cache warm-up.

[0087] The communication interface 112 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and the communication interface 112 can also be used to establish a communication connection between the electronic device and other electronic devices.

[0088] The memory 113 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 113 may be an internal storage unit of the electronic device, such as the hard disk or memory of the electronic device. In other embodiments, the memory 113 may also be an external storage device of the electronic device, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, Flash Card, etc. equipped with the electronic device. Of course, the memory 113 may also include both the internal storage unit and the external storage device of the electronic device. In this embodiment, the memory 11 is generally used to store the operating system installed in the electronic device and various computer programs, such as the program code of the air ticket fare query program based on cache preheating. In addition, the memory 113 may also be used to temporarily store various types of data that have been output or will be output.

[0089] In an embodiment of the present application, when the processor 111 executes the program stored on the memory 113, it implements the air ticket fare query method based on cache preheating provided by any one of the foregoing method embodiments, including:

[0090] Responding to an instruction from the user to query the fare information of the target air ticket;

[0091] Obtaining the flight departure time of the target air ticket;

[0092] Determining whether the flight departure time of the target air ticket is within a preset range;

[0093] If so, query the cache space based on the flight departure time of the target air ticket to obtain the fare information of the target air ticket and feedback it to the user, where the flight information stored in the cache space is updated regularly based on the distance between the flight departure time and the current time.

[0094] For a detailed introduction to the above steps, please refer to the above Figure 1 Description of the flowchart of the embodiment of the air ticket fare query method based on cache preheating.

[0095] In addition, an embodiment of the present application further provides a computer-readable storage medium, which may be non-volatile or volatile. The computer-readable storage medium includes a storage data area and a storage program area. The storage program area stores a ticket price query program based on cache preheating. When the ticket price query program based on cache preheating is executed by a processor, the following operations are implemented:

[0096] Respond to an instruction from the user to query the price information of a target ticket;

[0097] Obtain the flight departure time of the target ticket;

[0098] Determine whether the flight departure time of the target ticket is within a preset range;

[0099] If so, based on the flight departure time of the target ticket, query the cache space to obtain the price information of the target ticket and feedback it to the user, where the flight information stored in the cache space is updated regularly based on the distance between the flight departure time and the current time.

[0100] The specific implementation manner of the computer-readable storage medium of the present application is substantially the same as that of the above-mentioned ticket price query method based on cache preheating, and will not be described in detail here.

[0101] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0102] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the related technology, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0103] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and should not be construed as indicating or implying their relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature. Additionally, the technical solutions between various embodiments may be combined with each other, but it must be based on the ability of those of ordinary skill in the art to implement. When the combination of technical solutions results in contradictions or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0104] It should be understood that the terms used herein are for the purpose of describing particular example embodiments only and are not intended to be limiting. Unless the context clearly dictates otherwise, the singular forms "a", "an", and "the" as used herein may also include the plural forms. The terms "comprises", "comprising", "includes", and "having" are inclusive and thus specify the presence of the stated features, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring them to be performed in the particular order described or illustrated, unless the order of performance is explicitly stated. It should also be understood that alternative or additional steps may be used.

[0105] The above are only specific embodiments of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application will not be limited to these embodiments shown herein, but rather will be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A ticket price query method based on cache warm-up, characterized in that The method includes: Responding to an instruction from a user to query the fare information of a target flight ticket; Obtaining the flight departure time of the target flight ticket; Judging whether the flight departure time of the target flight ticket is within a preset range; If so, based on the flight departure time of the target flight ticket, querying the cache space to obtain the fare information of the target flight ticket and feedbacking it to the user, wherein the flight information stored in the cache space is regularly updated based on the distance between the flight departure time and the current time.

2. The air ticket fare query method based on cache warm-up according to claim 1, wherein Judging whether the flight departure time is within the preset range further includes: If the flight departure time is not within the preset range, querying the database to obtain the fare information of the target flight ticket.

3. The air ticket fare query method based on cache warm-up according to claim 1, wherein The step of regularly updating the flight information stored in the cache space based on the distance between the flight departure time and the current time includes: Setting the minimum target number of days, the maximum target number of days, the update frequency, and the maximum number of days update threshold from the current time; Generating a time map for updating flight information in the cache space according to the minimum target number of days, the maximum target number of days, the update frequency, and the update threshold; Regularly updating the flight information in the cache space according to the time map.

4. The air ticket fare query method based on cache warm-up according to claim 3, wherein The generating a time map for updating flight information in the cache space according to the minimum target number of days, the maximum target number of days, the update frequency, and the maximum number of days update threshold includes: Calculating the target time points at which the flight information needs to be updated every day according to the minimum target number of days, the maximum target number of days, the update frequency, and the maximum number of days update threshold; Generating a time map for updating flight information in the cache space according to the target time points.

5. The air ticket fare query method based on cache warm-up according to claim 4, wherein The calculating the target time points at which the flight information needs to be updated according to the minimum target number of days, the maximum target number of days, the update frequency, and the maximum number of days update threshold includes: For the flight information between the minimum target number of days and the maximum number of days update threshold, calculating the target time points at which the flight information needs to be updated according to the update frequency; For the flight information between the maximum number of days update threshold and the maximum target number of days, calculating the target time points at which the flight information needs to be updated through a preset formula.

6. The air ticket fare query method based on cache warm-up according to claim 5, wherein The preset formula includes: T = (A + B - 1) / B Wherein, T represents the target time point, A represents the first time period greater than the maximum number of days update threshold, and B represents the maximum number of days update threshold.

7. The air ticket fare query method based on cache warm-up according to claim 3, wherein, The generating a time map for updating flight information in the cache space according to the target time points includes: Generating a time map for updating flight information in the cache space with the number of days requiring cache update as the key and the target time point as the value.

8. An air ticket fare query device based on cache preheating, characterized in that, The device includes: A response module: used for responding to an instruction from a user to query the fare information of a target flight ticket; An obtaining module: used for obtaining the flight departure time of the target flight ticket; A judging module: used for judging whether the flight departure time of the target flight ticket is within a preset range; A querying module: used for, if the flight departure time of the target flight ticket is within the preset range, querying the cache space based on the flight departure time of the target flight ticket to obtain the fare information of the target flight ticket and feedbacking it to the user, wherein the flight information stored in the cache space is regularly updated based on the distance between the flight departure time and the current time.

9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus. Among them, the processor, the communication interface, and the memory complete mutual communication through the communication bus; The memory is used to store computer programs; When the processor is used to execute the program stored on the memory, it implements the air ticket fare query method based on cache preheating described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the air ticket fare query method based on cache preheating described in any one of claims 1 to 7.