Business parameter caching method and device, program product and electronic equipment

By dynamically adjusting the storage location of target parameters between memory and distributed cache, the problem of low scalability of business applications caused by fixed caching strategies in existing technologies is solved. This enables the application to cope with memory pressure caused by data growth without affecting the application code, thereby improving the stability and flexibility of the application.

CN122045256APending Publication Date: 2026-05-15INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Filing Date
2026-01-29
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

In existing technologies, the caching strategies of business applications are fixed, resulting in low scalability of business applications, making them unable to adapt to the growth of business parameter data volume, leading to memory overflow and application crashes.

Method used

By periodically scanning the database to obtain newly added or updated target parameters, and using a preset caching strategy to dynamically adjust the storage location between the in-memory cache and the distributed cache, an appropriate cache area is selected based on the parameter storage space size to achieve adaptive business parameter caching.

Benefits of technology

When the amount of business parameter data increases, the storage location is automatically adjusted to maintain stable application operation, enhance the robustness and flexibility of the data caching mechanism, and avoid memory overflow and performance degradation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122045256A_ABST
    Figure CN122045256A_ABST
Patent Text Reader

Abstract

The invention discloses a business parameter caching method and device, a program product and electronic equipment, and relates to the field of financial science and technology or other related technical fields, and the method comprises the steps: scanning a preset database based on a preset script, and obtaining a target parameter; searching in a cache region based on the parameter identifier of the target parameter to obtain a historical cache value indicated by the parameter identifier of the target parameter; under the condition that the parameter value of the target parameter is different from the historical cache value, updating the historical cache value in the cache region into the parameter value of the target parameter; and under the condition that the historical cache value is not queried in the cache region, the target parameter is stored in the cache region based on a preset cache strategy, and the preset cache strategy is used for dynamically selecting a storage position based on the size of a storage space required by the target parameter. According to the method and the device, the technical problem of low expansibility of business application caused by caching the business parameters based on a fixed caching strategy in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of financial technology or other related technical fields, and more specifically, to a method, apparatus, program product, and electronic device for caching business parameters. Background Technology

[0002] To improve data access efficiency in financial applications, existing technologies cache the data required by these applications in a caching system. These caching systems fall into two categories: internal node memory within the application and external distributed caching systems. When designing a caching mechanism, engineers need to consider whether to store the data in the application's node memory or an external caching system. Subsequent adjustments require modifying the application's code to adapt to the new data caching and retrieval methods, resulting in low scalability for the application.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This application provides a method, apparatus, program product, and electronic device for caching business parameters, to at least solve the technical problem of low scalability of business applications caused by caching business parameters based on the fixed caching strategy in the prior art.

[0005] According to one aspect of this application, a method for caching business parameters is provided, comprising: scanning a preset database based on a preset script to obtain a target parameter, wherein the preset script is used to perform a data scanning task once at a preset time interval, and the target parameter is a newly added parameter or a parameter whose value has been updated in the preset database; searching in a cache area based on the parameter identifier of the target parameter to obtain a historical cached value indicated by the parameter identifier of the target parameter, wherein the cache area includes at least a memory cache area of ​​the target application and a distributed cache area of ​​the distributed system; updating the historical cached value in the cache area to the parameter value of the target parameter if the parameter value of the target parameter is different from the historical cached value; and storing the target parameter in the cache area based on a preset caching strategy if the historical cached value is not found in the cache area, wherein the preset caching strategy is used to dynamically select the storage location based on the required storage space of the target parameter.

[0006] Optionally, storing the target parameter in the cache area based on a preset caching strategy includes: detecting the size of the remaining storage space in the target application's memory cache area; storing the target parameter in the target application's memory cache area if the required storage space for the target parameter is less than or equal to the remaining storage space in the memory cache area; and storing the target parameter in the distributed cache area of ​​the distributed system if the required storage space for the target parameter is greater than the remaining storage space in the memory cache area.

[0007] Optionally, after storing the target parameters in the cache based on a preset caching strategy, the caching method for business parameters further includes: receiving a business request through a preset interface, wherein the business request is a business request initiated by a functional module in the target application, and the functional module is used to process financial business; parsing the business request to obtain the parameter identifier of the business parameters that the target application needs to load; searching in the memory cache based on the parameter identifier of the business parameters; if the parameter cache value indicated by the parameter identifier of the business parameters is found in the memory cache, encapsulating the parameter cache value in the memory cache to obtain the return data of the business request; and transmitting the return data to the functional module of the target application through the preset interface.

[0008] Optionally, after storing the target parameter in the cache area based on a preset caching strategy, the caching method for business parameters further includes: if the parameter cache value is not found in the memory cache area, searching in the distributed cache area based on the parameter identifier of the business parameter; if the parameter cache value is found in the distributed cache area, encapsulating the parameter cache value in the distributed cache area to obtain the return data of the business request; if the parameter cache value is not found in the distributed cache area, generating a target instruction, wherein the target instruction is used to store the parameter value of the business parameter in the preset database in the cache area.

[0009] Optionally, after storing the target parameters in the cache area based on the preset caching strategy, the caching method for business parameters further includes: when the remaining storage space in the memory cache area is less than a preset space threshold, detecting the access frequency of each parameter cache value in the memory cache area; and migrating the parameter cache values ​​with access frequencies less than the preset frequency to the distributed cache area.

[0010] Optionally, after detecting the access frequency of each parameter cache value in the memory cache, the business parameter caching method further includes: if the access frequency of each parameter cache value in the memory cache is greater than or equal to a preset frequency, sorting the L parameter cache values ​​stored in the memory cache based on the access frequency of each parameter cache value to obtain a parameter value sequence corresponding to the L parameter cache values, where L is a positive integer; and migrating the M parameter cache values ​​at the end of the parameter value sequence to a distributed cache, where M is a positive integer less than L.

