Business data caching method and device, equipment and medium

By calculating the popularity value ranking of business data content regularly and cacheing data based on the ranking, the problem of failure to consider data content in the prior art is solved, and fast reading and accurate caching of high-importance data is achieved.

CN119293003APending Publication Date: 2025-01-10BEIJING YOUTEJIE INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411358230.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The existing business data caching scheme fails to consider the data content of the business data, cannot cache it according to the data content, and cannot accurately meet the cache needs of different data contents, especially the fact that it is impossible to quickly read business data to the appropriate ones. Cache in the database.

Method used

By regularly obtaining relevant data of business data access events from the access log of the cache database, calculate the popularity value ranking of the business data content identification, and when receiving the data to be cached, the data is cached to The corresponding target database.

Benefits of technology

It realizes accurate caching of data content based on business data, meets different data needs, and caches high-important data to a database that is easy to read quickly, improving data reading efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119293003A_ABST
    Figure CN119293003A_ABST
Patent Text Reader

Abstract

The invention discloses a business data caching method and device, equipment and a medium. The method comprises the following steps: regularly obtaining related data of each business data access event within a preset duration before a current moment from an access log of each cache database, and determining a popularity value ranking of each business data content identifier; the method comprises the following steps: after to-be-cached business data is received, determining a target cache database corresponding to the to-be-cached business data in each cache database according to business data content identifiers of the to-be-cached business data and popularity value ranking of each business data content identifier, and caching the business data to be cached into the target cache database. According to the embodiment of the invention, the importance and reading requirements of the business data needing to be stored can be measured based on the business data content identifiers of the business data needing to be stored and the popularity value ranking of each business data content identifier, and the business data needing to be cached is cached.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a business data caching method, device, equipment and medium. Background Art

[0002] The business system of an enterprise will obtain a large amount of business data during operation. In order to effectively manage the business data obtained by the business system, it is usually necessary to cache the business data obtained by the business system into a pre-set cache database, so that the business personnel of the enterprise can read the business data they need to use from the cache database according to real-time business needs.

[0003] In the related art, the commonly used business data caching solution is: after obtaining the business data that needs to be cached, select a cache database with available cache space from various cache databases, and cache the business data that needs to be cached into the selected cache database. The business data caching solution in the related art does not take into account the data content of each business data, and cannot cache the business data that needs to be cached according to the data content of the business data, cannot accurately meet the caching requirements of business data with different data contents, and cannot cache business data that is of high importance and needs to be read quickly into a cache database that facilitates fast data reading. Summary of the invention

[0004] The present invention provides a business data caching method, device, equipment and medium to solve the problem that the business data caching scheme in the related art does not take into account the data content of each business data, cannot cache the business data that needs to be cached according to the data content of the business data, cannot accurately meet the caching requirements of business data with different data contents, and cannot cache business data that is highly important and needs to be read quickly into a cache database that is easy to read quickly.

[0005] According to one aspect of the present invention, a service data caching method is provided, comprising:

[0006] Obtain relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database at regular intervals, and determine the heat value ranking of each business data content identifier based on the relevant data of each business data access event;

[0007] After receiving the business data to be cached, a target cache database corresponding to the business data to be cached is determined in each cache database based on the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, and the business data to be cached is cached in the target cache database.

[0008] According to another aspect of the present invention, there is provided a service data caching device, comprising:

[0009] A ranking determination module is used to periodically obtain relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database, and determine the heat value ranking of each business data content identifier based on the relevant data of each business data access event;

[0010] The data cache module is used to determine, after receiving the business data to be cached, a target cache database corresponding to the business data to be cached in each cache database according to the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, and cache the business data to be cached in the target cache database.

[0011] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0012] at least one processor;

[0013] and a memory communicatively coupled to the at least one processor;

[0014] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the business data caching method described in any embodiment of the present invention.

