Cache data processing method for analysis based on user operation habits
By analyzing the operation data of client users, a personalized cache policy is generated and dynamically adjusted, the problem that traditional cache policies cannot adapt to multi-user scenarios is solved, cache utilization and system performance are improved, and encryption is carried out during the data acquisition and policy output stages. Improved security.
Patent Information
- Application Number
- CN202411484818.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional caching strategies cannot be dynamically adjusted according to users' actual usage habits, resulting in low cache utilization and hit rate, and there may be problems such as insufficient cache capacity, cache penetration, cache breakdown and even cache avalanche.
By obtaining the operation data of client users, preprocessing and analysis, a personalized cache strategy is generated, and monitoring and updates are performed during execution, the cache strategy is dynamically adjusted, and the cache capacity, penetration and breakdown thresholds are optimized.
Improve cache utilization and hit rate, optimize system performance, so that the same device can update cache policies in time when used by different users, improve overall system performance, and encrypt it in the data acquisition and policy output stages, improving security .
Smart Images

Figure CN119003600A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cache data processing, and in particular to a cache data processing method based on analysis of user operation habits. Background Art
[0002] With the rapid development of information technology, electronic data processing equipment and computers are increasingly used in all walks of life. As an important means to improve data access speed, cache performance directly affects the overall response speed of the system. However, traditional cache strategies are often based on fixed rules or simple statistical information, and cannot be dynamically adjusted according to the actual usage habits of users, resulting in low cache utilization and hit rate. For example, in a company, the same work computer may be used by multiple employees at different time periods, and different employees have different usage habits. Therefore, a single cache strategy can be applied to a single employee's work computer, but when multiple employees use the same computer, the cache strategy will not be able to adapt. If you still insist on using a single cache strategy, there may be problems such as insufficient cache capacity, cache penetration, cache breakdown, and even cache avalanche. Summary of the invention
[0003] The purpose of the present invention is to provide a cache data processing method based on analysis of user operation habits to solve the problems raised in the above-mentioned background technology.
[0004] To achieve the above object, the present invention provides the following technical solution: a cache data processing method based on user operation habit analysis, comprising the following steps: Obtain the operation data of the client target user; Preprocess the target user's operation data, analyze it, and generate a cache strategy corresponding to the target user; Send the cache policy, monitor it when it is executed, continuously obtain feedback, and continuously obtain the user's latest operation data. Then, based on the feedback content and the latest operation data, update the cache policy and send an optional cache replacement policy.
[0005] Preferably, the step of obtaining the operation data of the target user of the client includes: Select at least one target user; According to the selected target user, obtain the operation data thereof, wherein the operation data includes system logs, application logs and user behavior tracking data; Encrypt the target user's operation data.
[0006] Preferably, the preprocessing of the target user's operation data includes: Decrypting the operation data of the target user; Preprocess the encrypted operation data.
[0007] Preferably, the analyzing and generating a cache strategy corresponding to the target user includes: Performing feature extraction on the preprocessed operation data of the target user to obtain user operation features; Implant a machine learning model and train it through user operation characteristics to generate a user operation habit model; Generate a cache strategy corresponding to the target user based on the user operation habit model; A cache simulation test is performed on the cache strategy. If the cache simulation exceeds the operating threshold, the cache strategy is optimized, otherwise the cache strategy is output.
[0008] Preferably, the user operation characteristics include access frequency characteristics, access time characteristics, access sequence characteristics, access path characteristics and user behavior pattern characteristics.
[0009] Preferably, the optimizing the cache strategy includes: Set a cache safety threshold, perform a cache simulation test on the cache strategy, and optimize the total cache amount if the cache safety threshold is exceeded during cache simulation; The cache safety thresholds include a cache capacity threshold, a cache penetration threshold, a cache breakdown threshold, and a cache avalanche threshold.
[0010] Preferably, the step of analyzing the target user and generating a cache strategy corresponding to the target user further includes: Optionally encrypt the cache policy.
[0011] Preferably, the sending of the cache strategy, monitoring during the execution of the cache strategy, continuously obtaining feedback, and continuously obtaining the latest operation data of the user, and then updating the cache strategy according to the feedback content and the latest operation data, and sending the optional cache replacement strategy, also includes: Check whether the cache policy is encrypted; If encrypted, the key is sent synchronously with the cache policy; Otherwise, the cache policy is sent directly.
[0012] Preferably, the sending of the cache strategy, monitoring during the execution of the cache strategy, continuously obtaining feedback, and continuously obtaining the latest operation data of the user, and then updating the cache strategy according to the feedback content and the latest operation data, and sending an optional cache replacement strategy, further includes: Selectively back up each cache policy.
[0013] The present invention also provides a cache data processing device for analyzing based on user operation habits, comprising: A data acquisition module is used to acquire the operation data of the target user of the client; A strategy generation module is used to pre-process the target user's operation data, analyze it, and generate a cache strategy corresponding to the target user; The strategy output and update module is used to send the cache strategy, monitor the cache strategy when it is executed, continuously obtain feedback, and continuously obtain the user's latest operation data, and then update the cache strategy based on the feedback content and the latest operation data, and send an optional cache replacement strategy.
[0014] Compared with the prior art, the present invention has the following beneficial effects: The present invention collects and analyzes the user's operating habits and generates a cache strategy for the user to use, which is more personalized. By dynamically adjusting the data storage strategy in the cache, the utilization rate and hit rate of the cache are improved, and the overall performance of the system is optimized. When the same device is used by different users, feedback can be obtained in time, the cache strategy is updated, and the updated cache strategy is output for the user to choose. At the same time, encryption can be performed in both the data acquisition stage and the strategy output stage, so that the user's operating data and cache strategy are kept confidential, thereby improving security. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A main flow chart of a cache data processing method based on analysis of user operation habits provided by an embodiment of the present invention; Figure 2 A structural block diagram of a cache data processing device for analyzing user operation habits provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0016] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0017] The method of the present invention can be applied to various electronic data processing devices and computer systems, including but not limited to personal computers, servers, mobile devices, etc. The user does not need to perform additional operations, and the system can automatically process cache data according to the user's operating habits.
[0018] See also Figure 1The present invention provides a cache data processing method based on the analysis of user operation habits, and the method is applied to the cache strategy optimization in a single-device multi-user scenario, comprising: Step 100: Obtain operation data of the target user of the client.
[0019] There is at least one target user, and the operation data of the target user corresponds to the number of targets.
[0020] It is understandable that the same computer may have different users. For example, a work computer may be used by multiple people in turn, and they may have different operating habits when using it. Therefore, when collecting the operating data of the target users, it will be collected according to different target users.
[0021] Specifically, the operation data includes system logs, application logs, and user behavior tracking data; System logs, including log data collected from the operating system, network stack, hardware driver, etc. These data record system-level activities such as file access, network requests, etc. Application logs, including logs collected from applications run by users (such as browsers, office software, games, etc.). These logs usually contain specific user operations, such as clicking links, entering text, saving files, etc.; User behavior tracking data, including tracking of user operation behaviors such as mouse movement, keyboard input, screen touch, etc. through software or services installed on the device (with user consent).
[0022] Optionally, the target user's operation data may also be uploaded in encrypted form.
[0023] Specifically, the encryption method includes symmetric encryption and SSL / TLS encryption; Symmetric encryption uses the same key to encrypt and decrypt data, including: Step 111, key generation: First, the communicating parties need to negotiate and share a key. This key can be pre-shared or dynamically generated through a key exchange protocol (such as the Diffie-Hellman protocol); Step 112, data encryption: the sender encrypts the data using the negotiated key to generate ciphertext; Step 113, data transmission: transmitting the encrypted ciphertext to the recipient through an insecure network; Step 114, data decryption: the receiver uses the same key to decrypt the received ciphertext and restore the original data.
[0024] The SSL / TLS encryption is a commonly used security protocol on the Internet. It combines the advantages of symmetric encryption and asymmetric encryption to provide functions such as data encryption, identity authentication and data integrity protection, including the handshake phase and the data transmission phase: The handshake phase includes: Step 121, the client sends a ClientHello message containing a random number to the server; Step 122, the server responds with a ServerHello message, including the server's random number and a server certificate (including a public key); Step 123, the client verifies the server's certificate and generates a pre-master secret, encrypts it with the server's public key and sends it to the server; Step 124, both parties use the pre-master key, their own random numbers and algorithm parameters to generate a session key (symmetric key); The data transmission phase includes: In step 125, both parties use the session key to symmetrically encrypt and decrypt the data to achieve secure data transmission.
[0025] Step 200: pre-process the target user's operation data, then analyze it, and generate a cache strategy corresponding to the target user.
[0026] Wherein, the step 200 includes: Step 210, decrypting the target user's operation data; Step 220: pre-processing the target user's operation data.
[0027] In step 220, the preprocessing operation performed on the target user's operation data includes: Remove duplicate data, invalid data (such as system error logs), and noise data (such as abnormal operations); Standardize timestamps; Format and standardize data to ensure that data from different sources can be processed uniformly.
[0028] Specifically, the step 200 further includes: Step 230, extracting features from the pre-processed operation data of the target user to obtain user operation features; Step 240, implanting a machine learning model and training it through user operation features to generate a user operation habit model; Step 250, generating a cache strategy corresponding to the target user according to the user operation habit model; Step 260, perform a cache simulation test on the cache strategy. If the cache simulation exceeds the operating threshold, the cache strategy is optimized, otherwise the cache strategy is output.
[0029] The user operation characteristics include access frequency characteristics, access time characteristics, access sequence characteristics, access path characteristics and user behavior pattern characteristics.
[0030] Understandably, frequency features are used to understand the number of times users visit each file, web page, application function, etc.; access time features are used to understand the time period and frequency distribution of users' access to specific resources; access sequence features are used to understand the order and pattern of users' access to resources; access path features are used to understand the path of users from one interface to another in the user interface; user behavior pattern features are used to understand users' regular behavior patterns, such as periodic tasks, repetitive tasks, etc. By acquiring the above operation features, we can understand the basic operation habits of users. For example, on March 6, App A was opened at 10:36, and users interacted in App A until 12:00. App A was closed, App B was opened at 12:01, and users interacted in App B until 13:29. On March 7, App A was opened at 10:30, and users interacted in App A until 12:01. App A was closed, App B was opened at 12:03, and users interacted in App B until 13:28. Then, interacting with App A from 10:30 to 12:00 and interacting with App B from 12:30 to 13:30 is a behavior pattern feature of the target user, and it is a repetitive behavior pattern feature. In the subsequent model training, the model can be trained and cached through the behavior pattern feature to make the model familiar with the feature, and the data of App B can be cached and preheated before 12:00.
[0031] Specifically, in step 240, the machine learning model uses a supervised learning algorithm, specifically a random forest algorithm in the supervised learning algorithm. Random forest is an integrated learning method that improves the accuracy and stability of prediction by building multiple decision trees and combining their prediction results. Random forest has a good effect in dealing with various problems such as classification and regression, and can effectively process high-dimensional data, and has good robustness to noise and outliers.
[0032] The specific steps to build a model using the random forest algorithm are as follows: Step 241, preparing pre-processed operation data; Step 242, selecting model parameters, including: The number of trees, the number of trees in random forest is an important parameter, and the optimal value is usually determined through cross-validation; Feature subset size: When building each tree, a subset of features is randomly selected from all features to build the tree. The size of this subset is also a parameter that needs to be adjusted. The depth of the tree. Although random forests usually do not need to limit the depth of the tree (because overfitting is controlled by the number of trees), in some cases, limiting the depth of the tree may help improve the performance of the model; Step 243, training a random forest model using the prepared operational data and the selected parameters; In the process of building each tree, a part of the features and a part of the samples are randomly selected for splitting to increase the diversity of the model.
[0033] Step 244, use cross validation or other evaluation methods to evaluate the performance of the model; check indicators such as confusion matrix, accuracy, recall, F1 score, etc.
[0034] Step 245, adjust the parameters of the model (such as the number of trees, feature subset size, etc.) according to the evaluation results, then retrain the model, and repeat this process until the model performance reaches a satisfactory level.
[0035] Step 246, deploying the trained model to the application scenario to predict the user's operating habits or behavior patterns.
[0036] It can be understood that the random forest algorithm is a powerful machine learning algorithm that is applicable to a variety of complex problems. Especially when processing user behavior data, it can effectively learn user operating habits from multiple dimensions and features.
[0037] Specifically, step 260 includes: Step 261, setting a cache safety threshold, performing a cache simulation test on the cache strategy, and executing step 242 if the cache safety threshold is exceeded during cache simulation, otherwise executing step 243; Step 262, dynamically optimize the total cache amount; Step 263, output cache strategy; Specifically, the cache safety threshold includes a cache capacity threshold, a cache penetration threshold, a cache breakdown threshold and a cache avalanche threshold.
[0038] Wherein, in step 262, if the cache simulation exceeds the cache safety threshold, the total cache amount is optimized, including: Step 2621: If the cache capacity threshold is exceeded, the cache size is dynamically adjusted or a data elimination strategy is used to ensure that the cache system does not suffer from performance degradation or overflow due to storing too much data; Specifically, according to the cache capacity threshold, the cache usage is monitored. When it approaches or exceeds the threshold, the cache space size is dynamically adjusted, and the data is compressed through the compression algorithm, or the cache elimination strategy (such as LRU, LFU, etc.) is used to ensure that when the cache capacity reaches the threshold, infrequently accessed or low-value data can be eliminated first; Step 2622, if the cache penetrates the threshold, cache empty objects, use Bloom filters, or set penetration threshold monitoring to prevent a large number of non-existent data requests from directly penetrating the cache layer and causing pressure on the backend database; Specifically, when a query to the database finds that data does not exist, an empty result or a specific placeholder is cached and a shorter expiration time is set; this can effectively reduce subsequent repeated queries for non-existent data; or a Bloom filter is added before the cache layer to pre-check all possible queries. If the Bloom filter determines that certain data does not exist, an empty result is directly returned to avoid accessing the cache and database; or the cache penetration is monitored. When the penetration rate exceeds the set threshold, the cache strategy is adjusted in time or the accuracy of the Bloom filter is increased; Step 2623: If the cache penetration threshold is exceeded, the hot data is set to never expire, the thread is locked and updated, or the cache is updated asynchronously to prevent a large number of requests from being directly hit on the database after a hot data cache expires under high concurrency; Specifically, for particularly important hot data, its cache can be set to never expire, or a longer expiration time can be used; or after the cache expires, a locking mechanism can be used to ensure that only one thread updates the cache, while other threads wait or directly read old data from the cache; or a daemon thread or task can be set in the background to update the cache asynchronously on a scheduled or on-demand basis to reduce the impact of cache expiration on the system.
[0039] Step 2624: If the cache avalanche threshold is exceeded, optimization is performed by uniformly setting expiration time, multi-level cache, and high-availability cache cluster technology, or by using service fuse and degradation technology to effectively prevent a large number of caches from being invalidated at the same time, causing a large number of requests to be directly hit on the database, causing the system to crash. Specifically, the expiration time can be set evenly to avoid excessive concentration of expiration times for a large number of caches. The expiration time can be set by a random number or time offset. Alternatively, a multi-level cache strategy can be used. When the first-level cache fails, the second-level cache or other backup cache can be accessed. Alternatively, cache cluster technology (such as Redis Cluster) can be used to ensure high availability of the cache service. Even if some nodes fail, the overall service will not be affected. When problems occur in the cache service, the fuse mechanism can be activated in time to temporarily stop access to the cache, and the degradation strategy can be activated to return to the preset default value or error information.
[0040] The step 200 further includes: Step 270: optionally encrypt the cache policy, wherein the encryption method is a custom key.
[0041] It can be understood that the output of the cache policy is optionally encrypted, and whether to encrypt can be selected through user feedback; if the user does not choose encryption, the cache policy is directly output, otherwise the cache policy is encrypted and then output to the user's client.
[0042] Specifically, the encryption method is the symmetric encryption algorithm AES-256. First, a secure random number generator is used to generate a sufficiently long key, and the key length should be 256 bits (i.e., 32 bytes); then the generated key is used to encrypt the cache policy; then the key is stored in a secure key management service, and the key is securely sent to the client through a secure channel (such as HTTPS), and then when the user subsequently receives the cache policy, the cache policy can be decrypted by the key to execute the cache policy.
[0043] Step 300, send the cache strategy, monitor the cache strategy when it is executed, continuously obtain feedback, and continuously obtain the user's latest operation data, then update the cache strategy based on the feedback content and the latest operation data, and send an optional cache replacement strategy.
[0044] Specifically, step 300 includes: Step 310, sending the cache policy and detecting whether the cache policy is encrypted, if yes, executing step 320, otherwise jumping to step 330; Step 320, sending the key; Step 330, waiting for the client to execute the cache strategy; Step 340, obtaining execution feedback when the client executes the cache strategy, and confirming whether there is abnormal feedback; if so, executing step 360, otherwise continue to execute step 350; Step 350, continuously obtaining the latest operation data of the user; Step 360: Upload the latest user operation data and / or abnormal feedback, and update the corresponding cache strategy in use through the user operation habit model to generate an optional cache replacement strategy; Step 370: Generate an optional cache replacement policy and send it to the client.
[0045] When step 370 is executed, each cache policy previously sent to the client is selectively backed up, especially the cache policy that is executed.
[0046] It should be noted that before the optional cache replacement policy is executed, the user can still choose whether to encrypt through feedback.
[0047] It is understandable that when the user executes the cache strategy on the client, the cache strategy may deviate from the actual application due to insufficient training data of the model or usage needs, resulting in new operation data with large differences, or causing the cache strategy to exceed the cache capacity threshold and other abnormal feedback. At this time, the cache status of the client can be monitored, and a receipt can be issued when an abnormality is found. Then, the cache strategy can be updated and an optional cache replacement strategy can be generated. The optional cache replacement strategy is an optional strategy. If the user's operation behavior deviates from the cache strategy, he can choose to update and replace. If the policy update is caused by accidental different operations, he can choose not to update and replace.
[0048] In this embodiment, by collecting the user's operating habits for analysis and generating a cache strategy for the user to use, it is more personalized, and by dynamically adjusting the data storage strategy in the cache, the cache utilization and hit rate are improved, and the overall performance of the system is optimized, so that the same device can obtain feedback in time when used by different users, update the cache strategy, and output the updated cache strategy for the user to choose. At the same time, encryption can be performed in both the data acquisition stage and the strategy output stage to keep the user's operating data and cache strategy confidential, thereby improving security.
[0049] Based on the above embodiments, Figure 2 As shown, the present invention further provides a cache data processing device 10 for analyzing based on user operation habits, which is used to support the cache data processing method for analyzing based on user operation habits of the above embodiment. The cache data processing device 10 for analyzing based on user operation habits includes: A data acquisition module 11 is used to acquire the operation data of the target user of the client; A strategy generation module 12 is used to pre-process the operation data of the target user, analyze it, and generate a cache strategy corresponding to the target user; The strategy output and update module 13 is used to send the cache strategy, monitor the cache strategy when it is executed, continuously obtain feedback, and continuously obtain the user's latest operation data, and then update the cache strategy based on the feedback content and the latest operation data, and send an optional cache replacement strategy.
[0050] Specifically, the data acquisition module 11 is further used to select at least one target user; obtain the operation data of the selected target user, wherein the operation data includes system logs, application logs and user behavior tracking data; and encrypt the operation data of the target user; The strategy generation module 12 is also used to decrypt the operation data of the target user; pre-process the encrypted operation data; extract features from the pre-processed operation data of the target user to obtain user operation features; implant a machine learning model and train it through user operation features to generate a user operation habit model; generate a cache strategy corresponding to the target user according to the user operation habit model; perform a cache simulation test on the cache strategy, and if the cache simulation exceeds the operating threshold, optimize the cache strategy, otherwise output the cache strategy; and perform optional encryption on the cache strategy; The strategy generation module 12 is also used to set a cache safety threshold, perform a cache simulation test on the cache strategy, and optimize the total cache amount if the cache safety threshold is exceeded during cache simulation; the cache safety threshold includes a cache capacity threshold, a cache penetration threshold, a cache breakdown threshold, and a cache avalanche threshold; The policy output and update module 13 is also used to detect whether the cache policy is encrypted. If it is encrypted, the key is sent synchronously with the cache policy. Otherwise, the cache policy is sent directly; each executed cache policy is selectively backed up.
[0051] In this embodiment, by collecting the user's operating habits for analysis and generating a cache strategy for the user to use, it is more personalized, and by dynamically adjusting the data storage strategy in the cache, the cache utilization and hit rate are improved, and the overall performance of the system is optimized, so that the same device can obtain feedback in time when used by different users, update the cache strategy, and output the updated cache strategy for the user to choose. At the same time, encryption can be performed in both the data acquisition stage and the strategy output stage to keep the user's operating data and cache strategy confidential, thereby improving security.
[0052] Furthermore, the cache data processing device for analyzing based on user operation habits may run the cache data processing method for analyzing based on user operation habits. For specific implementation, please refer to the method embodiment, which will not be described in detail here.
[0053] On the basis of the above embodiments, the present invention further provides a cache data processing device for analyzing based on user operation habits, the cache data processing device for analyzing based on user operation habits comprises: A processor and a memory, wherein the processor is communicatively connected with the memory; In this embodiment, the memory may be implemented in any appropriate manner, for example, the memory may be a read-only memory, a mechanical hard disk, a solid-state hard disk, or a USB flash drive, etc.; the memory is used to store at least one executable instruction executed by the processor; In this embodiment, the processor can be implemented in any appropriate manner. For example, the processor can take the form of a microprocessor or a processor and a computer-readable medium storing computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc.; the processor is used to execute the executable instructions to implement the cache data processing method based on analysis of user operating habits as described above.
[0054] Based on the above embodiments, the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the cache data processing method based on analysis of user operation habits as described above is implemented.
[0055] Those of ordinary skill in the art will appreciate that the modules and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0056] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, equipment and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0057] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or units can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or equipment, which can be electrical, mechanical or other forms.
[0058] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0059] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0060] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program instructions, such as a USB flash drive, a mobile hard disk, a read-only storage server, a random access storage server, a magnetic disk or an optical disk.
[0061] In addition, it should be noted that the combination of the various technical features in this case is not limited to the combination described in the claims of this case or the combination described in the specific embodiments. All technical features described in this case can be freely combined or combined in any way unless there is a contradiction between them.
[0062] It should be noted that the above examples are only specific embodiments of the present invention, and the present invention is obviously not limited to the above examples, and there are many similar variations. All variations directly derived or associated from the contents disclosed by the technicians in this field should fall within the protection scope of the present invention.
[0063] The above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A cache data processing method based on analysis of user operation habits, characterized in that: The following steps are involved: Obtain the operation data of the client target user; Preprocess the target user's operation data, analyze it, and generate a cache strategy corresponding to the target user; Send the cache policy, monitor it when it is executed, continuously obtain feedback, and continuously obtain the user's latest operation data. Then, based on the feedback content and the latest operation data, update the cache policy and send an optional cache replacement policy.
2. The cache data processing method based on user operation habit analysis according to claim 1 is characterized in that: The step of obtaining the operation data of the target user of the client includes: Select at least one target user; According to the selected target user, obtain the operation data thereof, wherein the operation data includes system logs, application logs and user behavior tracking data; Encrypt the target user's operation data.
3. The cache data processing method based on user operation habit analysis according to claim 1, characterized in that: The preprocessing of the target user's operation data includes: Decrypting the operation data of the target user; Preprocess the encrypted operation data.
4. The cache data processing method based on user operation habit analysis according to claim 1, characterized in that: The analysis is performed to generate a cache strategy corresponding to the target user, including: Performing feature extraction on the preprocessed operation data of the target user to obtain user operation features; Implant a machine learning model and train it through user operation characteristics to generate a user operation habit model; Generate a cache strategy corresponding to the target user based on the user operation habit model; A cache simulation test is performed on the cache strategy. If the cache simulation exceeds the operating threshold, the cache strategy is optimized, otherwise the cache strategy is output.
5. The cache data processing method based on user operation habit analysis according to claim 4 is characterized in that: The user operation characteristics include access frequency characteristics, access time characteristics, access sequence characteristics, access path characteristics and user behavior pattern characteristics.
6. The cache data processing method based on user operation habit analysis according to claim 4 is characterized in that: The optimization of the cache strategy includes: Set a cache safety threshold, perform a cache simulation test on the cache strategy, and optimize the total cache amount if the cache safety threshold is exceeded during cache simulation; The cache safety thresholds include a cache capacity threshold, a cache penetration threshold, a cache breakdown threshold, and a cache avalanche threshold.
7. The cache data processing method based on user operation habit analysis according to claim 6, characterized in that: The method further includes analyzing the target user and generating a cache strategy corresponding to the target user, and then: Optionally encrypt the cache policy.
8. The method for processing cache data based on analysis of user operation habits according to claim 7, characterized in that: The sending of the cache strategy, monitoring during the execution of the cache strategy, continuously obtaining feedback, and continuously obtaining the latest operation data of the user, and then updating the cache strategy according to the feedback content and the latest operation data, and sending an optional cache replacement strategy, also includes: Check whether the cache policy is encrypted; If encrypted, the key is sent synchronously with the cache policy; Otherwise, the cache policy is sent directly.
9. The cache data processing method based on user operation habit analysis according to claim 1, characterized in that: The cache strategy is sent, and the cache strategy is monitored during execution, feedback is continuously obtained, and the latest operation data of the user is continuously obtained. Then, the cache strategy is updated according to the feedback content and the latest operation data, and an optional cache replacement strategy is sent, and then the following is also included: Selectively back up each cache policy that is executed.
10. A cache data processing device for analyzing user operation habits, characterized in that: include: A data acquisition module is used to acquire the operation data of the target user of the client; A strategy generation module is used to pre-process the target user's operation data, analyze it, and generate a cache strategy corresponding to the target user; The strategy output and update module is used to send the cache strategy, monitor the cache strategy when it is executed, continuously obtain feedback, and continuously obtain the user's latest operation data, and then update the cache strategy based on the feedback content and the latest operation data, and send an optional cache replacement strategy.
Citation Information
Patent Citations
Stream cache mechanism used for network play of 720-degree panoramic video
CN105933343A
User behavior data processing method and device, computer equipment and storage medium
CN112017007A
Request response method and device
CN114531489A
Data caching method and device, storage medium and electronic equipment
CN117785501A
Image processing method and related equipment
CN118820625A
Cited By
Cache data processing method for intelligently analyzing operation habits of investment users
CN119293086A