[0011] Optionally, after detecting the access frequency of each parameter cache value in the memory cache, the caching method for business parameters further includes: generating a prompt message when the access frequency of each parameter cache value in the memory cache is greater than or equal to a preset frequency, wherein the prompt message is used to prompt the operation and maintenance personnel to expand the memory cache.

[0012] According to another aspect of this application, a caching device for business parameters is also provided, comprising: a scanning unit, configured to scan a preset database based on a preset script to obtain a target parameter, wherein the preset script is configured to perform a data scanning task once every preset time interval, and the target parameter is a newly added parameter or a parameter whose parameter value has been updated in the preset database; a first lookup unit, configured to search in a cache area based on the parameter identifier of the target parameter to obtain a historical cached value indicated by the parameter identifier of the target parameter, wherein the cache area includes at least a memory cache area of ​​the target application and a distributed cache area of ​​the distributed system; an update unit, configured to update the historical cached value in the cache area to the parameter value of the target parameter when the parameter value of the target parameter is different from the historical cached value; and a storage unit, configured to store the target parameter in the cache area based on a preset caching strategy when the historical cached value is not found in the cache area, wherein the preset caching strategy is configured to dynamically select the storage location based on the size of the storage space required by the target parameter.

[0013] According to another aspect of this application, a computer program product is also provided, which stores a computer program, wherein a caching method is provided for controlling the execution of business parameters of any of the above-mentioned items during the execution of the computer program.

[0014] According to another aspect of this application, an electronic device is also provided, wherein the electronic device includes one or more processors and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a caching method for business parameters of any of the above.

[0015] As described above, this application captures newly added or updated target parameters by periodically scanning the database. Then, based on the historical cache status of the target parameters in the cache area, this application intelligently decides whether to update the existing parameter cache value or store the new target parameter value in the memory cache area or the distributed cache area according to the preset caching strategy (considering the size of the parameter storage space). The application of the preset caching strategy mechanism ensures that even if the amount of data of the business parameters required by the target application increases dramatically and exceeds the memory storage space of the target application, this application can still automatically adjust the storage location of the target parameters through the preset caching strategy to maintain the stable operation of the target application, thereby enhancing the robustness and flexibility of the data caching mechanism of the target application.

[0016] Therefore, this application adopts an adaptive hot loading method for business parameters. By dynamically selecting the storage location based on a preset caching strategy, it achieves the goal of dynamically adjusting the parameter cache location according to the memory resources of the target application. This enables the technical effect of automatically coping with the memory pressure caused by the increase in the amount of business parameter data without affecting the business code of the target application. In turn, it solves the technical problem of low scalability of business applications caused by caching business parameters based on the fixed caching strategy in the existing technology. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 This is a hardware structure block diagram of a computer terminal (or mobile device) for implementing a caching method for business parameters according to an embodiment of this application.

[0019] Figure 2 This is a flowchart of an optional business parameter caching method according to an embodiment of this application;

[0020] Figure 3 This is a schematic diagram of an optional parameter hot-loading device according to an embodiment of this application;

[0021] Figure 4 This is a flowchart of an optional hot-loading method for service parameters according to an embodiment of this application;

[0022] Figure 5 This is a schematic diagram of an optional service parameter caching device according to an embodiment of this application;

[0023] Figure 6 This is a structural block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0026] It should also be noted that all information and data (including but not limited to information used for display and analysis) involved in this application are authorized by the user or fully authorized by all parties. For example, if there is an interface between this system and the relevant user or organization, before obtaining the relevant information, it is necessary to send a request to the aforementioned user or organization through the interface, and obtain the relevant information only after receiving consent from the aforementioned user or organization.

[0027] Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of relevant information and data involved in this application all comply with the relevant laws, regulations, and standards of the relevant regions, and necessary confidentiality measures have been taken. This application does not violate public order and good morals. In addition, this application provides a corresponding operation entry point for users to choose to agree to or refuse authorization. If the user chooses to refuse authorization, the corresponding expert decision-making process will be initiated.

[0028] In related technologies, a caching method using a fixed parameter caching strategy is provided. In this method, after the technician caches the business parameters required by the business application in the application node memory, the amount of cached parameter data in the node memory exceeds the node memory size due to a sudden increase in the amount of business that the business application needs to process. This causes the application node memory to overflow, and the business application system to crash.

[0029] To avoid the above problems, this application provides a caching system for providing an adaptive parameter caching method. The following describes this application in detail with reference to various embodiments.

[0030] Example 1

[0031] According to an embodiment of this application, an embodiment of a caching method for business parameters is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0032] The method embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Figure 1 This is a hardware structure block diagram of a computer terminal (or mobile device) according to an optional embodiment of this application for implementing a caching method for business parameters. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) 102 (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0033] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or mobile device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).

[0034] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the business parameter caching method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby implementing the aforementioned business parameter caching method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0035] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0036] The display can be configured as a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10 (or mobile device).

[0037] Under the aforementioned operating environment, this application provides a business parameter caching system (hereinafter referred to as the caching system) for executing the business parameter caching method in this application. Figure 2 This is a flowchart of an optional business parameter caching method according to an embodiment of this application, such as... Figure 2 As shown, the method includes the following steps:

[0038] Step S201: Scan a preset database based on a preset script to obtain target parameters. The preset script is used to perform a data scanning task once every preset time interval. The target parameters are newly added parameters or parameters whose values ​​have been updated in the preset database.

[0039] Optionally, the preset script can automatically and periodically perform data scanning tasks to capture parameter change information in the preset database in a timely manner. The preset script first collects the execution records of SQL (Structured Query Language) statements in the preset database, and then filters the execution records by keywords (such as update, insert) to detect new parameters or parameters whose values ​​have been updated.

[0040] Optionally, the preset database refers to the database preset by the financial institution, which contains various parameters required for the operation of the financial institution's business applications (i.e., target applications).