[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the service data caching method described in any embodiment of the present invention when executed.

[0016] The technical solution of the embodiment of the present invention obtains relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database at regular intervals, and determines the heat value ranking of each business data content identifier based on the relevant data of each business data access event; after receiving the business data to be cached, according to the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, a target cache database corresponding to the business data to be cached is determined in each cache database, and the business data to be cached is cached in the target cache database, which solves the problem that the business data caching scheme in the related art does not take the data content of each business data into consideration, cannot cache the business data to be cached according to the data content of the business data, cannot accurately meet the caching requirements of business data with different data contents, and cannot cache business data with high importance and need to be read quickly. The problem of caching data in a cache database that is convenient for quickly reading data can be solved by regularly determining the heat value of each business data content identifier used to characterize the importance of business data with business data content identifiers and the degree of reading demand based on the relevant data of each business data access event within a preset time before the current moment, and determining the heat value ranking of each business data content identifier. Based on the business data content identifier of the business data that needs to be stored and the heat value ranking of each business data content identifier, the importance and reading demand of the business data that needs to be stored can be measured, and the business data that needs to be cached can be cached, thereby caching the business data that needs to be cached according to the data content of the business data, accurately meeting the caching requirements of business data with different data contents, and caching business data that is more important and needs to be read quickly in a cache database that is convenient for quickly reading data.

[0017] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 A flowchart of a business data caching method provided in Embodiment 1 of the present invention.

[0020] Figure 2 A flowchart of a business data caching method provided in Embodiment 2 of the present invention.

[0021] Figure 3 A schematic diagram of the structure of a business data caching device provided in Embodiment 3 of the present invention.

[0022] Figure 4 A schematic diagram of the structure of an electronic device for implementing the service data caching method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "target", "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprise", "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] Embodiment 1

[0026] Figure 1 A flowchart of a business data caching method provided in Embodiment 1 of the present invention. This embodiment is applicable to the case where business data acquired by a business system is cached in a cache database. The method can be executed by a business data caching device, which can be implemented in the form of hardware and / or software, and the business data caching device can be configured in an electronic device. The electronic device can be an electronic device set up in an enterprise for caching business data acquired by a business system in a cache database. Figure 1 As shown, the method includes:

[0027] Step 101: periodically obtain relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database, and determine the heat value ranking of each business data content identifier based on the relevant data of each business data access event.

[0028] Optionally, a plurality of cache databases are provided in the enterprise. Each cache database is a database for caching business data acquired by the business system of the enterprise during operation. Each cache database can run in a designated electronic device. The designated electronic device can be a designated server. Each cache database includes a plurality of high-speed cache databases and a plurality of low-speed cache databases. A high-speed cache database is a cache database that is convenient for fast reading of data but has a small data capacity. A low-speed cache database is a cache database that is unable to quickly read data but has a large data capacity. Being convenient for fast reading of data may mean that a user can quickly read data cached in the cache database from the cache database. A small data capacity may mean that the number of data that can be cached in the cache database is small, and the cache database can cache a small amount of data. Being unable to quickly read data may mean that a user cannot quickly read data cached in the cache database from the cache database. A large data capacity may mean that the number of data that can be cached in the cache database is large, and the cache database can cache a large amount of data.

[0029] Optionally, the business system of the enterprise may be a server for managing the business of the enterprise. The business data may be data related to the business of the enterprise. The data content of the business data may refer to the text contained in the business data. The business data content identifier of the business data may be a digital number generated by the business system after acquiring the business data to identify the category of the data content of the business data. Exemplarily, the data content of the business data is text for describing news related to the business of the enterprise, and the business data content identifier of the business data is 67890. The data content of the business data is text for describing user comments related to the business of the enterprise, and the business data content identifier of the business data is 98765.

[0030] Optionally, each business data content identifier includes all different business data content identifiers that may be generated. The heat value of each business data content identifier may be a numerical value used to characterize the importance and reading demand of the business data whose business data content identifier is the business data content identifier. The larger the heat value of the business data content identifier, the higher the importance and reading demand of the business data whose business data content identifier is the business data content identifier, and the business personnel need to quickly read the business data whose business data content identifier is the business data content identifier. The smaller the heat value of the business data content identifier, the lower the importance and reading demand of the business data whose business data content identifier is the business data content identifier, and the business personnel do not need to quickly read the business data whose business data content identifier is the business data content identifier.

[0031] Optionally, the ranking of the heat values ​​of each business data content identifier may refer to a business data content identifier sequence obtained by sorting each business data content identifier in order of heat value from large to small. Business data content identifiers with larger heat values ​​are ranked in front. Business data content identifiers with smaller heat values ​​are ranked in the back. The business data content identifier with the largest heat value is ranked first in the business data content identifier sequence. The business data content identifier with the smallest heat value is ranked last in the business data content identifier sequence.

[0032] Optionally, a business data access event may refer to a process in which a business person reads business data cached in a cache database or a business person writes business data into a cache database. For each cache database, the access log of the cache database may be information stored in the cache database related to a business data access event occurring in the cache database. An access log file is provided in the cache database. The access log file may be a file for storing the access log of the cache database. The access log of the cache database contains relevant data of each business data access event occurring in the cache database. The cache database may determine the business data content identifier, access time, user identifier and access type of the business data access event as relevant data of the business data access event after each business data access event occurs, that is, after a business person reads a business data in the cache database or a business person writes a business data into the cache database, and store the relevant data of the business data access event in the access log file. The business data content identifier of the business data access event may be the business data content identifier of the business data read or written by the business person in the business data access event. The business data content identifier of the business data access event may be provided to the cache database by the business person in the business data access event. The access time of the business data access event may be the time when the business personnel in the business data access event recorded by the cache database reads or writes the business data. The user identifier of the business data access event may be the user identifier of the business personnel in the business data access event. The user identifier of the business data access event may be provided to the cache database by the business personnel in the business data access event. Each business personnel is provided with a user identifier. The user identifier of the business personnel may be a string used to uniquely identify the business personnel. The access type of the business data access event may be information recorded by the cache database that characterizes whether the business data access event is a process in which the business personnel reads the business data cached in the cache database or a process in which the business personnel writes the business data into the cache database. The access type of the business data access event is read or write. The access type of the business data access event is read, indicating that the business data access event is a process in which the business personnel reads the business data cached in the cache database. The access type of the business data access event is write, indicating that the business data access event is a process in which the business personnel writes the business data into the cache database.

[0033] Optionally, relevant data of each business data access event within a preset time length before the current moment is obtained from the access log of each cache database at a regular interval, and a heat value ranking of each business data content identifier is determined based on the relevant data of each business data access event, including: performing the following operations at preset time intervals: obtaining relevant data of each business data access event within a preset time length before the current moment from the access log of each cache database; wherein the relevant data of the business data access event includes: the business data content identifier, access time, user identifier and access type of the business data access event; based on the business data content identifier of each business data access event within the preset time length before the current moment, counting the access frequency of each business data content identifier within the preset time length before the current moment; based on the business data content identifier of each business data access event within the preset time length before the current moment According to the access time of the access event and the time decay function, the time decay weight of each business data access event within the preset time before the current moment is determined; according to the user identifier of each business data access event within the preset time before the current moment, the user behavior weight of each business data access event within the preset time before the current moment is determined; the content type weight of each business data content identifier is determined; according to the access frequency of each business data content identifier within the preset time before the current moment, the content type weight of each business data content identifier, and the time decay weight and user behavior weight of the business data access event within the preset time before the current moment corresponding to each business data content identifier, the heat value of each business data content identifier is determined; according to the heat value of each business data content identifier, the heat value ranking of each business data content identifier is determined.

[0034] Optionally, the preset time interval may be a preset time interval. Exemplarily, the preset time interval may be 24 hours or 48 hours. The electronic device performs the following operations once at every preset time interval: obtaining relevant data of each business data access event within a preset time length before the current moment from the access log of each cache database; counting the access frequency of each business data content identifier within the preset time length before the current moment according to the business data content identifier of each business data access event within the preset time length before the current moment; determining the time decay weight of each business data access event within the preset time length before the current moment according to the access time of each business data access event within the preset time length before the current moment and the time decay function; determining the user behavior weight of each business data access event within the preset time length before the current moment according to the user identifier of each business data access event within the preset time length before the current moment; determining the content type weight of each business data content identifier; determining the heat value of each business data content identifier according to the access frequency of each business data content identifier within the preset time length before the current moment, the content type weight of each business data content identifier, and the time decay weight and user behavior weight of the business data access event within the preset time length before the current moment corresponding to each business data content identifier; determining the heat value ranking of each business data content identifier according to the heat value of each business data content identifier.

[0035] Optionally, the preset duration may be a preset duration. Exemplarily, the preset duration may be 24 hours or 48 hours. The relevant data of each business data access event within the preset duration before the current moment may refer to the relevant data of each business data access event occurring in each cache database within the preset duration before the current moment, that is, the relevant data of each business data access event stored in each cache database within the preset duration before the current moment. The relevant data of each business data access event whose access time is within the preset duration before the current moment and stored in the access log file of each cache database is the relevant data of each business data access event within the preset duration before the current moment.

[0036] Optionally, relevant data of each business data access event within a preset time period before the current moment is obtained from the access log of each cache database, including: obtaining relevant data of each business data access event whose access time is within the preset time period before the current moment from the access log file of each cache database, thereby obtaining relevant data of each business data access event within the preset time period before the current moment.

[0037] Optionally, for each business data content identifier, the access frequency of the business data content identifier within the preset time length before the current moment may refer to the number of relevant data of the business data access event whose business data content identifier is the business data content identifier contained in the relevant data of each business data access event within the preset time length before the current moment. According to the business data content identifier of each business data access event within the preset time length before the current moment, the access frequency of each business data content identifier within the preset time length before the current moment is counted, including: for each business data content identifier in each business data content identifier, the following operation is performed: the number of relevant data of the business data access event whose business data content identifier is the business data content identifier contained in the relevant data of each business data access event within the preset time length before the current moment is counted, and the access frequency of the business data content identifier within the preset time length before the current moment is obtained.

[0038] Optionally, in a specific example, for a certain business data content identifier, among the relevant data of each business data access event within the preset time length before the current moment, the business data content identifier contained in the relevant data of 3 business data access events is the business data content identifier. By counting the number of relevant data of business data access events containing the business data content identifier as the business data content identifier in the relevant data of each business data access event within the preset time length before the current moment, the access frequency of the business data content identifier within the preset time length before the current moment can be obtained. The number of relevant data of business data access events containing the business data content identifier as the business data content identifier in the relevant data of each business data access event within the preset time length before the current moment is 3, that is, the access frequency of the business data content identifier within the preset time length before the current moment is 3.

[0039] Optionally, for each business data access event, the time decay weight of the business data access event may refer to a numerical value used to reflect the importance or impact of the business data access event on the business system over time. If the time decay weight of the business data access event is large, it indicates that the business data access event is close to the current moment, has high timeliness and importance, and the business data access event still has a large impact on the business system. The business data in the business data access event is of high importance and needs to be read quickly. If the time decay weight of the business data access event is small, it indicates that the business data access event is far from the current moment, and its importance or impact has been greatly reduced. The business data in the business data access event has little impact on the current decision or behavior of the business system and may be gradually ignored or downgraded. The business data in the business data access event is of low importance and does not need to be read quickly.

[0040] Optionally, based on the access time of each business data access event within a preset duration before the current moment and a time decay function, determine the time decay weights of each business data access event within the preset duration before the current moment, including: performing the following operations for each business data access event within the preset duration before the current moment: calculating the time decay weight of the business data access event according to the following time decay function:

[0041] w = e -λ×t

[0042] where w is the time decay weight of the business data access event, 0 < w < 1, e is the natural constant, λ is a preset decay coefficient, and t is the duration from the access time of the business data access event to the current moment. Exemplarily, λ = 0.05 and the duration from the access time of the business data access event to the current moment is 24.41 hours. The time decay function can be a function preset in the electronic device for calculating the time decay weight of the business data access event based on the access time of the business data access event. The decay coefficient λ controls the rate of time decay. A larger decay coefficient λ means that the business system is very sensitive to time, and the impact of business data will decay faster, and only very recent business data access events will be emphasized. A larger decay coefficient λ means that the business system has a lower sensitivity to time, and the impact of business data will decay slower, and the business data cached in the cache database may still maintain a certain importance for a long time.

[0043] Optionally, for each business data access event, the user behavior weight of the business data access event can be a value used to characterize the activity level of the business personnel in the business data access event. A larger user behavior weight of the business data access event indicates a higher activity level of the business personnel in the business data access event, and the business personnel in the business data access event are relatively active business personnel who often read the business data cached in the cache database or write the business data into the cache database. A smaller user behavior weight of the business data access event indicates a lower activity level of the business personnel in the business data access event, and the business personnel in the business data access event are less active business personnel who do not often read the business data cached in the cache database or write the business data into the cache database.

[0044] Optionally, user behavior weights of each business data access event within a preset time period before the current moment are determined based on user identifiers of each business data access event within a preset time period before the current moment, including: determining user behavior weights of each business data access event within the preset time period before the current moment based on user identifiers of each business data access event within the preset time period before the current moment, and the correspondence between preset user identifiers and user behavior weights.

[0045] Optionally, the electronic device stores a correspondence between a preset user identifier and a user behavior weight. The correspondence between the preset user identifier and the user behavior weight includes the user identifier of each business person in the enterprise and the user behavior weight corresponding to the user identifier of each business person. The user identifier of each business person can be a string used to uniquely identify the business person. The user behavior weight corresponding to the user identifier of each business person is a numerical value used to characterize the activity level of the business person. Exemplarily, the user behavior weight corresponding to the user identifier of a certain business person is 1.4.

[0046] Optionally, based on the user identifiers of each business data access event within the preset time period before the current moment, and the correspondence between the preset user identifiers and the user behavior weights, the user behavior weights of each business data access event within the preset time period before the current moment are determined, including: performing the following operations for each business data access event in the preset time period before the current moment: querying the target user identifier that is the same as the user identifier of the business data access event in each user identifier in the correspondence between the preset user identifiers and the user behavior weights; obtaining the user behavior weight corresponding to the target user identifier, and determining the user behavior weight corresponding to the target user identifier as the user behavior weight of the business data access event. The target user identifier is the same as the user identifier of the business data access event, and the user behavior weight corresponding to the target user identifier is a numerical value used to characterize the activity level of the business personnel in the business data access event, that is, the user behavior weight of the business data access event.

[0047] Optionally, for each business data content identifier, the content type weight of the business data content identifier can be a numerical value used to characterize the importance of the data content category of the business data identified by the business data content identifier in the business system. The electronic device stores a preset correspondence between the business data content identifier and the content type weight. The preset correspondence between the business data content identifier and the content type weight includes each business data content identifier and the content type weight of each business data content identifier. Exemplarily, the content type weight of a certain business data content identifier is 1.5.

[0048] Optionally, determining the content type weight of each business data content identifier includes: determining the content type weight of each business data content identifier according to a preset correspondence between the business data content identifier and the content type weight. The electronic device can obtain the content type weight of each business data content identifier from the preset correspondence between the business data content identifier and the content type weight, thereby determining the content type weight of each business data content identifier.

[0049] Optionally, determining the heat value of each business data content identifier according to the access frequency of each business data content identifier within a preset time period before the current moment, the content type weight of each business data content identifier, and the time decay weight and user behavior weight of the business data access event within the preset time period before the current moment corresponding to each business data content identifier includes: performing the following operations for each business data content identifier in each business data content identifier: calculating the heat value of the business data content identifier according to the following heat value calculation formula:

[0050]

[0051] Wherein, R is the heat value of the business data content identifier, n is the access frequency of the business data content identifier within the preset time before the current moment, c is the content type weight of the business data content identifier, and the business data content identifier contained in the relevant data of n business data access events within the preset time before the current moment is the business data content identifier, w i is the time decay weight of the business data access event to which the i-th business data access event related data containing the business data content identifier of the business data access event within the preset time period before the current moment belongs, u iThe user behavior weight of the business data access event to which the relevant data of the business data access event whose business data content identifier is the business data content identifier belongs, i=1, 2, ...n. The heat value calculation formula may be a formula pre-set in the electronic device for calculating the heat value of the business data content identifier according to the access frequency of the business data content identifier within the preset time before the current moment, the content type weight of the business data content identifier, and the time decay weight and user behavior weight of the business data access event within the preset time before the current moment corresponding to the business data content identifier. The time decay weight of the business data access event within the preset time before the current moment corresponding to the business data content identifier is the time decay weight of the business data access event to which the relevant data of the business data access event whose business data content identifier is the business data content identifier belongs, in the relevant data of each business data access event within the preset time before the current moment. The user behavior weight of the business data access events within the preset time period before the current moment corresponding to the business data content identifier is the user behavior weight of the business data access events to which the relevant data of each business data access event within the preset time period before the current moment belongs, and the relevant data of each business data access event whose business data content identifier is the business data content identifier.

[0052] Optionally, in a specific example, the preset duration is 48 hours. The access frequency of the business data content identifier "67890" within 48 hours before the current moment is 3. Among the relevant data of each business data access event within 48 hours before the current moment, the relevant data of 3 business data access events contain the business data content identifier "67890". The time decay weight of the business data access event to which the relevant data of the first business data access event with the business data content identifier "67890" belongs is 0.292. The user behavior weight of the business data access event to which the relevant data of the first business data access event with the business data content identifier "67890" belongs is 1.4. The time decay weight of the business data access event to which the relevant data of the second business data access event with the business data content identifier "67890" belongs is 0.323. The user behavior weight of the business data access event to which the relevant data of the second business data access event with the business data content identifier "67890" belongs is 1.2. The time decay weight of the business data access event to which the relevant data of the third business data access event with business data content identification "67890" belongs is 0.8. The user behavior weight of the business data access event to which the relevant data of the third business data access event with business data content identification "67890" belongs is 1.4. The content type weight of business data content identification "67890" is 1.5. The heat value of business data content identification "67890"

[0053] Optionally, in a specific example, the preset duration is 48 hours. The access frequency of the business data content identifier "98765" within the 48 hours before the current moment is 2. Among the relevant data of each business data access event within the 48 hours before the current moment, the relevant data of 2 business data access events contain the business data content identifier "98765". The time decay weight of the business data access event to which the relevant data of the first business data access event with the business data content identifier "98765" belongs is 0.955. The user behavior weight of the business data access event to which the relevant data of the first business data access event with the business data content identifier "98765" belongs is 1.2. The time decay weight of the business data access event to which the relevant data of the second business data access event with the business data content identifier "98765" belongs is 0.8. The user behavior weight of the business data access event to which the relevant data of the second business data access event with the business data content identifier "98765" belongs is 1.2. The content type weight of the business data content identifier "98765" is 1.0. The popularity value of the business data content identifier "98765"

[0054] Optionally, determining the heat value ranking of each business data content identifier according to the heat value of each business data content identifier includes: sorting each business data content identifier in descending order of heat value to obtain the heat value ranking of each business data content identifier. The business data content identifier sequence obtained by sorting each business data content identifier in descending order of heat value is the heat value ranking of each business data content identifier.

[0055] Step 102: After receiving the business data to be cached, determine the target cache database corresponding to the business data to be cached in each cache database according to the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, and cache the business data to be cached in the target cache database.

[0056] Optionally, the business data to be cached is business data that needs to be cached. The target cache database corresponding to the business data to be cached may refer to a cache database in each cache database for caching the business data to be cached. The business data to be cached may be sent by the business system to the electronic device. The business system sends the business data to be cached and the business data content identifier of the business data to be cached to the electronic device. The business data to be cached may also be sent to the electronic device by a designated business person. The designated business person sends the business data to be cached and the business data content identifier of the business data to be cached to the electronic device.

[0057] Optionally, based on the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, a target cache database corresponding to the business data to be cached is determined in each cache database, including: determining the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier; judging whether the target ranking position includes the ranking position; if the target ranking position includes the ranking position, selecting a high-speed cache database from the cache databases in each cache database as the target cache database corresponding to the business data to be cached.

[0058] Optionally, after determining whether the target ranking position includes the ranking position, it also includes: if the target ranking position does not include the ranking position, selecting a low-speed cache database from the low-speed cache databases in each cache database as the target cache database corresponding to the business data to be cached.

[0059] Optionally, determining the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier includes: searching for a target business data content identifier that is identical to the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier; and determining the ranking position of the target business data content identifier in the heat value ranking of each business data content identifier as the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier.

[0060] Optionally, after receiving the business data to be cached and the business data content identifier of the business data to be cached, the electronic device will query the target business data content identifier that is the same as the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier generated the most recently. The target business data content identifier is the same business data content identifier as the business data content identifier of the business data to be cached. The ranking position of the target business data content identifier in the heat value ranking of each business data content identifier is the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier. Exemplarily, if the ranking position of the target business data content identifier in the heat value ranking of each business data content identifier is the first, it can be determined that the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier is the first. If the ranking position of the target business data content identifier in the heat value ranking of each business data content identifier is the fifth, it can be determined that the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier is the fifth.

[0061] Optionally, the target ranking position may be the ranking position of the business data content identifier of the business data that is of high importance and needs to be read quickly in the ranking of the popularity values ​​of various business data content identifiers. The target ranking position may be the first, first two, or first three.

[0062] Optionally, it is determined whether the target ranking position includes the ranking position of the business data content identifier of the business data to be cached in the ranking of the heat values ​​of each business data content identifier. If the target ranking position includes the ranking position of the business data content identifier of the business data to be cached in the ranking of the heat values ​​of each business data content identifier, it indicates that the business data to be cached is of high importance and needs to be read quickly, then a high-speed cache database is selected from the high-speed cache databases in each cache database as the target cache database corresponding to the business data to be cached.

[0063] Optionally, selecting a cache database from among the cache databases as a target cache database corresponding to the business data to be cached includes: randomly selecting a cache database from among all the cache databases in the cache databases as a target cache database corresponding to the business data to be cached.

[0064] Optionally, if the target ranking position does not include the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier, indicating that the business data to be cached is not business data of high importance and needs to be read quickly, then a low-speed cache database is selected from the low-speed cache databases in each cache database as the target cache database corresponding to the business data to be cached.

[0065] Optionally, selecting a low-speed cache database from among the low-speed cache databases in each cache database as a target cache database corresponding to the business data to be cached includes: randomly selecting a low-speed cache database from among all the low-speed cache databases in each cache database as a target cache database corresponding to the business data to be cached.

[0066] Optionally, in a specific example, the target ranking position is the first. If the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier is the first, then it can be determined that the target ranking position includes the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier, and a high-speed cache database is selected from the high-speed cache databases in each cache database as the target cache database corresponding to the business data to be cached. If the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier is not the first, then it can be determined that the target ranking position does not include the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier, and a low-speed cache database is selected from the low-speed cache databases in each cache database as the target cache database corresponding to the business data to be cached.

[0067] Optionally, in a specific example, the target ranking position is the first two positions. If the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier is the first or second position, it can be determined that the target ranking position includes the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier, and a high-speed cache database is selected from the high-speed cache databases in each cache database as the target cache database corresponding to the business data to be cached. If the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier is not the first or second position, it can be determined that the target ranking position does not include the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier, and a low-speed cache database is selected from the low-speed cache databases in each cache database as the target cache database corresponding to the business data to be cached.

[0068] Optionally, caching the to-be-cached business data into the target cache database includes: caching the to-be-cached business data and the business data content identifier of the to-be-cached business data into the target cache database corresponding to the to-be-cached business data.

[0069] The technical solution of the embodiment of the present invention obtains relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database at regular intervals, and determines the heat value ranking of each business data content identifier based on the relevant data of each business data access event; after receiving the business data to be cached, according to the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, a target cache database corresponding to the business data to be cached is determined in each cache database, and the business data to be cached is cached in the target cache database, which solves the problem that the business data caching scheme in the related art does not take the data content of each business data into consideration, cannot cache the business data to be cached according to the data content of the business data, cannot accurately meet the caching requirements of business data with different data contents, and cannot cache business data with high importance and need to be read quickly. The problem of caching data in a cache database that is convenient for quickly reading data can be solved by regularly determining the heat value of each business data content identifier used to characterize the importance of business data with business data content identifiers and the degree of reading demand based on the relevant data of each business data access event within a preset time before the current moment, and determining the heat value ranking of each business data content identifier. Based on the business data content identifier of the business data that needs to be stored and the heat value ranking of each business data content identifier, the importance and reading demand of the business data that needs to be stored can be measured, and the business data that needs to be cached can be cached, thereby caching the business data that needs to be cached according to the data content of the business data, accurately meeting the caching requirements of business data with different data contents, and caching business data that is more important and needs to be read quickly in a cache database that is convenient for quickly reading data.

[0070] Embodiment 2

[0071] Figure 2 The flowchart of a service data caching method provided in the second embodiment of the present invention. The embodiment of the present invention can be combined with each optional solution in one or more of the above embodiments. Figure 2 As shown, the method includes:

[0072] Step 201 : periodically obtain relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database, and determine the heat value ranking of each business data content identifier based on the relevant data of each business data access event.

[0073] Step 202: After receiving the service data to be cached, determine the ranking position of the service data content identifier of the service data to be cached in the heat value ranking of each service data content identifier.

[0074] Step 203: Determine whether the target ranking position includes the ranking position.

[0075] Step 204: If the target ranking position includes the ranking position, select a cache database from among the cache databases as a target cache database corresponding to the to-be-cached service data, and cache the to-be-cached service data into the target cache database.

[0076] The technical solution of the embodiment of the present invention can periodically determine the heat value of each business data content identifier used to characterize the importance of business data with each business data content identifier and the degree of reading demand based on the relevant data of each business data access event within a preset time before the current moment, and determine the heat value ranking of each business data content identifier. Based on the business data content identifier of the business data that needs to be stored and the heat value ranking of each business data content identifier, the importance and reading demand of the business data that needs to be stored can be measured, the business data that needs to be cached can be cached, and the business data that is more important and needs to be read quickly can be cached in a high-speed cache database that facilitates fast data reading.

[0077] Embodiment 3

[0078] Figure 3 The structure diagram of a service data caching device provided in the third embodiment of the present invention is shown in FIG. The device can be configured in an electronic device. Figure 3 As shown, the device includes: a ranking determination module 301 and a data cache module 302.

[0079] Among them, the ranking determination module 301 is used to periodically obtain relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database, and determine the heat value ranking of each business data content identifier based on the relevant data of each business data access event; the data cache module 302 is used to determine the target cache database corresponding to the business data to be cached in each cache database after receiving the business data to be cached, based on the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, and cache the business data to be cached in the target cache database.

[0080] The technical solution of the embodiment of the present invention obtains relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database at regular intervals, and determines the heat value ranking of each business data content identifier based on the relevant data of each business data access event; after receiving the business data to be cached, according to the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, a target cache database corresponding to the business data to be cached is determined in each cache database, and the business data to be cached is cached in the target cache database, which solves the problem that the business data caching scheme in the related art does not take the data content of each business data into consideration, cannot cache the business data to be cached according to the data content of the business data, cannot accurately meet the caching requirements of business data with different data contents, and cannot cache business data with high importance and need to be read quickly. The problem of caching data in a cache database that is convenient for quickly reading data can be solved by regularly determining the heat value of each business data content identifier used to characterize the importance of business data with business data content identifiers and the degree of reading demand based on the relevant data of each business data access event within a preset time before the current moment, and determining the heat value ranking of each business data content identifier. Based on the business data content identifier of the business data that needs to be stored and the heat value ranking of each business data content identifier, the importance and reading demand of the business data that needs to be stored can be measured, and the business data that needs to be cached can be cached, thereby caching the business data that needs to be cached according to the data content of the business data, accurately meeting the caching requirements of business data with different data contents, and caching business data that is more important and needs to be read quickly in a cache database that is convenient for quickly reading data.

[0081] In an optional implementation of an embodiment of the present invention, optionally, the ranking determination module 301 is specifically used to: perform the following operations at preset time intervals: obtain relevant data of each business data access event within a preset time length before the current moment from the access log of each cache database; wherein the relevant data of the business data access event includes: the business data content identifier, access time, user identifier and access type of the business data access event; based on the business data content identifier of each business data access event within the preset time length before the current moment, count the access frequency of each business data content identifier within the preset time length before the current moment; determine the business data access event within the preset time length before the current moment based on the access time of each business data access event within the preset time length before the current moment and the time decay function. The time decay weight of each business data access event within the preset time length before the current moment is determined; based on the user identifier of each business data access event within the preset time length before the current moment, the user behavior weight of each business data access event within the preset time length before the current moment is determined; the content type weight of each business data content identifier is determined; based on the access frequency of each business data content identifier within the preset time length before the current moment, the content type weight of each business data content identifier, and the time decay weight and user behavior weight of the business data access event within the preset time length before the current moment corresponding to each business data content identifier, the heat value of each business data content identifier is determined; based on the heat value of each business data content identifier, the heat value ranking of each business data content identifier is determined.

[0082] In an optional implementation of an embodiment of the present invention, optionally, when the ranking determination module 301 performs an operation of determining the user behavior weight of each business data access event within a preset time period before the current moment based on the user identifier of each business data access event within the preset time period before the current moment, it is specifically used to: determine the user behavior weight of each business data access event within the preset time period before the current moment based on the user identifier of each business data access event within the preset time period before the current moment, and the correspondence between the preset user identifier and the user behavior weight.

[0083] In an optional implementation of an embodiment of the present invention, optionally, when the ranking determination module 301 performs the operation of determining the content type weight of each business data content identifier, it is specifically used to: determine the content type weight of each business data content identifier based on the corresponding relationship between the preset business data content identifier and the content type weight.

[0084] In an optional implementation of an embodiment of the present invention, optionally, when the ranking determination module 301 performs the operation of determining the heat value ranking of each business data content identifier based on the heat value of each business data content identifier, it is specifically used to: sort each business data content identifier in order from large to small heat value to obtain the heat value ranking of each business data content identifier.

[0085] In an optional implementation of an embodiment of the present invention, optionally, the data cache module 302 is specifically used to: determine the ranking position of the business data content identifier of the business data to be cached in the heat value ranking of each business data content identifier; determine whether the target ranking position includes the ranking position; if the target ranking position includes the ranking position, then select a cache database from the cache databases in each cache database as the target cache database corresponding to the business data to be cached.

[0086] In an optional implementation of an embodiment of the present invention, optionally, the data cache module 302 is also used for: if the target ranking position does not include the ranking position, selecting a low-speed cache database from the low-speed cache databases in each cache database as the target cache database corresponding to the business data to be cached.

[0087] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0088] The above-mentioned business data caching device can execute the business data caching method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the business data caching method.

