An intelligent cache management method and system based on user needs
Through intelligent cache management methods, the cache strategy is dynamically adjusted based on user behavior and field sensitivity, which solves the static configuration problem of cache management in enterprise-level online forms, achieves efficient utilization of cache resources and secure protection of highly sensitive data, and improves system response efficiency and data security.
Patent Information
- Application Number
- CN202510695042.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2045-05-28
AI Technical Summary
In existing technologies for enterprise-level online forms, cache management strategies cannot be dynamically and adaptively adjusted based on user interaction behavior and sensitive information, resulting in static cache duration and capacity configuration. This makes it impossible to effectively deal with cache breakdown, avalanche, and insufficient storage space in high-concurrency environments, and lacks security protection for highly sensitive data.
Through an intelligent cache management method based on user needs, combined with multi-dimensional information such as user residence time, input complexity and field sensitivity, the cache duration and capacity are dynamically adjusted. By adopting concurrency detection, interaction complexity analysis and sensitivity assessment mechanisms, efficient utilization of cache resources and priority protection of key data are achieved, and an isolation mechanism for highly sensitive data is established.
It achieves efficient utilization of cache resources, improves the security and compliance of data processing, optimizes cache efficiency, ensures the security and fast access of highly sensitive data, and adapts to the dynamic adjustment needs of different business scenarios.
Smart Images