[0041] Optionally, the caching system achieves automated monitoring and capture of database parameters by periodically scanning the preset database. This enables the caching system to promptly identify changes in parameters in the preset database, thereby providing an update basis for subsequent parameter updates in the cache area. This accelerates the target application's reading speed of data from the preset database, and thus improves the response speed of the target application's business processing.

[0042] Step S202: Search the cache area based on the parameter identifier of the target parameter to obtain the historical cache value indicated by the parameter identifier of the target parameter. The cache area includes at least the memory cache area of ​​the target application and the distributed cache area of ​​the distributed system.

[0043] Optionally, the cache area includes the internal memory cache area of ​​the target application and the distributed cache area of ​​the external distributed system. When caching business parameters in the preset database, the caching system first caches the parameters in the local memory cache area of ​​the target application to improve the efficiency of the target application in obtaining business parameters. If the storage space of the local memory cache area of ​​the target application is insufficient, the caching system caches the business parameters in the external distributed system to avoid causing memory overflow of the target application.

[0044] Step S203: If the target parameter value is different from the historical cache value, update the historical cache value in the cache to the target parameter value.

[0045] Optionally, the caching system searches for historical cached values ​​of the target parameter in the cache area based on the parameter identifier. This allows for a quick determination of whether the target parameter has been stored in the cache area. If the target parameter has been stored in the cache area, the current modification in the preset database only updates the parameter value of the target parameter (i.e., the parameter value of the target parameter is different from the historical cached value). The caching system then replaces the historical cached value in the cache area with the parameter value of the target parameter in the preset database, thus avoiding the situation of repeatedly loading the same parameter value in the cache area and preventing excessive overhead in the overall parameter caching.

[0046] Optionally, if the target parameter value differs from the historical cache value, the detection system updates the historical cache value in the cache area, while avoiding the problem of inconsistency between the business parameter value read by the target application from the cache area and the business parameter value in the preset database.

[0047] Step S204: If no historical cached value is found in the cache area, the target parameter is stored in the cache area based on a preset caching strategy. The preset caching strategy is used to dynamically select the storage location based on the size of the storage space required by the target parameter.

[0048] Optionally, the preset caching strategy refers to the caching rules pre-set in the caching system, used to determine whether the parameter value of the target parameter is stored in the local memory cache of the target application or in the distributed cache.

[0049] Optionally, based on a preset caching strategy, the caching system prioritizes storing target parameters in the target application's memory cache when the target application has sufficient storage space, enabling the target application to quickly read the required business parameter values ​​directly from the local cache. When the target application's memory cache has insufficient storage space, the caching system stores the target parameters in the distributed cache of an external distributed system to avoid memory overflow of the target application's nodes and block the target application's business processing flow.

[0050] As described above, this application captures newly added or updated target parameters by periodically scanning the database. Then, based on the historical cache status of the target parameters in the cache area, this application intelligently decides whether to update the existing parameter cache value or store the new target parameter value in the memory cache area or the distributed cache area according to the preset caching strategy (considering the size of the parameter storage space). The application of the preset caching strategy mechanism ensures that even if the amount of data of the business parameters required by the target application increases dramatically and exceeds the memory storage space of the target application, this application can still automatically adjust the storage location of the target parameters through the preset caching strategy to maintain the stable operation of the target application, thereby enhancing the robustness and flexibility of the data caching mechanism of the target application.

[0051] Therefore, this application adopts an adaptive hot loading method for business parameters. By dynamically selecting the storage location based on a preset caching strategy, it achieves the goal of dynamically adjusting the parameter cache location according to the memory resources of the target application. This enables the technical effect of automatically coping with the memory pressure caused by the increase in the amount of business parameter data without affecting the business code of the target application. In turn, it solves the technical problem of low scalability of business applications caused by caching business parameters based on the fixed caching strategy in the existing technology.

[0052] In one optional embodiment, the caching system first detects the size of the remaining storage space in the target application's memory cache. Then, if the storage space required by the target parameter is less than or equal to the remaining storage space in the memory cache, the caching system stores the target parameter in the target application's memory cache; if the storage space required by the target parameter is greater than the remaining storage space in the memory cache, the caching system stores the target parameter in the distributed cache of the distributed system.

[0053] Optionally, the caching system provides a basis for decision-making for the implementation of subsequent preset caching strategies by detecting the size of the remaining storage space in the memory cache in real time. At the same time, the memory monitoring mechanism of the target application enables the caching system to understand the changes in the memory usage of the target application in real time, avoiding excessive consumption of the target application's memory resources, thereby maintaining the robustness of the target application system.

[0054] Optionally, when the caching system detects that the memory cache can accommodate the target parameters for storage, the caching system directly stores the parameter values ​​of the target parameters in the local memory of the target application. By utilizing the high-speed access characteristics of memory, the target application speeds up its access to business parameters, thereby improving the response speed and user experience of the target application. At the same time, the local storage method reduces the target application's dependence on the distributed system and lowers the communication overhead between the target application and the distributed system.

[0055] Optionally, if the storage space required for the target parameter is greater than the remaining storage space in the memory cache, which means that the data size of the target parameter exceeds the carrying capacity of the memory cache, the caching system automatically stores the data in the distributed cache. This utilizes the large capacity of the distributed system and avoids the problem of target application crashing / performance degradation due to insufficient memory.

[0056] In summary, the caching system monitors the remaining storage space in the memory cache and intelligently decides the data storage location based on the storage requirements of the target parameters and the size of the remaining storage space, thereby constructing a data caching mechanism. This mechanism not only leverages the high-speed access characteristics of memory to accelerate the target application's access speed to business parameters, but also enhances the target application's adaptability to the rapid growth of business data volume, avoiding the target application's memory resource bottleneck problem.