[0089] Embodiment 4

[0090] Figure 4 The schematic diagram of the structure of the electronic device 10 that can be used to implement the service data caching method of the embodiment of the present invention is shown. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0091] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program built from the storage unit 18 to the random access memory (RAM) 13. In the random access memory (RAM) 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the read-only memory (ROM) 12 and the random access memory (RAM) 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0092] A number of components in the electronic device 10 are connected to an input / output (I / O) interface 15, including an input unit 16, such as a keyboard, a mouse, etc., an output unit 17, such as various types of displays, speakers, etc., a storage unit 18, such as a disk, an optical disk, etc., and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0093] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a business data caching method.

[0094] In some embodiments, the business data caching method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via a read-only memory (ROM) 12 and / or a communication unit 19. When the computer program is built into a random access memory (RAM) 13 and executed by the processor 11, one or more steps of the business data caching method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the business data caching method in any other appropriate manner (e.g., by means of firmware).

[0095] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0096] The computer program for implementing the business data caching method of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program can be executed entirely on the machine, partially on the machine, as an independent software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0097] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0098] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0099] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0100] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0101] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0102] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A business data caching method, characterized in that: include: Obtain relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database at regular intervals, and determine the heat value ranking of each business data content identifier based on the relevant data of each business data access event; After receiving the business data to be cached, a target cache database corresponding to the business data to be cached is determined in each cache database based on the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, and the business data to be cached is cached in the target cache database.