Figure CN120216410B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an intelligent cache management method and system based on user needs. Background Art
[0002] In the construction of enterprise-level online forms, in order to improve user experience and response speed, the front-end form caching function has gradually become a mainstream solution. It is used to temporarily save the filled content when the user has not submitted the data, to avoid the loss of filled data due to misoperation or network interruption. For custom form engine scenarios, the form definition data is rarely updated and the number of queries is frequent, so the form structure and configuration are usually stored in the memory in the form of streamlined fields to reduce the overhead of external cache requests. However, in a high-concurrency environment, the static cache lifetime and fixed cache capacity can easily lead to problems such as cache breakdown, avalanche or insufficient storage space, which seriously affect stability. In addition, in a distributed deployment, synchronous updating of the cache has also become a major challenge. If you rely on an independent cache server, you need to carefully design a publish-subscribe or consistency strategy to increase the complexity.
[0003] In enterprise scenarios, forms like employee onboarding and purchase approvals often contain numerous fields and sensitive information, necessitating more refined and secure control over the number and duration of cache entries. Furthermore, the frequency of call requests for different fields varies significantly. Frequently accessed key fields should be cached longer to reduce backend query pressure, while infrequently accessed data should be cached for shorter periods to conserve resources.
[0004] A Chinese patent document with publication number CN118612301A discloses a content acceleration method and system based on edge caching. The invention performs semantic analysis on received user requests to obtain a content demand prediction list; performs cache decision processing on the content demand prediction list to obtain an edge node cache strategy and an edge node set; distributes content to the edge node set through the edge node cache strategy to obtain cache content metadata; performs routing processing on user requests to obtain a request routing table; performs content delivery on the request routing table based on the cache content metadata to obtain a content transmission report; optimizes the edge node cache strategy based on the content transmission report to obtain a target node strategy; at the same time, the edge node cache strategy of the invention relies on multi-level node status and static rules, with high operation and maintenance costs, cumbersome configuration process, lack of high-sensitive data processing strategy, edge nodes only rely on static routing and load balancing algorithms, without content transmission report feedback, difficult to optimize node strategies in real time, and insufficient ability to cope with network jitter and burst traffic. Summary of the Invention
[0005] To this end, the present invention provides an intelligent cache management method and system based on user needs to overcome the problem in the prior art that there is a lack of screening and protection measures that combine user interaction behavior and sensitive information, making it difficult to achieve dynamic adaptive adjustment of cache duration and capacity while ensuring data security.
[0006] To achieve the above objectives, the present invention provides, on the one hand, an intelligent cache management method based on user needs, comprising:
[0007] Perform concurrency detection based on the number of users currently filling out online forms, and determine the cache storage mode in the current concurrent environment based on the detection results;
[0008] In compact mode, the corresponding cache space category is determined based on the actual residence time category;
[0009] Under the first cache space category, performing interaction complexity analysis on the input information parameter based on the interaction complexity analysis standard to obtain an interaction complexity analysis result;
[0010] When the interaction complexity analysis result is the first interaction complexity, the buffer is determined to be in a deep saturation state, and a sensitivity assessment is performed on the input information content to obtain the sensitivity level category corresponding to each field;
[0011] When the sensitivity level category is a first-level sensitive field, the cache duration control mechanism is executed to determine the category to which the cache time belongs, and the cache duration is determined based on the category to which the cache time belongs;
[0012] Cache according to cache time;
[0013] When the number of input characters is greater than or equal to the character number threshold, or the number of characters is less than the character number threshold and the number of selections is greater than or equal to the standard number of selections, the interaction complexity analysis result is determined to be the first interaction complexity;
[0014] The cache duration control mechanism is to determine the priority level and confirm the custom label;
[0015] If it is a priority level category, obtain the custom cache duration corresponding to the custom priority level category and set the duration as the cache time.
[0016] Furthermore, the concurrent detection includes:
[0017] Get the number of users filling out online forms and compare it with the preset concurrent threshold, where:
[0018] When the number of users filling out the form online is greater than or equal to the preset concurrency threshold, the cache storage mode under the current concurrent environment is the compaction mode, the actual stay time and the actual stay time category are obtained, and the cache space corresponding to the actual stay time category is determined;
[0019] When the number of users filling out online forms is less than the preset concurrency threshold, the cache storage mode under the current concurrent environment is the normal mode.
[0020] Further, determining the cache space corresponding to the actual residence time category includes:
[0021] Obtain various dwell time parameters, including form dwell time, page interaction dwell time, and actual dwell time;
[0022] The actual dwell time is the difference between the form dwell time and the page interaction dwell time;
[0023] Compare the actual stay time with the actual stay standard interval, where
[0024] When the actual stay time is less than or equal to the minimum value of the actual stay standard interval, it is the second actual stay time category, and the corresponding cache space is the second cache space;
[0025] When the actual stay time is within the actual stay standard range, it is classified as the standard actual stay time category, and the corresponding cache space is the standard cache space;
[0026] When the actual stay time is greater than or equal to the maximum value of the actual stay standard interval, it is the first actual stay time category, and the corresponding cache space is the first cache space;
[0027] When the corresponding cache space is the first cache space, interaction complexity analysis of the input information content and the input information parameters is triggered.
[0028] Furthermore, the triggering of the interaction complexity analysis of the input information content and the input information parameters includes:
[0029] Get the input information content and corresponding input information parameters within the form stay time;
[0030] Wherein, the input information content includes text input content and image input content;
[0031] The text input content includes character text input content and option text input content; the input information parameters include the number of input characters and the number of selections;
[0032] Compare the number of input characters with the standard character count threshold, where
[0033] When the number of input characters is greater than or equal to the standard character number threshold, the interaction complexity analysis result is the first interaction complexity;
[0034] When the number of input characters is less than the standard character number threshold, the number of selections is compared with the standard selection number threshold, and the interaction complexity analysis result is determined based on the comparison result;
[0035] When the interaction complexity analysis result is the first interaction complexity, the corresponding state of the cache space is a deep saturation state, and the sensitivity evaluation of the input information content is performed based on the sensitivity evaluation method;
[0036] Among them, when the number of selections is greater than or equal to the standard selection number threshold, the interaction complexity analysis result is the first interaction complexity;
[0037] When the number of selections is less than the standard selection number threshold, the interaction complexity analysis result is the second interaction complexity.
[0038] Furthermore, the sensitivity evaluation of the input information content based on the sensitivity evaluation method includes:
[0039] Identify the image category and field semantics of each input information content, and divide each input information content into a plurality of fields;
[0040] Based on the sensitivity assessment method, the sensitivity score and sensitivity level category corresponding to each image category and field are obtained;
[0041] Compare the sensitivity score of each field with the medium sensitivity interval.
[0042] When the sensitivity score of a field is greater than or equal to the maximum value of the medium-sensitive range, the field is a first-level sensitive field;
[0043] When the sensitivity score of a field is in the medium sensitive range, the field is a secondary sensitive field;
[0044] When the sensitivity score of a field is less than or equal to the minimum value of the medium sensitivity range, the field is a level 3 sensitive field;
[0045] Among them, when the field category is a first-level sensitive field, the cache time category is determined based on the cache duration control mechanism;
[0046] When the field category is not a first-level sensitive field, the default cache duration is used as the cache duration;
[0047] Non-first-level sensitive fields are second-level sensitive fields or third-level sensitive fields.
[0048] Furthermore, the cache duration control mechanism determines that the cache duration belongs to a category including:
[0049] The cache duration control mechanism includes priority level determination and custom labeling confirmation for each first-level sensitive field. The priority level determination process is to obtain the corresponding initial priority level based on the call level corresponding to the number of calls and the priority conversion standard.
[0050] The process of custom annotation confirmation is to determine whether the custom annotation category is a priority level category;
[0051] If the custom annotation category is a priority level category, the custom cache duration corresponding to the custom priority level category is used as the cache time;
[0052] If the custom annotation category is not a priority level category, the custom cache duration corresponding to the initial priority level is used as the cache time.
[0053] Furthermore, the priority level judgment of each first-level sensitive field includes:
[0054] Determine whether a custom statement and a corresponding custom annotation exist, and determine whether the category of the custom annotation is a priority-level annotation category. If the custom annotation exists and the category of the custom annotation is a priority-level annotation category, determine whether to obtain the final annotation timestamp based on the number of annotations and the category to which the annotation number belongs, so as to determine the category to which the cache time belongs;
[0055] If the custom label exists and the category of the custom label is not a priority label category, or if the custom label does not exist, obtain the initial priority level label to determine the category to which the cache time belongs.
[0056] Furthermore, the category to which the cache time belongs is determined based on the custom statement and the corresponding custom annotation, including:
[0057] Determine whether there is a custom statement and a corresponding custom annotation to determine the category of the custom annotation;
[0058] If a custom annotation exists and the category of the custom annotation is a priority level annotation category, whether to obtain the final annotation timestamp is determined based on the number of annotations and the category to which the number of annotations belongs, and the category to which the cache time belongs is determined;
[0059] If the custom annotation exists and the category of the custom annotation is not a priority annotation category, or if the custom annotation does not exist, determine the category to which the cache time belongs;
[0060] Furthermore, judging whether to obtain the final annotation timestamp based on the number of annotations and the category to which the number of annotations belongs includes:
[0061] Obtaining the number of annotations and determining the category to which the number of annotations belongs, wherein the category includes a single annotation category and a multiple annotation category;
[0062] When the number of annotations belongs to the single annotation category, the initial priority level annotation is erased and the custom priority level annotation is updated to the priority level annotation;
[0063] When the number of annotations belongs to the category of multiple annotations, the custom priority level annotation corresponding to the final annotation timestamp is obtained, the initial priority level annotation is erased, and the custom priority level annotation is updated to the priority level annotation.
[0064] On the other hand, the present invention also provides an intelligent cache management system based on user needs, which is applied to the above-mentioned intelligent cache management method based on user needs, comprising:
[0065] The concurrency detection module is used to obtain the number of users filling out online forms and perform concurrency detection to determine the cache storage mode under the current concurrent environment;
[0066] a cache space determination module, connected to the concurrency detection module, for determining the cache space corresponding to the storage mode when acquiring the cache storage mode;
[0067] An interaction complexity analysis module, used to determine the interaction complexity results of different interaction information in the cache space;
[0068] A sensitivity assessment module, used to obtain the sensitivity level category of the interaction complexity result;
[0069] The cache duration control module executes the cache duration control mechanism on the first-level sensitive field when the sensitivity level category is a first-level sensitive field to determine the category to which the cache time belongs, determines the cache time based on the category to which the cache time belongs, and caches it.
[0070] Compared with the existing technology, the beneficial effect of the present invention lies in that it introduces an intelligent judgment mechanism based on user demand behavior, and evaluates and judges based on multi-dimensional information such as user residence time, input complexity, field sensitivity, etc., and combines factors such as field call frequency, field priority, and custom annotations to dynamically adjust the cache duration, thereby achieving efficient utilization of cache resources and priority protection of key data; at the same time, the present invention constructs an isolation mechanism for highly sensitive data, effectively preventing important information from being redundantly cached, and improving the security and compliance of data processing; it provides targeted solutions to the problems of static configuration and inability to dynamically adjust according to actual business scenarios in traditional cache management strategies.
[0071] Furthermore, this step divides the importance level of field access by combining the number of calls with the priority conversion standard, and allocates the initial cache time accordingly, thereby achieving refined management of first-level sensitive fields; at the same time, it supports custom statements and annotations to enhance the system's adaptability to custom requirements, while ensuring fast access to key data and optimizing cache efficiency.
[0072] In particular, this step introduces a classification mechanism that combines custom labels with field sensitivity levels to flexibly determine cache time categories and achieve differentiated cache management for data of different importance levels; prioritizes high-frequency access or highly sensitive fields to ensure system response efficiency and data security; and dynamically adjusts the cache strategy based on the number of calls and the level comparison table to improve the accuracy of overall resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] Figure 1 This is a flow chart of an intelligent cache management method based on user needs according to an embodiment of the present invention;
[0074] Figure 2 A logic decision diagram for determining the cache space corresponding to the actual residence time category according to an embodiment of the present invention;
[0075] Figure 3 This is a logic decision diagram for performing sensitivity evaluation on input information content based on the sensitivity evaluation method according to an embodiment of the present invention;
[0076] Figure 4 This is a connection diagram of an intelligent cache management system based on user needs in an embodiment of the present invention. DETAILED DESCRIPTION
[0077] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are merely used to explain the present invention and are not intended to limit the present invention.
[0078] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.
[0079] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside", and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. This is only for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.
[0080] Furthermore, it should be noted that, in the description of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; and internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0081] See also Figure 1 As shown, it is a flow chart of an intelligent cache management method based on user needs according to an embodiment of the present invention. The present invention provides an intelligent cache management method based on user needs, including:
[0082] Step S1, performing a concurrency test based on the number of users currently filling out forms online, and determining a cache storage mode under the current concurrency environment based on the test results;
[0083] Step S2: In compact mode, the corresponding cache space category is determined according to the actual residence time category;
[0084] Under the first cache space category, performing interaction complexity analysis on the input information parameter based on the interaction complexity analysis standard to obtain an interaction complexity analysis result;
[0085] Step S3: When the interaction complexity analysis result is the first interaction complexity, it is determined that the buffer is in a deep saturation state, and a sensitivity assessment is performed on the input information content to obtain the sensitivity level category corresponding to each field;
[0086] Step S4: When the sensitivity level category is a first-level sensitive field, the cache duration control mechanism is executed to determine the category to which the cache time belongs, and the cache duration is determined based on the category to which the cache time belongs;
[0087] Step S5, caching according to the caching time;
[0088] When the number of input characters is greater than or equal to the character number threshold, or the number of characters is less than the character number threshold and the number of selections is greater than or equal to the standard number of selections, the interaction complexity analysis result is determined to be the first interaction complexity;
[0089] The cache duration control mechanism is to determine the priority level and confirm the custom label;
[0090] If it is a priority level category, obtain the custom cache duration corresponding to the custom priority level category and set the duration as the cache time;
[0091] By introducing an intelligent judgment mechanism based on user demand behavior, and evaluating and judging based on multi-dimensional information such as user stay time, input complexity, field sensitivity, and combining factors such as field call frequency, field priority, and custom annotations, the cache duration is dynamically adjusted to achieve efficient utilization of cache resources and priority protection of key data; at the same time, the present invention constructs an isolation mechanism for highly sensitive data, effectively preventing important information from being redundantly cached, and improving the security and compliance of data processing; it provides targeted solutions to the problems of static configuration and inability to dynamically adjust according to actual business scenarios in traditional cache management strategies.
[0092] Specifically, the concurrent detection includes:
[0093] Get the number of users filling out online forms and compare it with the preset concurrent threshold, where:
[0094] When the number of users filling out the form online is greater than or equal to the preset concurrency threshold, the cache storage mode under the current concurrent environment is the compaction mode, the actual stay time and the actual stay time category are obtained, and the cache space corresponding to the actual stay time category is determined;
[0095] When the number of users filling out online forms is less than the preset concurrency threshold, the cache storage mode under the current concurrent environment is normal mode;
[0096] In this embodiment, the preset concurrency threshold is 2000;
[0097] Among them, when the number of users filling out the online form is greater than or equal to 2,000, the system will be in compact mode, and the corresponding cache space category will be determined based on the actual stay time category. The cache space categories include standard cache space, first cache space, and second cache space.
[0098] When the number of users filling out online forms is less than 2,000, the system will use the normal mode and uniformly allocate standard cache space.
[0099] This step uses concurrency detection and dynamic switching between compact mode and normal mode to reasonably compress cache allocation when the number of users surges. At the same time, cache space is allocated based on the actual length of user stay to improve data access efficiency for core users. When concurrency pressure is low, a unified standard cache is used to simplify management and ensure cache hit rate, thereby balancing method performance and resource utilization in different concurrency environments.
[0100] See Figure 2 As shown, it is a logical decision diagram for determining the cache space corresponding to the actual residence time category according to an embodiment of the present invention;
[0101] Specifically, determining the cache space corresponding to the actual residence time category includes:
[0102] Obtain various dwell time parameters, including form dwell time, page interaction dwell time, and actual dwell time;
[0103] The actual dwell time is the difference between the form dwell time and the page interaction dwell time;
[0104] Compare the actual stay time with the actual stay standard interval, where
[0105] When the actual stay time is less than or equal to the minimum value of the actual stay standard interval, it is the second actual stay time category, and the corresponding cache space is the second cache space;
[0106] When the actual stay time is within the actual stay standard range, it is classified as the standard actual stay time category, and the corresponding cache space is the standard cache space;
[0107] When the actual stay time is greater than or equal to the maximum value of the actual stay standard interval, it is the first actual stay time category, and the corresponding cache space is the first cache space;
[0108] When the corresponding cache space is the first cache space, the interaction complexity analysis of the input information content and the input information parameters is triggered;
[0109] In this embodiment, the form dwell time is the total time from when the user opens the form page to when the user submits the form, and is used to preliminarily assess whether the user has been performing form operations for a long time;
[0110] Page interaction retention time is the total time that the user does not move the mouse, click, or input keyboard input during the form's stay time.
[0111] The actual dwell time standard interval is the difference between the form dwell time and the page interaction dwell time, which is used to calculate the real and effective dwell time;
[0112] The actual stay interval includes the actual stay first interval, the actual stay standard interval and the actual stay second interval;
[0113] The first cache space size is 256KB, the standard cache space size is 128KB, and the second cache space size is 64KB;
[0114] When the actual stay time is greater than or equal to 180 seconds, it belongs to the first actual stay interval, corresponding to the first cache space of 256KB;
[0115] When the actual stay time is between 60 and 180 seconds, it falls within the standard stay range and corresponds to a standard cache space of 128KB.
[0116] When the actual stay time is less than 60 seconds, it belongs to the second actual stay interval, corresponding to the second cache space of 64KB;
[0117] This step achieves dynamic hierarchical allocation of cache space by accurately dividing the actual user stay time and combining it with standard interval settings, so that cache resources can be optimized in a targeted manner based on the activity of user behavior; allocating larger cache space to highly active users and further triggering interaction complexity analysis help identify potential key users or complex input behaviors, thereby improving method response speed and user experience.
[0118] Specifically, the triggering of the interaction complexity analysis of the input information content and the input information parameters includes:
[0119] Get the input information content and corresponding input information parameters within the form stay time;
[0120] Wherein, the input information content includes text input content and image input content;
[0121] The text input content includes character text input content and option text input content; the input information parameters include the number of input characters and the number of selections;
[0122] Compare the number of input characters with the standard character count threshold, where
[0123] When the number of input characters is greater than or equal to the standard character number threshold, the interaction complexity analysis result is the first interaction complexity;
[0124] When the number of input characters is less than the standard character number threshold, the number of selections is compared with the standard selection number threshold, and the interaction complexity analysis result is determined based on the comparison result;
[0125] When the interaction complexity analysis result is the first interaction complexity, the corresponding state of the cache space is a deep saturation state, and the sensitivity evaluation of the input information content is performed based on the sensitivity evaluation method;
[0126] Among them, when the number of selections is greater than or equal to the standard selection number threshold, the interaction complexity analysis result is the first interaction complexity;
[0127] When the number of selections is less than the standard selection number threshold, the interaction complexity analysis result is the second interaction complexity;
[0128] In this embodiment, the standard character count threshold is used to determine whether the characters entered by the user in the text box meet the lower limit of the complex interaction standard, which is 50 characters;
[0129] The standard selection threshold is used to determine the frequency of drop-down box, single-select, and multiple-select selection operations, and is 6 times;
[0130] When the interaction complexity reaches the first level, the user exhibits super-standard interaction behavior in text input or option selection, and the current cache space is deeply saturated, so a sensitivity assessment is performed;
[0131] At the second level of interaction complexity, the user's behavioral complexity during the form interaction process does not reach the preset interaction intensity threshold. The current cache space is in a critical saturation state, and the data is cached using the default cache processing flow. No further sensitivity assessment is required.
[0132] Among them, the default cache processing flow caches data, that is, all data under the second interaction complexity, with the default cache time as the cache duration, and the default cache time is 30 seconds.
[0133] This step effectively identifies complex interactive behaviors by quantitatively analyzing the number of characters entered and the number of selections made by users in the form, and accordingly determines whether the cache space has reached a deep saturation state. When the interaction intensity is high, the sensitivity assessment mechanism is automatically triggered to ensure the secure processing of highly complex and highly sensitive data. When the interaction is simple, the processing flow is simplified to accurately achieve the dual goals of on-demand resource allocation and sensitive information protection.
[0134] See Figure 3 As shown, it is a logic decision diagram for performing sensitivity evaluation on input information content based on the sensitivity evaluation method according to an embodiment of the present invention;
[0135] Specifically, the sensitivity evaluation of the input information content based on the sensitivity evaluation method includes:
[0136] Identify the image category and field semantics of each input information content, and divide each input information content into a plurality of fields;
[0137] Based on the sensitivity assessment method, the sensitivity score and sensitivity level category corresponding to each image category and field are obtained;
[0138] Compare the sensitivity score of each field with the medium sensitivity interval.
[0139] When the sensitivity score of a field is greater than or equal to the maximum value of the medium-sensitive range, the field is a first-level sensitive field;
[0140] When the sensitivity score of a field is in the medium sensitive range, the field is a secondary sensitive field;
[0141] When the sensitivity score of a field is less than or equal to the minimum value of the medium sensitivity range, the field is a level 3 sensitive field;
[0142] Among them, when the field category is a first-level sensitive field, the cache time category is determined based on the cache duration control mechanism;
[0143] When the field category is not a first-level sensitive field, the default cache duration is used as the cache duration;
[0144] Non-level 1 sensitive fields are level 2 sensitive fields or level 3 sensitive fields;
[0145] In this embodiment, the medium sensitive interval is an intermediate score range of the field sensitivity score value, which is used to classify the sensitivity level categories;
[0146] The steps for field cutting are as follows:
[0147] Split key-value pairs based on field labels, recognize Chinese and English colons, and use spaces and line breaks as boundaries;
[0148] Auxiliary segmentation and recognition are performed based on content type, length, or format characteristics. Long words or paragraphs are treated as multi-line text. If commas or colons appear, the text is further split into multiple fields.
[0149] Pre-defined fields are mapped to sensitivity scores and sensitivity level categories;
[0150] Match the fields with the sensitivity score table to obtain the sensitivity scores and sensitivity level categories corresponding to each image category and field of sensitive data;
[0151] Determine all priority levels in the table , i starts from 1, the larger i is, the lower the priority;
[0152] Set lowest priority The cache time is =40 seconds, when i increases by 1, the cache time decreases by ΔT=10 seconds;
[0153] Any priority The cache time is:
[0154] If there are four priority levels in this embodiment, the initial cache times corresponding to different levels are: =70 seconds, = 60 seconds, =50 seconds, =40 seconds;
[0155] This step identifies image categories and field semantics, conducts sensitivity assessments on input information content, accurately identifies sensitivity levels based on preset intervals and comparison tables, and flexibly adjusts cache duration accordingly to effectively balance data security and access efficiency. A cache duration control mechanism is particularly employed for first-level sensitive fields to improve the security and controllability of highly sensitive data processing, enhancing the overall intelligence and compliance capabilities of the method.
[0156] Specifically, the cache duration control mechanism determines that the cache duration belongs to the following categories:
[0157] The cache duration control mechanism includes priority level judgment and custom labeling confirmation for each first-level sensitive field;
[0158] The process of determining the priority level is to obtain the corresponding initial priority level based on the call level corresponding to the number of calls and the priority conversion standard;
[0159] The process of custom annotation confirmation is to determine whether the custom annotation category is a priority level category;
[0160] If the custom annotation category is a priority level category, the custom cache duration corresponding to the custom priority level category is used as the cache time;
[0161] If the custom annotation category is not a priority level category, the custom cache duration corresponding to the initial priority level is used as the cache time.
[0162] Specifically, the priority level judgment of each first-level sensitive field includes:
[0163] Determine whether a custom statement and a corresponding custom annotation exist, and determine whether the category of the custom annotation is a priority-level annotation category. If the custom annotation exists and the category of the custom annotation is a priority-level annotation category, determine whether to obtain the final annotation timestamp based on the number of annotations and the category to which the annotation number belongs, so as to determine the category to which the cache time belongs;
[0164] If the custom annotation exists and the category of the custom annotation is not a priority annotation category, or if the custom annotation does not exist, obtain the initial priority level annotation to determine the category to which the cache time belongs;
[0165] In this embodiment, a comparison table and a call that maps the number of calls to the call level are predefined, and the comparison table and the rule table are used as the basis for determining the corresponding conversion step;
[0166] This step divides the importance of field access by combining the number of calls with priority conversion criteria, and allocates initial cache time accordingly, achieving refined management of first-level sensitive fields. It also supports custom statements and annotations to enhance the method's adaptability to custom requirements, ensuring rapid access to key data while optimizing cache efficiency.
[0167] Specifically, the categories of cache time determined based on custom statements and corresponding custom annotations include:
[0168] Determine whether there is a custom statement and a corresponding custom annotation to determine the category of the custom annotation;
[0169] If a custom annotation exists and the category of the custom annotation is a priority level annotation category, whether to obtain the final annotation timestamp is determined based on the number of annotations and the category to which the number of annotations belongs, and the category to which the cache time belongs is determined;
[0170] If the custom label exists and the category of the custom label is not a priority label category, or if the custom label does not exist, determine the category to which the cache time belongs.
[0171] Specifically, judging whether to obtain the final annotation timestamp based on the number of annotations and the category to which the annotations belong includes:
[0172] Obtaining the number of annotations and determining the category to which the number of annotations belongs, wherein the category includes a single annotation category and a multiple annotation category;
[0173] When the number of annotations belongs to the single annotation category, the initial priority level annotation is erased and the custom priority level annotation is updated to the priority level annotation;
[0174] When the number of annotations belongs to the category of multiple annotations, the custom priority level annotation corresponding to the final annotation timestamp is obtained, the initial priority level annotation is erased, and the custom priority level annotation is updated to the priority level annotation.
[0175] Specifically, the categories to which the cache time belongs include:
[0176] When a custom label exists and is a priority level label category, the corresponding custom cache time category is used as the cache time;
[0177] When the field category is a first-level sensitive field and is not a custom priority level marked category, the corresponding initial cache time category is the custom cache duration corresponding to the initial priority level mark;
[0178] In this embodiment, the cache time is determined by referring to a comparison table mapping call counts to call levels and a comparison table mapping call counts to call levels;
[0179] This step introduces a classification mechanism that combines custom labels with field sensitivity levels to flexibly determine cache time categories and implement differentiated cache management for data of different importance levels. It prioritizes frequently accessed or highly sensitive fields to ensure response efficiency and data security. It also dynamically adjusts the cache strategy based on the number of calls and the level comparison table to improve the accuracy of overall resource allocation.
[0180] See Figure 4 As shown, it is a connection diagram of an intelligent cache management system based on user needs according to an embodiment of the present invention;
[0181] Specifically, the present invention also provides a system for an intelligent cache management method based on user needs, comprising:
[0182] Concurrency detection module, used to obtain the number of users filling out online forms to determine the cache storage mode under the current concurrent environment;
[0183] a cache space determination module, connected to the concurrency detection module, for determining the cache space corresponding to the storage mode when acquiring the cache storage mode;
[0184] An interaction complexity analysis module, used to determine the interaction complexity results of different interaction information in the cache space;
[0185] A sensitivity assessment module, used to obtain the sensitivity level category of the interaction complexity result;
[0186] The cache duration control module is executed on the first-level sensitive field when the sensitivity level category is a first-level sensitive field, executes the cache duration control mechanism to judge the category to which the cache time belongs, determines the cache time based on the category to which the cache time belongs, and caches it.
[0187] Thus far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of the present invention is obviously not limited to these specific embodiments. Without departing from the principles of the present invention, those skilled in the art may make equivalent changes or substitutions to the relevant technical features, and the technical solutions after such changes or substitutions will fall within the scope of protection of the present invention.
[0188] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that the present invention is susceptible to various modifications and variations. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be within the scope of protection of the present invention.
Claims
1. An intelligent cache management method based on user needs, characterized in that: include: Perform concurrency detection based on the number of users currently filling out online forms, and determine the cache storage mode in the current concurrent environment based on the detection results; In compact mode, the corresponding cache space category is determined based on the actual residence time category; Under the first cache space category, performing interaction complexity analysis on the input information parameter based on the interaction complexity analysis standard to obtain an interaction complexity analysis result; When the interaction complexity analysis result is the first interaction complexity, the buffer is determined to be in a deep saturation state, and a sensitivity assessment is performed on the input information content to obtain the sensitivity level category corresponding to each field; When the sensitivity level category is a first-level sensitive field, the cache duration control mechanism is executed to determine the category to which the cache time belongs, and the cache duration is determined based on the category to which the cache time belongs; Cache according to cache time; When the number of input characters is greater than or equal to the character number threshold, or the number of input characters is less than the character number threshold and the number of selections is greater than or equal to the standard number of selections, the interaction complexity analysis result is determined to be the first interaction complexity; The cache duration control mechanism is to determine the priority level and confirm the custom label; If the judgment result is a custom priority level category, the custom cache duration corresponding to the custom priority level category is obtained, and the duration is set as the cache time.
2. The intelligent cache management method based on user needs according to claim 1, characterized in that: The concurrency detection includes: Get the number of users filling out online forms and compare it with the preset concurrent threshold, where: When the number of users filling out the form online is greater than or equal to the preset concurrency threshold, the cache storage mode under the current concurrent environment is the compaction mode, the actual stay time and the actual stay time category are obtained, and the cache space corresponding to the actual stay time category is determined; When the number of users filling out online forms is less than the preset concurrency threshold, the cache storage mode under the current concurrent environment is the normal mode.
3. The intelligent cache management method based on user needs according to claim 2, characterized in that: Determining the cache space corresponding to the actual residence time category includes: Obtain various dwell time parameters, including form dwell time, page interaction dwell time, and actual dwell time; The actual dwell time is the difference between the form dwell time and the page interaction dwell time; Compare the actual stay time with the actual stay standard interval, where When the actual stay time is less than or equal to the minimum value of the actual stay standard interval, it is the second actual stay time category, and the corresponding cache space is the second cache space; When the actual stay time is within the actual stay standard range, it is classified as the standard actual stay time category, and the corresponding cache space is the standard cache space; When the actual stay time is greater than or equal to the maximum value of the actual stay standard interval, it is the first actual stay time category, and the corresponding cache space is the first cache space; When the corresponding cache space is the first cache space, interaction complexity analysis of the input information content and the input information parameters is triggered.
4. The intelligent cache management method based on user needs according to claim 3, characterized in that: The triggering of the interaction complexity analysis of the input information content and the input information parameters includes: Get the input information content and corresponding input information parameters within the form stay time; Wherein, the input information content includes text input content and image input content; The text input content includes character text input content and option text input content; the input information parameters include the number of input characters and the number of selections; Compare the number of input characters with the standard character count threshold, where When the number of input characters is greater than or equal to the standard character number threshold, the interaction complexity analysis result is the first interaction complexity; When the number of input characters is less than the standard character number threshold, the number of selections is compared with the standard selection number threshold, and the interaction complexity analysis result is determined based on the comparison result; When the interaction complexity analysis result is the first interaction complexity, the corresponding state of the cache space is a deep saturation state, and the sensitivity evaluation of the input information content is performed based on the sensitivity evaluation method; Among them, when the number of selections is greater than or equal to the standard selection number threshold, the interaction complexity analysis result is the first interaction complexity; When the number of selections is less than the standard selection number threshold, the interaction complexity analysis result is the second interaction complexity.
5. The intelligent cache management method based on user needs according to claim 4 is characterized in that: The sensitivity evaluation of the input information content based on the sensitivity evaluation method includes: Identify the image category and field semantics of each input information content, and divide each input information content into a plurality of fields; Based on the sensitivity assessment method, the sensitivity score and sensitivity level category corresponding to each image category and field are obtained; Compare the sensitivity score of each field with the medium sensitivity interval. When the sensitivity score of a field is greater than or equal to the maximum value of the medium-sensitive range, the field is a first-level sensitive field; When the sensitivity score of a field is in the medium sensitive range, the field is a secondary sensitive field; When the sensitivity score of a field is less than or equal to the minimum value of the medium sensitivity range, the field is a level 3 sensitive field; Among them, when the field category is a first-level sensitive field, the cache time category is determined based on the cache duration control mechanism; When the field category is not a first-level sensitive field, the default cache duration is used as the cache duration; Non-first-level sensitive fields are second-level sensitive fields or third-level sensitive fields.
6. The intelligent cache management method based on user needs according to claim 5, characterized in that: The cache duration control mechanism determines the cache duration category, including: The cache duration control mechanism includes priority level judgment and custom labeling confirmation for each first-level sensitive field; The process of determining the priority level is to obtain the corresponding initial priority level based on the call level corresponding to the number of calls and the priority conversion standard; The process of confirming the custom annotation is to determine whether the custom annotation category is a priority level category; If the custom annotation category is a priority level category, the custom cache duration corresponding to the custom priority level category is used as the cache time; If the custom annotation category is not a priority level category, the custom cache duration corresponding to the initial priority level is used as the cache time.
7. The intelligent cache management method based on user needs according to claim 6, characterized in that: The priority level judgment for each first-level sensitive field includes: Obtaining the number of calls and determining the call level corresponding to the number of calls; Obtaining an initial priority level corresponding to each of the call levels based on a priority conversion standard, and obtaining a cache time corresponding to each initial priority level; Determines the category to which the cache time belongs based on the custom statement and the corresponding custom annotation.
8. The intelligent cache management method based on user needs according to claim 7, characterized in that: The categories of cache time determined based on custom statements and corresponding custom annotations include: Determine whether a custom statement and a corresponding custom annotation exist, and determine whether the category of the custom annotation is a priority-level annotation category. If the custom annotation exists and the category of the custom annotation is a priority-level annotation category, determine whether to obtain the final annotation timestamp based on the number of annotations and the category to which the annotation number belongs, so as to determine the category to which the cache time belongs; If the custom label exists and the category of the custom label is not a priority label category, or if the custom label does not exist, obtain the initial priority level label to determine the category to which the cache time belongs.
9. The intelligent cache management method based on user needs according to claim 8, characterized in that: Determining whether to obtain the final annotation timestamp based on the number of annotations and the category to which the annotations belong includes: Obtaining the number of annotations and determining the category to which the number of annotations belongs, wherein the category includes a single annotation category and a multiple annotation category; When the number of annotations belongs to the single annotation category, the initial priority level annotation is erased and the custom priority level annotation is updated to the priority level annotation; When the number of annotations belongs to the category of multiple annotations, the custom priority level annotation corresponding to the final annotation timestamp is obtained, the initial priority level annotation is erased, and the custom priority level annotation is updated to the priority level annotation.
10. An intelligent cache management system based on user needs, applied to the intelligent cache management method based on user needs according to any one of claims 1 to 9, characterized in that: include: The concurrency detection module is used to obtain the number of users filling out online forms and perform concurrency detection to determine the cache storage mode under the current concurrent environment; a cache space determination module, connected to the concurrency detection module, for determining the cache space corresponding to the storage mode when acquiring the cache storage mode; An interaction complexity analysis module, used to determine the interaction complexity results of different interaction information in the cache space; A sensitivity assessment module, used to obtain the sensitivity level category of the interaction complexity result; The cache duration control module executes the cache duration control mechanism on the first-level sensitive field when the sensitivity level category is a first-level sensitive field to determine the category to which the cache time belongs, determines the cache time based on the category to which the cache time belongs, and caches it.
Citation Information
Patent Citations
Content acceleration method and system based on edge cache
CN118612301A
Method for managing a prioritized cache
EP0391871A2
Dynamic caching system
US20170052976A1