[0057] In one optional embodiment, after storing the target parameters in the cache based on a preset caching strategy, the caching system first receives a business request through a preset interface. The business request is initiated by a functional module in the target application, which is used to process financial transactions. Then, the caching system parses the business request to obtain the parameter identifier of the business parameters that the target application needs to load. Next, the caching system searches in the memory cache based on the parameter identifier of the business parameters. Subsequently, if the caching system finds the parameter cache value indicated by the parameter identifier of the business parameters in the memory cache, it encapsulates the parameter cache value in the memory cache to obtain the return data of the business request. Then, the caching system transmits the return data to the functional module of the target application through the preset interface.

[0058] Optionally, the caching system encapsulates the underlying parameter caching logic and provides a pre-defined interface in a unified format to the target application to receive business requests. The target application does not need to care about the underlying parameter caching logic and can directly obtain the parameter values ​​of the required business parameters by calling the pre-defined interface, which simplifies the process of obtaining business parameters. At the same time, the use of the pre-defined interface enables the caching system to receive business requests from different functional modules, which simplifies the process of processing business requests.

[0059] Optionally, the caching system can accurately locate the required business parameters by parsing the content of the business request and extracting the parameter identifiers. This avoids unnecessary global searches of the cache area. Based on the parameter identifiers of the business parameters, the caching system prioritizes searching in the memory cache area. It can take advantage of the high-speed access of memory to complete the retrieval of parameter values ​​in a short time, thereby improving the access speed of business parameters and optimizing the business processing flow of the target application.

[0060] Optionally, if the parameter cache value indicated by the parameter identifier of the business parameter is found in the memory cache, the caching system immediately encapsulates the parameter cache value into the format of the return data corresponding to the business request, which accelerates the transmission process of the parameter cache value, reduces the waiting time of the target application function module, and thus improves the efficiency of the overall business processing.

[0061] In summary, by calling preset interfaces, parsing business requests, and encapsulating returned data, the caching system accelerates the speed at which the target application obtains business parameters and improves the processing speed of the target application's functional modules for financial business.

[0062] In one optional embodiment, after storing the target parameter in the cache area based on a preset caching strategy, if the caching system does not find the parameter cache value in the memory cache area, it searches in the distributed cache area based on the parameter identifier of the business parameter. Then, if the caching system finds the parameter cache value in the distributed cache area, it encapsulates the parameter cache value in the distributed cache area to obtain the return data of the business request. Then, if the caching system does not find the parameter cache value in the distributed cache area, it generates a target instruction, wherein the target instruction is used to store the parameter value of the business parameter in the preset database into the cache area.

[0063] Optionally, if the detection system does not find the cached parameter value in the memory cache, it will not immediately return a search failure message or a null value. Instead, it will further search in the distributed cache based on the parameter identifier of the business parameter. This multi-level cache lookup mechanism makes the business parameter available. Even if the target application's local memory is insufficient, the caching system can obtain data from the distributed cache of the distributed system, thereby avoiding the high cost and potential performance bottlenecks caused by the target application having to directly access the preset database.

[0064] Optionally, if the parameter cache value is obtained from the distributed cache, the detection system immediately encapsulates the parameter cache value in the distributed cache to obtain the return data of the business request, so that the data format of the return data is consistent with the expectations of the functional module of the target application, which facilitates the subsequent data processing and application of the functional module.

[0065] Optionally, if the parameter cache value is not found in the distributed cache, the detection system immediately generates the target instruction, hot-loads the parameter value of the target parameter from the preset database, and stores the parameter value of the target parameter in the cache. This mechanism ensures the normal operation of the functional modules of the target application. By establishing a parameter hot-loading channel between the preset database and the cache system, the detection system enables the cache system to respond in real time to changes in the parameter value in the preset database.

[0066] In summary, the detection system constructs a reliable caching system through a multi-level cache lookup and dynamic data loading mechanism. This mechanism accelerates the efficiency and response speed of the target application in accessing business parameters, enabling the target application to run stably even in high-concurrency financial business scenarios.

[0067] In one optional embodiment, after storing the target parameters in the cache area based on a preset caching strategy, if the remaining storage space in the memory cache area is less than a preset space threshold, the caching system detects the access frequency of each parameter cache value in the memory cache area. Then, the caching system migrates the parameter cache values ​​with access frequencies less than the preset frequency to the distributed cache area.

[0068] Optionally, by comparing the remaining storage space in the memory cache with a preset space threshold in real time, the caching system can intelligently determine whether the caching system needs to be optimized. When memory resources are scarce, the caching system can detect the access frequency of each parameter cache value, thereby identifying data that is not frequently used or has low access frequency, providing a basis for decision-making for subsequent cache data migration, and helping to improve the utilization rate of memory resources.

[0069] In summary, by migrating frequently accessed parameter cache values ​​to a distributed cache, the caching system can free up local memory space in the target application to store more frequently accessed parameter values, thereby improving the access efficiency of the memory cache. At the same time, the distributed cache system provides storage space for low-frequency parameters, avoiding data loss caused by memory cleanup, and maintaining the robustness and integrity of the caching system. This strategic data migration achieves dynamic balancing of cached data and meets the fast access requirements of high-frequency data.

[0070] In one optional embodiment, after detecting the access frequency of each parameter cache value in the memory cache, if the access frequency of each parameter cache value in the memory cache is greater than or equal to a preset frequency, the caching system sorts the L parameter cache values ​​stored in the memory cache based on the access frequency of each parameter cache value to obtain a parameter value sequence corresponding to the L parameter cache values, where L is a positive integer. Then, the caching system migrates the M parameter cache values ​​at the end of the parameter value sequence to the distributed cache, where M is a positive integer less than L.

[0071] Optionally, if the access frequency of each parameter cache value in the memory cache is greater than or equal to the preset frequency, the caching system sorts the L parameter cache values ​​stored in the memory cache based on the access frequency of each parameter cache value to obtain the parameter value sequence corresponding to the L parameter cache values. This sorting mechanism helps the caching system identify business parameters with relatively low access frequency so that they can be migrated to the distributed cache area, ensuring that memory resources are always given priority for storing "hot" business data, thus achieving hierarchical optimization of data storage.