2. The service data caching method according to claim 1, characterized in that: Periodically obtain relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database, and determine the heat value ranking of each business data content identifier based on the relevant data of each business data access event, including: Perform the following operations at preset time intervals: Obtain relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database; wherein the relevant data of the business data access event includes: business data content identifier, access time, user identifier and access type of the business data access event; According to the business data content identifiers of each business data access event within a preset time period before the current moment, counting the access frequency of each business data content identifier within the preset time period before the current moment; Determine the time decay weight of each business data access event within the preset time before the current moment according to the access time of each business data access event within the preset time before the current moment and the time decay function; Determine the user behavior weight of each business data access event within a preset time period before the current moment according to the user identifier of each business data access event within a preset time period before the current moment; Determine the content type weight of each business data content identifier; Determine the heat value of each business data content identifier according to the access frequency of each business data content identifier within a preset time period before the current moment, the content type weight of each business data content identifier, and the time decay weight and user behavior weight of the business data access event within the preset time period before the current moment corresponding to each business data content identifier; According to the heat value of each business data content identifier, the heat value ranking of each business data content identifier is determined.

3. The service data caching method according to claim 2, characterized in that: Determine the user behavior weight of each business data access event within the preset time period before the current moment according to the user identifier of each business data access event within the preset time period before the current moment, including: The user behavior weight of each business data access event within a preset time period before the current moment is determined based on the user identifier of each business data access event within a preset time period before the current moment, and the correspondence between the preset user identifier and the user behavior weight.

