A method, device, equipment and medium for data management
By loading the database configuration information into the memory cache in the cache manager, combined with the two-level cache structure and incremental refresh, the performance degradation problem caused by disk cache in the existing technology is solved, and efficient memory data access and cache consistency are achieved.
Patent Information
- Application Number
- CN202011623880.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-12-30
AI Technical Summary
When existing cache management libraries use disk cache, disk space is frequently read, system performance is degraded, and it is difficult to avoid high load on disk space.
Receive application startup notifications through the cache manager, load platform configuration information and application configuration information from the database into the memory cache, avoid direct access to the disk, adopt a two-level cache structure (core cache and non-core cache) and perform incremental refresh and persistence ization to ensure hot updates and consistency of the cache.
It improves system performance, avoids frequent reading of disk space, realizes memory cache data access, and ensures the stability and consistency of the cache, especially during transaction operation and when a single node is down and restarted.
Smart Images

Figure CN112632130B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data management method, apparatus, device, and computer-readable storage medium. Background Art
[0002] Computer programs, such as Java-based programs, often need to access a large amount of data in the database during operation. In order to improve system performance and avoid database performance bottlenecks, frequently accessed data in the database can be pre-read into the cache area of the computer program.
[0003] At present, the industry mainly uses cache management libraries to pre-read frequently accessed data in the database into the cache area of the computer program. The cache management library can specifically include Ehcache, Lrucache, etc. Ehcache provides a variety of flexible cache management solutions such as memory, disk file storage and distributed storage.
[0004] However, Ehcache takes up a lot of disk space when using disk cache. Specifically, the DiskCache algorithm is used to directly append and store data elements. When frequently accessed, it will cause frequent disk space reading and significantly reduce system performance. Summary of the invention
[0005] The present application provides a method for data management. The method uses a cache manager to load the platform configuration information of the application and the application configuration information of the application from the database into the memory cache according to the application startup notification received in advance, so that the application can access the data in the memory cache. In this way, the application system converts the original database data access into the application system memory cache data access, avoiding frequent disk space reading and improving the performance of the system. The present application also provides devices, equipment and media corresponding to the above method.
[0006] In a first aspect, the present application provides a data management method. The method is applied to a cache manager, comprising:
[0007] Receive application startup notification, which is used to notify the application to request startup;
[0008] Loading platform configuration information and application configuration information from the database into the memory cache, so that when the application accesses data in the database, the application accesses the data from the memory cache;
[0009] The platform configuration information is the configuration information of the platform on which the application is deployed, and the application configuration information is the configuration information of the application.
[0010] In some possible implementations, the memory cache includes a core cache or an uncore cache.
[0011] In some possible implementations, the method further includes:
[0012] When at least one of the platform configuration information and the application configuration information fails to be loaded into the core cache, the application startup process is terminated; or,
[0013] When at least one of the platform configuration information and the application configuration information fails to be loaded into the non-core cache, a prompt message is output, where the prompt message is used to prompt the loading failure and continue to execute the startup process of the application.
[0014] In some possible implementations, loading the platform configuration information and the application configuration information from the database into the memory cache includes:
[0015] According to the configuration data in the database table, the platform configuration information and application configuration information are loaded from the database into the memory cache.
[0016] In some possible implementations, the method further includes:
[0017] When the configuration data in the database table is updated, the memory cache is refreshed according to the updated configuration data.
[0018] In some possible implementations, the method further includes:
[0019] Persist the data in the memory cache according to the database table.
[0020] In a second aspect, the present application provides a data management device. The device is applied to a cache manager, including:
[0021] A communication module, used to receive an application startup notification, where the application startup notification is used to notify the application to request startup;
[0022] A loading module, used to load platform configuration information and application configuration information from a database into a memory cache, so that when an application accesses data in the database, it accesses data from the memory cache;
[0023] The platform configuration information is the configuration information of the platform on which the application is deployed, and the application configuration information is the configuration information of the application.
[0024] In some possible implementations, the memory cache includes a core cache or an uncore cache.
[0025] In some possible implementations, the loading module is further used to:
[0026] When at least one of the platform configuration information and the application configuration information fails to be loaded into the core cache, the startup process of the application is terminated; or,
[0027] When at least one of the platform configuration information and the application configuration information fails to be loaded into the non-core cache, a prompt message is output, where the prompt message is used to prompt the loading failure and continue to execute the startup process of the application.
[0028] In some possible implementations, the loading module is specifically used to:
[0029] According to the configuration data in the database table, the platform configuration information and application configuration information are loaded from the database into the memory cache.
[0030] In some possible implementations, the device further includes:
[0031] The refresh module is used to refresh the memory cache according to the updated configuration data when the configuration data in the database table is updated.
[0032] In some possible implementations, the device further includes:
[0033] The persistence module is used to persist the data in the memory cache according to the database table.
[0034] In a third aspect, the present application provides a device, the device comprising a processor and a memory. The processor and the memory communicate with each other. The processor is used to execute instructions stored in the memory so that the device executes the data management method in the first aspect or any implementation of the first aspect.
[0035] In a fourth aspect, the present application provides a computer-readable storage medium, in which instructions are stored, and the instructions instruct a device to execute the data management method described in the above-mentioned first aspect or any implementation manner of the first aspect.
[0036] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a device, enables the device to execute the data management method described in the first aspect or any one of the implementations of the first aspect.
[0037] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations.
[0038] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0039] The present application provides a data management method, which is applied to a cache manager. The cache manager receives an application startup notification that notifies an application to request startup, and then loads configuration information of the platform on which the application is deployed and configuration information of the application from a database into a memory cache, so that the application can access data from the memory cache. As a result, the application system is converted from the original database data access to the application system memory cache data access, and it is unnecessary to access the disk, thereby avoiding frequent disk space reading and improving system performance.
[0040] Furthermore, the cache manager also divides the cache into core cache and non-core cache. The two-level data storage structure including the core cache and the non-core cache makes data access simpler, faster and more convenient. In addition, the method can perform incremental refresh, load the newly added content into the cache, and ensure the hot update of the cache during the transaction operation to ensure the consistency of the cache. At the same time, the method can also persist the cache data through the cache manager. The data persistence is based on the database data to ensure the consistency of the cache data after the single node crashes and restarts. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical methods of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 A flowchart of a data management method provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the structure of a data management device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The scheme in the embodiments provided in this application will be described below in conjunction with the drawings in this application.
[0045] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0046] First, some technical terms involved in the embodiments of the present application are introduced.
[0047] Due to the need of computer program operation, the data in the database will be frequently accessed. Usually, in order to improve system performance, a cache management library is usually used to manage the frequently accessed data in the database. Specifically, the cache management library pre-reads the frequently accessed data in the database into the cache area of the computer program, thereby directly reading the cache area of the computer program.
[0048] The cache management library can provide a variety of flexible high-speed cache management solutions such as memory, disk file storage and distributed storage. The cache management library can specifically include Ehcache, Lrucache, etc.
[0049] Ehcache is a widely used open source Java distributed cache with the characteristics of fast and efficient. It is the default cache provider (CacheProvider) in the open source object-relational mapping framework (Hibernate). Ehcache is mainly aimed at general caches, Java EE and lightweight containers, with memory and disk storage, cache loaders, cache extensions, cache exception handlers, a file compressor (GNUzip, gzip) cache servlet filter, support for representational state transfer (REST) and simple object access protocol (SOAP) application programming interface (API) and other features.
[0050] The DiskCache algorithm used by Ehcache is simple. This simple DiskCache algorithm only directly appends and stores elements, so the search for elements is very fast and efficient. However, Ehcache takes up a lot of disk space when using disk cache. If it is used in an application with frequent access, the disk will be filled up quickly and the system performance will be reduced.
[0051] In view of this, the present application provides a data management method, which is applied to a cache manager. The cache manager is an open source cache management framework. The cache manager is not a specific cache implementation, but an intermediate layer of the cache interface provided to the upper application for the convenience of developers to configure and manage various caches. The cache manager in this embodiment can be CacheManager.
[0052] Specifically, the cache manager loads the platform configuration information and application configuration information of the application from the database into the memory cache according to the application startup notification received in advance, so that the application can access the data in the database from the memory cache. In this way, the application system converts the original database data access to the application system memory cache data access, avoiding frequent disk space reading and improving system performance.
[0053] To facilitate understanding, the data management method provided in the embodiment of the present application is specifically introduced below with reference to the accompanying drawings.
[0054] See also Figure 1 The data management method shown is a flowchart, the method comprising:
[0055] S102: The cache manager receives an application startup notification.
[0056] The application startup notification is used to notify the application to request startup. Specifically, the cache manager receives the application startup notification sent by the client to notify the application to request startup.
[0057] S104: The cache manager loads the platform configuration information and the application configuration information from the database into the memory cache, so that the application accesses the data from the memory cache when accessing the data in the database.
[0058] The platform configuration information is the configuration information of the platform on which the application is deployed, and the application configuration information is the configuration information of the application.
[0059] The configuration information of the platform on which the application is deployed and the configuration information of the application belong to the configuration data corresponding to the application, and are usually stored in a data table.
[0060] Specifically, the cache manager loads the platform configuration information and the application configuration information from the database into the memory cache according to the configuration data in the database table.
[0061] Therefore, the data in the memory cache is the platform configuration information and application configuration information in the database, so the cache can be hot-updated during application operation to achieve the purpose of updating the program execution logic, and the application can be kept running when the platform releases new applications, new transactions, or updates existing transactions.
[0062] The following is a detailed description of the process of loading the platform configuration information and application configuration information in the database into the memory cache.
[0063] In some possible implementations, the memory cache includes a core cache or a non-core cache. When at least one of the platform configuration information and the application configuration information fails to be loaded into the core cache, the startup process of the application is terminated. When at least one of the platform configuration information and the application configuration information fails to be loaded into the non-core cache, a prompt message is output. The prompt message is used to prompt the loading failure and continue to execute the startup process of the application.
[0064] In this embodiment, the cache manager consists of a two-level data structure. The first level stores the core cache, which may be the type of transaction resources and the corresponding data structure, and the second level stores the non-core cache, which may be the resource name and resource data.
[0065] Optionally, both levels of cache can use thread-safe data structures (such as Map) to ensure synchronization between cache reading and updating, thereby improving the security of data use.
[0066] In some possible implementations, the object of cache management is a custom model suitable for financial transaction development, as shown below. According to the model, multiple transaction resources can be customized, and the transaction resources can be combined and assembled into a transaction.
[0067] Table 1 Model resource definition
[0068] Resource Category use BO3 message resources SCT and SCB import interface BTC Batch Trading Resources Batch transaction resources CHA Channel Resources Channel resources CHK Check Resource Reconciliation Resources COM component resources Component resources ERR Error Code Resources Error code mapping ETR External Trading Resources External Trading Resources EUM Enumeration Resources Enumerating Resources FIL file resources Operation File FLW Flowchart Resources Flowchart resources to implement business logic writing FUN function resources Domain Value Configuration Extension NOD node resources Single node call PKG message resources Message resources PRP Property Resources Property Resources RWC message extraction resources Packet Extraction Resources TAB table structure resources Table structure resources TFD table field resources Table field resources TRN Trading Resources Trading Resources
[0069] Among them, BO3 represents a transaction message specification description; BTC represents batch transaction; CHA represents channel; CHK represents check; COM represents component; ERR represents error code; ETR represents external transaction; EUM represents enumeration; FIL represents file fill; FLW represents flow; FUN represents function; NOD represents node; PKG represents package; PRP represents properties; RWC represents a message filtering strategy; TAB represents table; TFD represents table field; TRN represents transaction.
[0070] The cache loading corresponding to the transaction cache supports multiple methods, including sequential loading and dependent loading. Among them, sequential loading refers to loading the transaction cache in sequence, and dependent loading means that during the loading process, the loading of the transaction cache in the first order needs to be based on the loading of the transaction cache in the last order, so the transaction cache in the last order is loaded first to complete the loading. For example, the loading order of the sequential transaction cache is: first load transaction cache A, then load transaction cache B, then load transaction cache C, and finally load transaction cache D. For the loading of transaction cache resource B, transaction cache D needs to be loaded in advance. Therefore, the loading order according to dependent loading is: first load transaction cache A, then load transaction cache D, then load transaction cache B, and finally load transaction cache C.
[0071] Normally, when the loading of transaction cache B requires the loading of transaction cache D as a prerequisite, the loading is stopped and the loading of transaction cache cannot continue. Dependent loading can solve this problem, allowing the transaction cache to continue and ensuring the stability of transaction cache loading.
[0072] In some possible implementations, the cache manager loads the platform configuration information and the application configuration information from the database into the memory cache according to the configuration data in the database table. When the configuration data in the database table is updated, the memory cache is refreshed according to the updated configuration data.
[0073] Among them, the cache manager can refresh the memory cache by timed refresh or by externally triggering refresh through a specified transmission control protocol (TCP) message. Timed refresh refers to refreshing at a fixed time point or a fixed time interval. TCP message externally triggered refresh refers to externally triggering refresh based on the received message, thereby ensuring hot update of the cache during transaction operation and ensuring cache consistency.
[0074] Optionally, the cache manager may check the specified cache by sending a TCP message to the application runtime platform to check whether the cache update is successful.
[0075] In some possible implementations, the cache manager can implement full refresh (init) and incremental refresh (refresh), which can be implemented by providing an interface (such as the ICache interface). The ICache interface can also support other cache types, and users can develop new cache types according to different needs.
[0076] Incremental refresh loads new content into the cache, and full refresh loads all cache into the cache area. The refresh method is triggered by a timer or actively called from an external program. It determines whether an update is needed based on the last modification time of each configuration data, and refreshes the returned list (List <cachechange>) contains the status of each changed data, such as added, modified or deleted. These two refresh methods can control the scope of data update, make the content of cache refresh controllable, ensure the efficiency of cache refresh, and improve the security of cache data.
[0077] Optionally, the cache manager records the cache type and effective timestamp, the initial value of the effective timestamp is the effective time in the database, and the corresponding timestamp is updated when the subsequent refresh is successful. This refresh method only requires one thread to perform the cache refresh task.
[0078] Specifically, the cache manager scans the cache configuration table at regular intervals, and compares the effective time of a certain type of cache in the configuration table with the recorded time in the cache manager in turn. The initial value and comparison value of the effective time are both derived from the configuration database and do not depend on the application server time. If a refresh is required, a refresh operation is performed. If the refresh is successful, the cache effective time recorded in the cache manager is updated. If the refresh is unsuccessful, the recorded time in the cache manager is not modified, and an error log is recorded. Optionally, monitoring data can be sent at the same time, and then other types of cache refreshes are continued without affecting the overall cache refresh.
[0079] In order to implement refresh based on effective time, the cache manager needs to establish a correspondence between cache type and effective time, cache implementation class instance, and cache data, where the effective time is only used to refresh the configuration table (such as LADA_BC_CACH_CFG configuration table).
[0080] Optionally, the table structure of the LADA_BC_CACH_CFG configuration table is as follows:
[0081] Table 2 Configuration table structure
[0082]
[0083]
[0084] When the current time is greater than or equal to the pre-configured effective time, the cache implementation class of the cache type is called to refresh. Among them, the refresh mode still supports full refresh, incremental refresh and immediate refresh.
[0085] In some possible implementations, the method also includes the cache manager persisting the data in the memory cache according to the database table. By persisting the data in the memory cache, the reusability of the program code can be improved. Even if the database is replaced, only the configuration file needs to be changed without reprogramming the program code, which saves costs and improves efficiency. In addition, the cache data persistence is based on the database data to ensure the consistency of the cache data after a single node crashes and restarts. For example, in the event of an abnormal situation such as a server crash, the cache data can also be restored without loss, ensuring the security of the system.
[0086] In the above, the cache manager loads the configuration information of the platform where the application is deployed and the configuration information of the application in the database into the memory cache according to the application startup notification, so that the application can access the data in the database from the memory cache. As a result, the application can access the data in the database from the memory cache without having to access the disk. The application system converts the original database data access to the application system memory cache data access, avoiding frequent disk access and improving system performance.
[0087] Furthermore, the cache manager also divides the cache into a two-level data storage structure including a core cache and a non-core cache, wherein the core cache is used to store the types of transaction resources and the corresponding data structures, and the non-core cache is used to store resource names and resource data. Data is accessed through the two-level data storage structure, thereby improving access efficiency.
[0088] At the same time, the method also provides an incremental refresh method to load the newly added content into the cache, which can ensure the hot update of the cache during the transaction and ensure the consistency of the cache.
[0089] Finally, this application can also persist cached data through the cache manager. The data persistence is based on the database data to ensure the consistency of cached data after a single node crashes and restarts. For example, in the event of an abnormal situation such as a server crash, the cached data can be restored losslessly to ensure the security of the system.
[0090] Corresponding to the above method embodiment, the present application also provides a data management device, which is applied to a cache manager, see Figure 2 As shown, the device 200 includes: a communication module 202 and a loading module 204 .
[0091] The communication module 202 is used to receive an application startup notification, where the application startup notification is used to notify the application of a startup request;
[0092] A loading module 204, used to load the platform configuration information and the application configuration information from the database into the memory cache, so that the application accesses the data from the memory cache when accessing the data in the database;
[0093] The platform configuration information is the configuration information of the platform on which the application is deployed, and the application configuration information is the configuration information of the application.
[0094] In some possible implementations, the memory cache includes a core cache or an uncore cache.
[0095] In some possible implementations, the loading module 204 is further used to:
[0096] When at least one of the platform configuration information and the application configuration information fails to be loaded into the core cache, the startup process of the application is terminated; or,
[0097] When at least one of the platform configuration information and the application configuration information fails to be loaded into the non-core cache, a prompt message is output, where the prompt message is used to prompt the loading failure and continue to execute the startup process of the application.
[0098] In some possible implementations, the loading module 204 is specifically used to:
[0099] According to the configuration data in the database table, the platform configuration information and application configuration information are loaded from the database into the memory cache.
[0100] In some possible implementations, the apparatus 200 further includes:
[0101] The refresh module is used to refresh the memory cache according to the updated configuration data when the configuration data in the database table is updated.
[0102] In some possible implementations, the apparatus 200 further includes:
[0103] The persistence module is used to persist the data in the memory cache according to the database table.
[0104] The present application provides a device for implementing a data management method. The device includes a processor and a memory. The processor and the memory communicate with each other. The processor is used to execute instructions stored in the memory so that the device executes the data management method.
[0105] The present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the computer-readable storage medium is executed on a device, the device executes the above-mentioned data management method.
[0106] The present application provides a computer program product containing instructions, which, when executed on a device, enables the device to perform the above-mentioned data management method.
[0107] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
[0108] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a training device, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0109] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0110] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a training device, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, training device, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a training device, a data center, etc. that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.< / cachechange>
Claims
1. A method of data management, It is characterized in that Applied to a cache manager, the method comprises: Receiving an application startup notification, wherein the application startup notification is used to notify an application to request startup; Loading platform configuration information and application configuration information from a database into a memory cache, so that when the application accesses data in the database, the application accesses the data from the memory cache, wherein the memory cache includes a core cache or a non-core cache, wherein the core cache is used to store the type of transaction resources and the corresponding data structure, and the cache loading method of the transaction resources includes dependent loading; and the non-core cache is used to store resource names and resource data; The platform configuration information is the configuration information of the platform on which the application is deployed, and the application configuration information is the configuration information of the application; The step of loading the platform configuration information and the application configuration information from the database into the memory cache includes: According to the configuration data in the database table, load the platform configuration information and application configuration information from the database into the memory cache; When the configuration data in the database table is updated, refreshing the memory cache according to the updated configuration data; Record the cache type and effective time, and establish the correspondence between the cache type and effective time, cache implementation class instance, and cache data; Configuration data in the database table is updated, including: When the current time is greater than or equal to the effective time, the cache implementation class instance corresponding to the cache type is called based on the corresponding relationship to refresh the configuration data in the database table.
2. The method according to claim 1, It is characterized in that The method further comprises: When at least one of the platform configuration information and the application configuration information fails to be loaded into the core cache, terminating the startup process of the application; or, When at least one of the platform configuration information and the application configuration information fails to be loaded into the non-core cache, a prompt message is output, where the prompt message is used to prompt the loading failure and continue to execute the startup process of the application.
3. The method according to claim 1, It is characterized in that The method further comprises: The data in the memory cache is persisted according to the database table.
4. A data management device, It is characterized in that Applied to a cache manager, the device comprises: A communication module, used to receive an application startup notification, where the application startup notification is used to notify an application to request startup; A loading module, used to load platform configuration information and application configuration information from a database into a memory cache, so that when the application accesses data in the database, the application accesses the data from the memory cache, the memory cache includes a core cache or a non-core cache, the core cache is used to store the type of transaction resources and the corresponding data structure, and the cache loading method of the transaction resources includes dependent loading; the non-core cache is used to store resource names and resource data; The platform configuration information is the configuration information of the platform on which the application is deployed, and the application configuration information is the configuration information of the application; The loading module is specifically used to: load platform configuration information and application configuration information from the database into the memory cache according to the configuration data in the database table; The device also includes a refresh module: The refresh module is used to refresh the memory cache according to the updated configuration data when the configuration data in the database table is updated; Record the cache type and effective time, and establish the correspondence between the cache type and effective time, cache implementation class instance, and cache data; Configuration data in the database table is updated, including: When the current time is greater than or equal to the effective time, the cache implementation class instance corresponding to the cache type is called based on the corresponding relationship to refresh the configuration data in the database table.
5. A device, It is characterized in that The device comprises a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the device performs the method according to any one of claims 1 to 3.
6. A computer-readable storage medium, It is characterized in that The method comprises instructions for instructing a device to execute the method according to any one of claims 1 to 3.
7. A computer program product, It is characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 3.