[0072] In summary, the caching system selects the M parameter cache values ​​with the lowest access frequency and migrates them from the in-memory cache to the distributed cache. This strategic migration mechanism effectively releases space in the in-memory cache, freeing up memory for business parameters with higher access frequencies. This improves the utilization efficiency of the in-memory cache as a high-performance storage layer. At the same time, by migrating the M parameter cache values ​​with the lowest access frequency to the distributed cache, the caching system can still maintain access to these parameters, only the access path changes. This optimizes resource allocation without sacrificing data availability, achieving a balance between performance and resource management.

[0073] In one optional embodiment, after detecting the access frequency of each parameter cache value in the memory cache, if the access frequency of each parameter cache value in the memory cache is greater than or equal to a preset frequency, the caching system generates a prompt message, wherein the prompt message is used to prompt the operation and maintenance personnel to expand the memory cache.

[0074] Optionally, when the caching system detects that the access frequency of all parameter cache values ​​in the memory cache has reached or exceeded the preset frequency, it means that the data in the memory cache is hot data in the current business processing of the target application, and the memory cache is under pressure from high concurrency access. In this case, the system automatically generates a prompt message to alert the operation and maintenance personnel to the current resource status of the memory cache so that memory expansion measures can be implemented as soon as possible to cope with the continuous high-frequency access demand of business parameters in the financial scenario.

[0075] Optionally, the caching system can generate prompts to remind operations and maintenance personnel to expand the memory cache, achieving the following technical effects:

[0076] (1) Avoid service interruption: The caching system provides early warning of memory resource shortages, giving maintenance personnel ample time and preparation to adjust system configurations, thus avoiding service interruption or degradation caused by sudden memory shortages.

[0077] (2) Enhance the robustness of the target application: The caching system helps the target application maintain stable operation in the long term by regularly checking the parameter access frequency and promptly notifying the operation and maintenance personnel, thus enhancing the robustness of the target application.

[0078] In summary, by monitoring the access frequency of parameters in the memory cache and generating prompts when necessary, the caching system can not only reflect the system resource usage status in a timely manner, but also dynamically adjust resource allocation under high access pressure through the intervention of operations and maintenance personnel, thereby maintaining the stability of the target application's performance.

[0079] As described above, this application captures newly added or updated target parameters by periodically scanning the database. Then, based on the historical cache status of the target parameters in the cache area, this application intelligently decides whether to update the existing parameter cache value or store the new target parameter value in the memory cache area or the distributed cache area according to the preset caching strategy (considering the size of the parameter storage space). The application of the preset caching strategy mechanism ensures that even if the amount of data of the business parameters required by the target application increases dramatically and exceeds the memory storage space of the target application, this application can still automatically adjust the storage location of the target parameters through the preset caching strategy to maintain the stable operation of the target application, thereby enhancing the robustness and flexibility of the data caching mechanism of the target application.

[0080] Therefore, this application adopts an adaptive hot loading method for business parameters. By dynamically selecting the storage location based on a preset caching strategy, it achieves the goal of dynamically adjusting the parameter cache location according to the memory resources of the target application. This enables the technical effect of automatically coping with the memory pressure caused by the increase in the amount of business parameter data without affecting the business code of the target application. In turn, it solves the technical problem of low scalability of business applications caused by caching business parameters based on the fixed caching strategy in the existing technology.

[0081] In one alternative embodiment, Figure 3 This is an architectural diagram of an optional parameter hot-loading device according to an embodiment of this application, such as... Figure 3 As shown, the parameter hot-loading device includes: a memory management module, a data scheduling module, and a data access module.