4. The service data caching method according to claim 2, characterized in that: Determine the content type weight of each business data content identifier, including: The content type weight of each business data content identifier is determined according to the preset corresponding relationship between the business data content identifier and the content type weight.

5. The service data caching method according to claim 2, characterized in that: According to the heat value of each business data content identifier, the heat value ranking of each business data content identifier is determined, including: The business data content identifiers are sorted in descending order of heat value to obtain a heat value ranking of each business data content identifier.

6. The service data caching method according to claim 2, characterized in that: Determining a target cache database corresponding to the business data to be cached in each cache database according to the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier includes: Determine the ranking position of the service data content identifier of the service data to be cached in the heat value ranking of each service data content identifier; Determining whether the target ranking position includes the ranking position; If the target ranking position includes the ranking position, a high-speed cache database is selected from the cache databases among the cache databases as a target cache database corresponding to the to-be-cached service data.

7. The service data caching method according to claim 6, characterized in that: After determining whether the target ranking position includes the ranking position, the method further includes: If the target ranking position does not include the ranking position, a low-speed cache database is selected from the low-speed cache databases among the cache databases as the target cache database corresponding to the to-be-cached service data.

8. A service data caching device, characterized in that: include: A ranking determination module is used to periodically obtain relevant data of each business data access event within a preset time period before the current moment from the access log of each cache database, and determine the heat value ranking of each business data content identifier based on the relevant data of each business data access event; The data cache module is used to determine, after receiving the business data to be cached, a target cache database corresponding to the business data to be cached in each cache database according to the business data content identifier of the business data to be cached and the heat value ranking of each business data content identifier, and cache the business data to be cached in the target cache database.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the business data caching method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the business data caching method according to any one of claims 1 to 7 when executed.