[0082] Optionally, the memory management module monitors and manages memory resources on application nodes. During memory resource management, if a node memory overflow exception occurs, the memory management module is responsible for handling the exception to ensure the stable operation of the target application. The data scheduling module is responsible for scheduling cached data between different cache levels (such as the target application's memory cache and the distributed cache of the distributed system). Based on the access frequency fed back by the data access module and the resource information from the memory management module, the data scheduling module dynamically adjusts the distribution of data between memory and distributed cache to optimize the access performance of cached data. The data access module is used for the functional modules of the target application (e.g., Figure 3 Functional modules 1-3 provide a unified data access interface (i.e., the preset interface), shielding the complexity of the underlying caching mechanism and ensuring efficient access to cached data. The data access module first attempts to query data from the local memory of the application node. If the data is not found, it queries the distributed cache area of ​​the external distributed system. Finally, if the data is still not found, it reads the data from the preset database.

[0083] In one alternative embodiment, Figure 4 This is a flowchart of an optional hot-loading method for service parameters according to an embodiment of this application, such as... Figure 4 As shown, the method includes: configuring the parameter hot-loading device; when the node of the target application starts, controlling the parameter hot-loading device to load parameters from a preset database into the memory of the target application based on the configuration information; periodically scanning whether the parameters in the preset database have been updated, and if there are updates, refreshing the parameters in memory; detecting whether the parameter value to be refreshed exceeds the size of a specified memory (i.e., the remaining space of the node's memory), and if it does not exceed the size, continuing to load the parameter value to be refreshed into memory, with the data storage area shielded from the outside by a preset interface provided by the data access module; if the parameter value to be refreshed exceeds the size of the specified memory, caching the less frequently accessed data in memory to an external distributed cache area according to a preset migration rule (i.e., a preset caching strategy).

[0084] As described above, this application captures newly added or updated target parameters by periodically scanning the database. Then, based on the historical cache status of the target parameters in the cache area, this application intelligently decides whether to update the existing parameter cache value or store the new target parameter value in the memory cache area or the distributed cache area according to the preset caching strategy (considering the size of the parameter storage space). The application of the preset caching strategy mechanism ensures that even if the amount of data of the business parameters required by the target application increases dramatically and exceeds the memory storage space of the target application, this application can still automatically adjust the storage location of the target parameters through the preset caching strategy to maintain the stable operation of the target application, thereby enhancing the robustness and flexibility of the data caching mechanism of the target application.

[0085] Therefore, this application adopts an adaptive hot loading method for business parameters. By dynamically selecting the storage location based on a preset caching strategy, it achieves the goal of dynamically adjusting the parameter cache location according to the memory resources of the target application. This enables the technical effect of automatically coping with the memory pressure caused by the increase in the amount of business parameter data without affecting the business code of the target application. In turn, it solves the technical problem of low scalability of business applications caused by caching business parameters based on the fixed caching strategy in the existing technology.

[0086] Example 2

[0087] This application embodiment can also provide a business parameter caching device. It should be noted that the business parameter caching device of this application embodiment can be used to execute the business parameter caching method provided in this application embodiment. The business parameter caching device provided in this application embodiment will be described below.

[0088] According to an embodiment of this application, an apparatus for implementing the above-described caching method for business parameters is also provided. Figure 5 This is a schematic diagram of an optional service parameter caching device according to an embodiment of this application, such as... Figure 5 As shown, the device includes: a scanning unit 501, a first search unit 502, an update unit 503, and a storage unit 504.

[0089] Optionally, the scanning unit 501 is used to scan a preset database based on a preset script to obtain the target parameter, wherein the preset script is used to perform a data scanning task once every preset time interval, and the target parameter is a newly added parameter or a parameter whose value has been updated in the preset database; the first lookup unit 502 is used to search in the cache area based on the parameter identifier of the target parameter to obtain the historical cache value indicated by the parameter identifier of the target parameter, wherein the cache area includes at least the memory cache area of ​​the target application and the distributed cache area of ​​the distributed system; the update unit 503 is used to update the historical cache value in the cache area to the parameter value of the target parameter when the parameter value of the target parameter is different from the historical cache value; the storage unit 504 is used to store the target parameter in the cache area based on a preset caching strategy when the historical cache value is not found in the cache area, wherein the preset caching strategy is used to dynamically select the storage location based on the size of the storage space required by the target parameter.

[0090] In one optional embodiment, the storage unit 504 includes: a space detection subunit, a first storage subunit, and a second storage subunit.

[0091] Optionally, the space detection subunit is used to detect the size of the remaining storage space of the target application's memory cache; the first storage subunit is used to store the target parameter in the target application's memory cache if the storage space required by the target parameter is less than or equal to the remaining storage space of the memory cache; and the second storage subunit is used to store the target parameter in the distributed cache of the distributed system if the storage space required by the target parameter is greater than the remaining storage space of the memory cache.

[0092] In one optional embodiment, the service parameter caching device further includes: a request receiving unit, a request parsing unit, a second lookup unit, a first encapsulation unit, and a transmission unit.

[0093] Optionally, the request receiving unit is used to receive business requests through a preset interface, wherein the business request is a business request initiated by a functional module in the target application, and the functional module is used to process financial business; the request parsing unit is used to parse the business request to obtain the parameter identifier of the business parameters that the target application needs to load; the second lookup unit is used to search in the memory cache based on the parameter identifier of the business parameters; the first encapsulation unit is used to encapsulate the parameter cache value in the memory cache if the parameter cache value indicated by the parameter identifier of the business parameters is found in the memory cache, to obtain the return data of the business request; and the transmission unit is used to transmit the return data to the functional module of the target application through a preset interface.

[0094] In an optional embodiment, the service parameter caching device further includes: a third lookup unit, a second encapsulation unit, and an instruction generation unit.

[0095] Optionally, the third lookup unit is used to search in the distributed cache based on the parameter identifier of the business parameter when the parameter cache value is not found in the memory cache; the second encapsulation unit is used to encapsulate the parameter cache value in the distributed cache to obtain the return data of the business request when the parameter cache value is found in the distributed cache; the instruction generation unit is used to generate a target instruction when the parameter cache value is not found in the distributed cache, wherein the target instruction is used to store the parameter value of the business parameter in the preset database into the cache.

[0096] In an optional embodiment, the service parameter caching device further includes an access frequency detection unit and a first migration unit.

[0097] Optionally, the access frequency detection unit is used to detect the access frequency of each parameter cache value in the memory cache when the remaining storage space in the memory cache is less than a preset space threshold; the first migration unit is used to migrate parameter cache values ​​with access frequencies less than a preset frequency to the distributed cache.

[0098] In an optional embodiment, the service parameter caching device further includes: an access frequency sorting unit and a second migration unit.

[0099] Optionally, the access frequency sorting unit is used to sort the L parameter cache values ​​stored in the memory cache based on the access frequency of each parameter cache value in the memory cache, when the access frequency of each parameter cache value in the memory cache is greater than or equal to a preset frequency, to obtain a parameter value sequence corresponding to the L parameter cache values, where L is a positive integer; the second migration unit is used to migrate the M parameter cache values ​​at the end of the ranking of the parameter value sequence to the distributed cache, where M is a positive integer less than L.

[0100] In an optional embodiment, the caching device for service parameters further includes a capacity expansion unit.

[0101] Optionally, the expansion unit is used to generate a prompt message when the access frequency of each parameter cache value in the memory cache is greater than or equal to a preset frequency, wherein the prompt message is used to prompt the operation and maintenance personnel to expand the memory cache.

[0102] As described above, this application captures newly added or updated target parameters by periodically scanning the database. Then, based on the historical cache status of the target parameters in the cache area, this application intelligently decides whether to update the existing parameter cache value or store the new target parameter value in the memory cache area or the distributed cache area according to the preset caching strategy (considering the size of the parameter storage space). The application of the preset caching strategy mechanism ensures that even if the amount of data of the business parameters required by the target application increases dramatically and exceeds the memory storage space of the target application, this application can still automatically adjust the storage location of the target parameters through the preset caching strategy to maintain the stable operation of the target application, thereby enhancing the robustness and flexibility of the data caching mechanism of the target application.

[0103] Therefore, this application adopts an adaptive hot loading method for business parameters. By dynamically selecting the storage location based on a preset caching strategy, it achieves the goal of dynamically adjusting the parameter cache location according to the memory resources of the target application. This enables the technical effect of automatically coping with the memory pressure caused by the increase in the amount of business parameter data without affecting the business code of the target application. In turn, it solves the technical problem of low scalability of business applications caused by caching business parameters based on the fixed caching strategy in the existing technology.

[0104] It should be noted that the scanning unit 501, the first search unit 502, the update unit 503, and the storage unit 504 mentioned above correspond to steps S201 to S204 in the method embodiment. The instances and application scenarios implemented by the above units and the corresponding steps are the same, but are not limited to the content disclosed in the above embodiments. It should be noted that the above modules or units can be hardware components or software components stored in memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n). The above modules can also be part of the device and can run in the computer terminal 10 provided in the embodiment.

[0105] Example 3

[0106] Embodiments of this application can also provide an electronic device. Figure 6 This is a structural block diagram of an electronic device according to an embodiment of this application, such as... Figure 6As shown, the electronic device includes: one or more ( Figure 6 (Only one is shown) Processor 602, memory 604, memory controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0107] The memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the methods and devices in the embodiments of this application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, to implement the above-mentioned business parameter caching method.

[0108] The memory may include high-speed random access memory (RAM), and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory remotely located relative to the processor, which can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks (LANs), mobile communication networks, and combinations thereof.

[0109] The processor can invoke information and applications stored in memory via a transmission device to perform the following steps: Scanning a preset database based on a preset script to obtain target parameters, wherein the preset script performs a data scan task once every preset time interval, and the target parameters are newly added parameters or parameters whose values ​​have been updated in the preset database; searching in the cache area based on the parameter identifier of the target parameters to obtain the historical cached value indicated by the parameter identifier of the target parameters, wherein the cache area includes at least the memory cache area of ​​the target application and the distributed cache area of ​​the distributed system; if the parameter value of the target parameters differs from the historical cached value, updating the historical cached value in the cache area to the parameter value of the target parameters; if the historical cached value is not found in the cache area, storing the target parameters in the cache area based on a preset caching strategy, wherein the preset caching strategy dynamically selects the storage location based on the required storage space of the target parameters.

[0110] The processor can access information and applications stored in memory via a transmission device to perform the following steps: detect the remaining storage space in the target application's memory cache; if the storage space required by the target parameter is less than or equal to the remaining storage space in the memory cache, store the target parameter in the target application's memory cache; if the storage space required by the target parameter is greater than the remaining storage space in the memory cache, store the target parameter in the distributed cache of the distributed system.

[0111] The processor can access information and applications stored in memory via a transmission device to perform the following steps: receiving a business request through a preset interface, wherein the business request is initiated by a functional module in the target application, and the functional module is used to process financial transactions; parsing the business request to obtain the parameter identifier of the business parameters that the target application needs to load; searching in the memory cache based on the parameter identifier of the business parameters; if the parameter cache value indicated by the parameter identifier of the business parameters is found in the memory cache, encapsulating the parameter cache value in the memory cache to obtain the return data of the business request; and transmitting the return data to the functional module of the target application through the preset interface.

[0112] The processor can invoke information and applications stored in memory via a transmission device to perform the following steps: if the parameter cache value is not found in the memory cache, search for it in the distributed cache based on the parameter identifier of the business parameter; if the parameter cache value is found in the distributed cache, encapsulate the parameter cache value in the distributed cache to obtain the return data of the business request; if the parameter cache value is not found in the distributed cache, generate a target instruction, wherein the target instruction is used to store the parameter value of the business parameter in the preset database into the cache.

[0113] The processor can access information and applications stored in memory via a transmission device to perform the following steps: when the remaining storage space in the memory cache is less than a preset space threshold, detect the access frequency of each parameter cache value in the memory cache; migrate parameter cache values ​​with access frequencies less than the preset frequency to a distributed cache.

[0114] The processor can invoke information and applications stored in memory through a transmission device to perform the following steps: when the access frequency of each parameter cache value in the memory cache is greater than or equal to a preset frequency, sort the L parameter cache values ​​stored in the memory cache based on the access frequency of each parameter cache value to obtain a parameter value sequence corresponding to the L parameter cache values, where L is a positive integer; migrate the M parameter cache values ​​at the end of the parameter value sequence to a distributed cache, where M is a positive integer less than L.

[0115] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: when the access frequency of each parameter cache value in the memory cache is greater than or equal to the preset frequency, a prompt message is generated, wherein the prompt message is used to prompt the operation and maintenance personnel to expand the memory cache.

[0116] This application provides a caching scheme for business parameters. By periodically scanning the database, this application captures newly added or updated target parameters. Then, based on the historical cached state of the target parameters in the cache area, it intelligently decides whether to update the existing cached parameter value or, according to a preset caching strategy (considering the parameter storage space size), store the new target parameter value in a memory cache or a distributed cache area. The application of the preset caching strategy mechanism ensures that even if the amount of business parameters required by the target application increases dramatically, exceeding the target application's memory storage space, this application can still automatically adjust the storage location of the target parameters through the preset caching strategy to maintain the stable operation of the target application, thereby enhancing the robustness and flexibility of the target application's data caching mechanism.

[0117] Therefore, this application adopts an adaptive hot loading method for business parameters. By dynamically selecting the storage location based on a preset caching strategy, it achieves the goal of dynamically adjusting the parameter cache location according to the memory resources of the target application. This enables the technical effect of automatically coping with the memory pressure caused by the increase in the amount of business parameter data without affecting the business code of the target application. In turn, it solves the technical problem of low scalability of business applications caused by caching business parameters based on the fixed caching strategy in the existing technology.

[0118] Those skilled in the art will understand that Figure 6 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones, tablets, PDAs, mobile internet devices, PADs, and other terminal devices. Figure 6 This does not limit the structure of the aforementioned electronic device. For example, electronic devices may also include components that are more... Figure 6 The more or fewer components shown (such as network interfaces, display devices, etc.), or having the same Figure 6 The different configurations shown.

[0119] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the terminal device. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0120] Example 4

[0121] Embodiments of this application may also provide a storage medium.

[0122] Optionally, in this embodiment of the application, the storage medium can be used to store the program code executed by the caching method for business parameters provided in the above method embodiment.

[0123] Optionally, in this embodiment, the storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any mobile terminal in a group of mobile terminals.

[0124] This application also provides a computer program product, which, when executed on a data processing device, is suitable for performing caching method steps for business parameters.

[0125] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0126] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0127] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0128] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0129] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0130] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.

[0131] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for caching business parameters, characterized in that, include: The target parameter is obtained by scanning a preset database based on a preset script. The preset script is used to perform a data scanning task once every preset time interval. The target parameter is a newly added parameter or a parameter whose value has been updated in the preset database. The parameter identifier of the target parameter is searched in the cache area to obtain the historical cache value indicated by the parameter identifier of the target parameter. The cache area includes at least the memory cache area of ​​the target application and the distributed cache area of ​​the distributed system. If the value of the target parameter is different from the historical cache value, the historical cache value in the cache area is updated to the value of the target parameter; If the historical cached value is not found in the cache area, the target parameter is stored in the cache area based on a preset caching strategy, wherein the preset caching strategy is used to dynamically select the storage location based on the required storage space of the target parameter.

2. The method for caching business parameters according to claim 1, characterized in that, Storing the target parameters into the cache area based on a preset caching strategy includes: Detect the size of the remaining storage space in the memory cache of the target application; If the storage space required for the target parameter is less than or equal to the remaining storage space in the memory cache, the target parameter is stored in the memory cache of the target application. If the required storage space for the target parameter is greater than the remaining storage space in the memory cache, the target parameter is stored in the distributed cache of the distributed system.

3. The method for caching business parameters according to claim 1, characterized in that, After storing the target parameters in the cache area based on a preset caching strategy, the caching method for the business parameters further includes: The system receives business requests through a preset interface, wherein the business request is a business request initiated by a functional module in the target application, and the functional module is used to process financial business. The business request is parsed to obtain the parameter identifiers of the business parameters that the target application needs to load; The parameter identifier based on the business parameters is searched in the memory cache. If the parameter cache value indicated by the parameter identifier of the business parameter is found in the memory cache, the parameter cache value in the memory cache is encapsulated to obtain the return data of the business request; The function module that transmits the returned data to the target application through the preset interface.

4. The method for caching business parameters according to claim 3, characterized in that, After storing the target parameters in the cache area based on a preset caching strategy, the caching method for the business parameters further includes: If the parameter cache value is not found in the memory cache, the parameter is searched in the distributed cache based on the parameter identifier of the business parameter. If the parameter cache value is obtained by querying the distributed cache area, the parameter cache value in the distributed cache area is encapsulated to obtain the return data of the business request; If the parameter cache value is not found in the distributed cache area, a target instruction is generated, wherein the target instruction is used to store the parameter value of the business parameter in the preset database into the cache area.

5. The method for caching business parameters according to claim 1, characterized in that, After storing the target parameters in the cache area based on a preset caching strategy, the caching method for the business parameters further includes: If the remaining storage space in the memory cache is less than a preset space threshold, the access frequency of each parameter cache value in the memory cache is detected. The parameter cache values ​​with access frequency less than the preset frequency are migrated to the distributed cache area.

6. The method for caching business parameters according to claim 5, characterized in that, After detecting the access frequency of each parameter cache value in the memory cache area, the caching method for the business parameters further includes: When the access frequency of each parameter cache value in the memory cache is greater than or equal to the preset frequency, the L parameter cache values ​​stored in the memory cache are sorted based on the access frequency of each parameter cache value to obtain the parameter value sequence corresponding to the L parameter cache values, where L is a positive integer; The M cached parameter values ​​at the end of the parameter value sequence are migrated to the distributed cache area, where M is a positive integer less than L.

7. The method for caching business parameters according to claim 5, characterized in that, After detecting the access frequency of each parameter cache value in the memory cache area, the caching method for the business parameters further includes: If the access frequency of each parameter cache value in the memory cache is greater than or equal to the preset frequency, a prompt message is generated, wherein the prompt message is used to prompt the operation and maintenance personnel to expand the memory cache.

8. A caching device for business parameters, characterized in that, include: The scanning unit is used to scan a preset database based on a preset script to obtain target parameters. The preset script is used to perform a data scanning task once every preset time interval. The target parameters are newly added parameters or parameters whose parameter values ​​have been updated in the preset database. The first lookup unit is used to search in the cache area based on the parameter identifier of the target parameter to obtain the historical cache value indicated by the parameter identifier of the target parameter, wherein the cache area includes at least the memory cache area of ​​the target application and the distributed cache area of ​​the distributed system. An update unit is used to update the historical cache value in the cache area to the parameter value of the target parameter when the parameter value of the target parameter is different from the historical cache value. A storage unit is used to store the target parameter in the cache area based on a preset caching strategy when the historical cache value is not found in the cache area. The preset caching strategy is used to dynamically select the storage location based on the size of the storage space required by the target parameter.

9. A computer program product, characterized in that, The computer program product includes a computer program, wherein, when the computer program is running, it controls the computer program product to execute the caching method for business parameters as described in any one of claims 1 to 7.

10. An electronic device, characterized in that, It includes one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to implement the caching method for business parameters as described in any one of claims 1 to 7.