A cloud-edge collaborative caching method, system and medium based on perceptible redundancy

By working collaboratively between the cloud and edge nodes, and using novel index values ​​to evaluate and clean redundant data, the problem of inefficient redundant cache management in cloud data storage is solved, and cloud caching capabilities and data transmission efficiency are improved.

CN117573357BActive Publication Date: 2024-08-27BEIJING BLANSTAR TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311590260.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2024-08-27
Estimated Expiration
2043-11-27

AI Technical Summary

Technical Problem

Existing technologies in cloud data storage suffer from low cache efficiency due to long data transmission delays and storage pressure on edge nodes. Especially when the cloud data storage center is far away from users, it is difficult to effectively manage redundant cached data.

Method used

By calculating the novel index value of the cached data based on a preset time period, combined with the powerful computing capabilities of the cloud and edge nodes, regularly cleaning redundant data, classifying and evaluating the cached data's feature values ​​such as popularity, creation index, number of views and update time, Determine and delete redundant data to improve cloud caching capabilities.

Benefits of technology

It effectively improves the cache capacity of the cloud, reduces redundant data occupation, optimizes data storage and transmission efficiency, and reduces the storage pressure on edge nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117573357B
    Figure CN117573357B
Patent Text Reader

Abstract

The present invention discloses a cloud-edge collaborative caching method, system and medium based on perceptible redundancy, wherein the method includes: obtaining cache data information based on a preset first time period; extracting features of the cache data information and corresponding feature values; determining a novelty index value of the corresponding cache data according to the features of the cache data information and the corresponding feature values; judging whether the novelty index value is greater than a preset first threshold, and if so, retaining the corresponding cache data; if not, the corresponding cache data is redundant data; and deleting the redundant data. The present invention calculates the novelty index value of the cache data at intervals of a preset first time period through cloud-edge collaboration, and regularly cleans up redundant cache data through the powerful computing power of the cloud, effectively combining the cloud and edge nodes, and effectively improving the caching capacity of the cloud.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cache technology, and more specifically, to a cloud-edge collaborative caching method, system and medium based on perceptible redundancy. Background Art

[0002] With the development of mobile electronic products, the Internet, and other technologies, the increase in the number of various smart terminal devices and entertainment platforms has led to an exponential growth in the amount of data generated, which has brought tremendous pressure on data transmission and data storage; in particular, when the cloud data storage center is far away from the user, the data transmission delay is relatively long. If the corresponding cloud data is stored in a nearby edge node, it will bring pressure to the storage of the nearby edge node.

[0003] Therefore, the prior art has defects and needs to be improved urgently. Summary of the invention

[0004] In view of the above problems, the purpose of the present invention is to provide a cloud-edge collaborative caching method, system and medium based on perceptual redundancy, which regularly cleans up redundant cache data through the powerful computing power of the cloud, effectively combines the cloud and edge nodes, and effectively improves the caching capacity of the cloud.

[0005] A first aspect of the present invention provides a cloud-edge collaborative caching method based on perceptible redundancy, comprising:

[0006] Based on a preset first time period, obtaining cache data information;

[0007] Extract the features of cached data information and corresponding feature values;

[0008] Determine a novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value;

[0009] Determine whether the novelty index value is greater than a preset first threshold value, if so, retain the corresponding cache data; if not, the corresponding cache data is redundant data;

[0010] Deleting the redundant data;

[0011] The characteristics of the cache data information include the popularity of the cache data type, the creation index of the cache data, the number of views and the update time; the corresponding characteristic values ​​are the popularity value of the cache data type, the creation index value of the cache data, the number of views and the update time value.

[0012] In this solution, the step of determining the novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value specifically includes:

[0013] According to the characteristics of the cached data information, a preset characteristic value conversion coefficient table is searched to obtain the characteristic value conversion coefficient of the corresponding characteristic;

[0014] Multiply the eigenvalue by the eigenvalue conversion coefficient of the corresponding feature to obtain the novelty index value of the corresponding feature;

[0015] The novelty index values ​​of all features are accumulated to obtain the novelty index value of the corresponding cached data.

[0016] In this solution, the step of obtaining the heat value of the cache data type specifically includes:

[0017] Classify cache data according to preset rules to obtain different types of cache data;

[0018] Based on a preset second time period, obtaining the number of viewers and the number of views of different types of cached data;

[0019] The number of people who browsed the cached data is multiplied by a preset first coefficient to obtain a first heat value; the number of views of the corresponding cached data of the same type is multiplied by a preset second coefficient to obtain a second heat value;

[0020] The first heat value and the second heat value of the cache data of the same type are accumulated to obtain the heat value of the corresponding cache data type.

[0021] In this solution, the step of obtaining the number of views specifically includes:

[0022] Get the time value when the user accesses the cached data;

[0023] Determine whether the time value of the user accessing the cached data is greater than a preset first time threshold, if so, record the number of views of the corresponding cached data and increase it by one; if not, the corresponding access is invalid;

[0024] Based on a preset third time period, obtaining a browsing count value of the same user accessing the same cache data;

[0025] When the browsing count value of the same cached data accessed by the same user is greater than the preset first number threshold, the browsing count value of the cached data is not increased by the corresponding user access.

[0026] In this solution, the step of obtaining the creation index value of the cache data specifically includes:

[0027] Get the keywords and keyword quantity in the cache data;

[0028] Compare and analyze the cached data with other cached data of the corresponding type to obtain similar values;

[0029] Multiply the number of keywords in the corresponding cache data by a preset third coefficient to obtain a first creation index value;

[0030] Multiply the similarity value by a preset fourth coefficient to obtain a second creativity index value;

[0031] The first creation index value and the second creation index value are accumulated to obtain the creation index value of the corresponding cache data.

[0032] In this solution, the step of comparing and analyzing the cached data with other cached data of the corresponding type to obtain similarity values ​​specifically includes:

[0033] Get the keyword of other cached data of the corresponding type and set it as the second keyword;

[0034] Compare and analyze the keyword in the cached data with the second keyword to obtain the number of identical keywords and the total number of all keywords;

[0035] The number of the same keywords is divided by the total number of all keywords to obtain a similarity value between the cached data and other cached data of the corresponding type.

[0036] A second aspect of the present invention provides a cloud-edge collaborative caching system based on perceptual redundancy, including a memory and a processor, wherein the memory stores a cloud-edge collaborative caching method program based on perceptual redundancy, and when the cloud-edge collaborative caching method program based on perceptual redundancy is executed by the processor, the following steps are implemented:

[0037] Based on a preset first time period, obtaining cache data information;

[0038] Extract the features of cached data information and corresponding feature values;

[0039] Determine a novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value;

[0040] Determine whether the novelty index value is greater than a preset first threshold value, if so, retain the corresponding cache data; if not, the corresponding cache data is redundant data;

[0041] Deleting the redundant data;

[0042] The characteristics of the cache data information include the popularity of the cache data type, the creation index of the cache data, the number of views and the update time; the corresponding characteristic values ​​are the popularity value of the cache data type, the creation index value of the cache data, the number of views and the update time value.

[0043] In this solution, the step of determining the novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value specifically includes:

[0044] According to the characteristics of the cached data information, a preset characteristic value conversion coefficient table is searched to obtain the characteristic value conversion coefficient of the corresponding characteristic;

[0045] Multiply the eigenvalue by the eigenvalue conversion coefficient of the corresponding feature to obtain the novelty index value of the corresponding feature;

[0046] The novelty index values ​​of all features are accumulated to obtain the novelty index value of the corresponding cached data.

[0047] In this solution, the step of obtaining the heat value of the cache data type specifically includes:

[0048] Classify cache data according to preset rules to obtain different types of cache data;

[0049] Based on a preset second time period, obtaining the number of viewers and the number of views of different types of cached data;

[0050] The number of people who browsed the cached data is multiplied by a preset first coefficient to obtain a first heat value; the number of views of the corresponding cached data of the same type is multiplied by a preset second coefficient to obtain a second heat value;

[0051] The first heat value and the second heat value of the cache data of the same type are accumulated to obtain the heat value of the corresponding cache data type.

[0052] In this solution, the step of obtaining the number of views specifically includes:

[0053] Get the time value when the user accesses the cached data;

[0054] Determine whether the time value of the user accessing the cached data is greater than a preset first time threshold, if so, record the number of views of the corresponding cached data and increase it by one; if not, the corresponding access is invalid;

[0055] Based on a preset third time period, obtaining a browsing count value of the same user accessing the same cache data;

[0056] When the browsing count value of the same cached data accessed by the same user is greater than the preset first number threshold, the browsing count value of the cached data is not increased by the corresponding user access.

[0057] In this solution, the step of obtaining the creation index value of the cache data specifically includes:

[0058] Get the keywords and keyword quantity in the cache data;

[0059] Compare and analyze the cached data with other cached data of the corresponding type to obtain similar values;

[0060] Multiply the number of keywords in the corresponding cache data by a preset third coefficient to obtain a first creation index value;

[0061] Multiply the similarity value by a preset fourth coefficient to obtain a second creativity index value;

[0062] The first creation index value and the second creation index value are accumulated to obtain the creation index value of the corresponding cache data.

[0063] In this solution, the step of comparing and analyzing the cached data with other cached data of the corresponding type to obtain similarity values ​​specifically includes:

[0064] Get the keyword of other cached data of the corresponding type and set it as the second keyword;

[0065] Compare and analyze the keyword in the cached data with the second keyword to obtain the number of identical keywords and the total number of all keywords;

[0066] The number of the same keywords is divided by the total number of all keywords to obtain a similarity value between the cached data and other cached data of the corresponding type.

[0067] A third aspect of the present invention provides a computer-readable storage medium, which stores a cloud-edge collaborative caching method program based on perceptual redundancy. When the cloud-edge collaborative caching method program based on perceptual redundancy is executed by a processor, the steps of a cloud-edge collaborative caching method based on perceptual redundancy as described in any one of the above items are implemented.

[0068] The present invention discloses a cloud-edge collaborative caching method, system and medium based on perceptible redundancy. A novel exponential value calculation is performed on cached data at every preset first time period through cloud-edge collaboration. The redundant cached data is regularly cleaned up through the powerful computing power of the cloud. The cloud and edge nodes are effectively combined, thereby effectively improving the caching capacity of the cloud. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 A flow chart of a cloud-edge collaborative caching method based on perceptible redundancy of the present invention is shown;

[0070] Figure 2 A block diagram of a cloud-edge collaborative caching system based on perceptual redundancy of the present invention is shown. DETAILED DESCRIPTION

[0071] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0072] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0073] Figure 1 A flow chart of a cloud-edge collaborative caching method based on perceptible redundancy of the present invention is shown.

[0074] like Figure 1 As shown, the present invention discloses a cloud-edge collaborative caching method based on perceptible redundancy, comprising:

[0075] S101, obtaining cache data information based on a preset first time period;

[0076] S102, extracting features of cached data information and corresponding feature values;

[0077] S103, determining a novelty index value corresponding to the cached data according to the characteristics of the cached data information and the corresponding characteristic value;

[0078] S104, determining whether the novelty index value is greater than a preset first threshold value, if so, retaining the corresponding cache data; if not, the corresponding cache data is redundant data;

[0079] S105: Delete the redundant data.

[0080] According to an embodiment of the present invention, for example, if the preset first time period is 24 hours, the novelty index value of the stored cached data is calculated every 24 hours. If the preset first threshold is set to 30, when the novelty index value of the cached data is greater than 30, the corresponding cached data continues to be retained; when the novelty index value of the cached data is less than or equal to 30, it means that the corresponding cached data is redundant data and does not have the function of continuing to cache, and the corresponding cached data is deleted; the characteristics of the cached data information include the heat of the cached data type, the creation index of the cached data, the number of views and the update time; the corresponding characteristic values ​​are the heat value of the cached data type, the creation index value of the cached data, the number of views and the update time value; the update time value is equal to the current time minus the generation time or change completion time of the corresponding cached data, for example, the current time is 9:00 on November 2, and the generation time of the corresponding cached data is 8:00 on November 1. After the corresponding cached data is generated, the user terminal changes it at the current 9:00, then the update time value of the corresponding cached data is equal to the current time minus the change time, which is 9:00 on November 2 minus 9:00 on November 1, which is equal to 24 hours.

[0081] According to an embodiment of the present invention, the step of determining the novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value specifically includes:

[0082] According to the characteristics of the cached data information, a preset characteristic value conversion coefficient table is searched to obtain the characteristic value conversion coefficient of the corresponding characteristic;

[0083] Multiply the eigenvalue by the eigenvalue conversion coefficient of the corresponding feature to obtain the novelty index value of the corresponding feature;

[0084] The novelty index values ​​of all features are accumulated to obtain the novelty index value of the corresponding cached data.

[0085] It should be noted that the preset eigenvalue conversion coefficient table stores eigenvalue conversion coefficients corresponding to various features, and different features correspond to different eigenvalue conversion coefficients. For example, the eigenvalue conversion coefficient corresponding to the number of views is set to 0.2.

[0086] According to an embodiment of the present invention, the step of obtaining the heat value of the cache data type specifically includes:

[0087] Classify cache data according to preset rules to obtain different types of cache data;

[0088] Based on a preset second time period, obtaining the number of viewers and the number of views of different types of cached data;

[0089] The number of people who browsed the cached data is multiplied by a preset first coefficient to obtain a first heat value; the number of views of the corresponding cached data of the same type is multiplied by a preset second coefficient to obtain a second heat value;

[0090] The first heat value and the second heat value of the cache data of the same type are accumulated to obtain the heat value of the corresponding cache data type.

[0091] It should be noted that the types are divided according to the content in the cached data. For example, if the corresponding content is mainly historical figures, the corresponding cached data is divided into the historical figure category; if the corresponding content is mainly games, the corresponding cached data is divided into the game category. When the cached data content can be divided into multiple categories, the type with the highest number of viewers is set as the type of the corresponding cached data.

[0092] According to an embodiment of the present invention, the step of obtaining the number of views specifically includes:

[0093] Get the time value when the user accesses the cached data;

[0094] Determine whether the time value of the user accessing the cached data is greater than a preset first time threshold, if so, record the number of views of the corresponding cached data and increase it by one; if not, the corresponding access is invalid;

[0095] Based on a preset third time period, obtaining a browsing count value of the same user accessing the same cache data;

[0096] When the browsing count value of the same cached data accessed by the same user is greater than the preset first number threshold, the browsing count value of the cached data is not increased by the corresponding user access.

[0097] It should be noted that in order to increase the effective number of views and prevent a single user from maliciously swiping the number of views of cached data, the number of views is limited by time and by a single user within a certain time period. For example, if the preset first time threshold is set to 3 seconds, then when a user accesses the cached data for no more than 3 seconds, it is deemed an invalid access, and the number of views of the corresponding cached data does not increase. For example, if the preset third time period is set to 10 minutes, then the maximum number of views of the same user accessing the same cached data is set to the preset first number threshold. For example, if the preset first number threshold is set to 5 times, when the same user accesses the cached data for more than 5 times within 10 minutes, it is calculated as 5 times, and the number of views of the corresponding cached data does not increase for the part exceeding 5 times.

[0098] According to an embodiment of the present invention, the step of obtaining the creation index value of the cache data specifically includes:

[0099] Get the keywords and keyword quantity in the cache data;

[0100] Compare and analyze the cached data with other cached data of the corresponding type to obtain similar values;

[0101] Multiply the number of keywords in the corresponding cache data by a preset third coefficient to obtain a first creation index value;

[0102] Multiply the similarity value by a preset fourth coefficient to obtain a second creativity index value;

[0103] The first creation index value and the second creation index value are accumulated to obtain the creation index value of the corresponding cache data.

[0104] It should be noted that, the more keywords there are in the cache data, the richer the content of the corresponding cache data is, and the more the number of identical keywords in the cache data and other cache data of the corresponding type is, the higher the corresponding similarity value is.

[0105] According to an embodiment of the present invention, the step of comparing and analyzing the cached data with other cached data of the corresponding type to obtain a similarity value specifically includes:

[0106] Get the keyword of other cached data of the corresponding type and set it as the second keyword;

[0107] Compare and analyze the keyword in the cached data with the second keyword to obtain the number of identical keywords and the total number of all keywords;

[0108] The number of the same keywords is divided by the total number of all keywords to obtain a similarity value between the cached data and other cached data of the corresponding type.

[0109] It should be noted that the keyword in the cache data is compared with the second keyword to find the same keyword, and the number of corresponding same keywords is recorded. The total number of all keywords is the total number of keywords in the cache data and the second keyword, and the same keyword is recorded as one keyword.

[0110] According to an embodiment of the present invention, it also includes:

[0111] Obtain the proportion of cache data accessed by the client and the proportion of memory occupied by the corresponding cache data;

[0112] Subtract the proportion of memory occupied by the corresponding cache data from the proportion of the cache data accessed by the client to obtain a first proportion difference;

[0113] Multiplying the first proportional difference by a preset fifth coefficient to obtain a revised value of a preset first threshold;

[0114] The revised value corresponding to the preset first threshold is subtracted from the preset first threshold to obtain the revised preset first threshold.

[0115] It should be noted that the proportion of the user end accessing the cached data is equal to the number of cached data accessed by the user end divided by the total number of data accessed by the user end. The data includes cached data and non-cached data. The non-cached data is stored in the data storage center and needs to be transmitted to the user end through the data storage center when the user accesses it. The cached data is stored in a cache data repository near the user, such as the cloud, edge node, etc. The proportion of the cached data occupying the memory is equal to the memory value of the corresponding cached data divided by the total memory value of the corresponding cached data repository. The larger the proportion of the user end accessing the cached data, the more accurate the cached data of the cached data repository near the corresponding user, and the less redundant data that needs to be adjusted. Therefore, the preset first threshold can be lowered to increase the memory of the cached data.

[0116] According to an embodiment of the present invention, it also includes:

[0117] Determine whether the proportion of the cache data occupying the memory is greater than a preset proportion threshold, and if so, generate information on adding a cache data storage repository;

[0118] Add a cache data repository according to the information about adding a cache data repository to increase the cache data memory.

[0119] It should be noted that there is a maximum preset ratio threshold for the cache data stored in each cache data repository, for example, set to 70%. When the ratio of cache data in a cache data repository to memory is greater than 70%, it is necessary to add a cache data repository to the current location to alleviate cache pressure.

[0120] Figure 2 A block diagram of a cloud-edge collaborative caching system based on perceptual redundancy of the present invention is shown.

[0121] like Figure 2 As shown, the second aspect of the present invention provides a cloud-edge collaborative caching system 2 based on perceptual redundancy, including a memory 21 and a processor 22, wherein the memory stores a cloud-edge collaborative caching method program based on perceptual redundancy, and the cloud-edge collaborative caching method program based on perceptual redundancy is executed by the processor to implement the following steps:

[0122] Based on a preset first time period, obtaining cache data information;

[0123] Extract the features of cached data information and corresponding feature values;

[0124] Determine a novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value;

[0125] Determine whether the novelty index value is greater than a preset first threshold value, if so, retain the corresponding cache data; if not, the corresponding cache data is redundant data;

[0126] The redundant data is deleted.

[0127] According to an embodiment of the present invention, for example, if the preset first time period is 24 hours, the novelty index value of the stored cached data is calculated every 24 hours. If the preset first threshold is set to 30, when the novelty index value of the cached data is greater than 30, the corresponding cached data continues to be retained; when the novelty index value of the cached data is less than or equal to 30, it means that the corresponding cached data is redundant data and does not have the function of continuing to cache, and the corresponding cached data is deleted; the characteristics of the cached data information include the heat of the cached data type, the creation index of the cached data, the number of views and the update time; the corresponding characteristic values ​​are the heat value of the cached data type, the creation index value of the cached data, the number of views and the update time value; the update time value is equal to the current time minus the generation time or change completion time of the corresponding cached data, for example, the current time is 9:00 on November 2, and the generation time of the corresponding cached data is 8:00 on November 1. After the corresponding cached data is generated, the user terminal changes it at the current 9:00, then the update time value of the corresponding cached data is equal to the current time minus the change time, which is 9:00 on November 2 minus 9:00 on November 1, which is equal to 24 hours.

[0128] According to an embodiment of the present invention, the step of determining the novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value specifically includes:

[0129] According to the characteristics of the cached data information, a preset characteristic value conversion coefficient table is searched to obtain the characteristic value conversion coefficient of the corresponding characteristic;

[0130] Multiply the eigenvalue by the eigenvalue conversion coefficient of the corresponding feature to obtain the novelty index value of the corresponding feature;

[0131] The novelty index values ​​of all features are accumulated to obtain the novelty index value of the corresponding cached data.

[0132] It should be noted that the preset eigenvalue conversion coefficient table stores eigenvalue conversion coefficients corresponding to various features, and different features correspond to different eigenvalue conversion coefficients. For example, the eigenvalue conversion coefficient corresponding to the number of views is set to 0.2.

[0133] According to an embodiment of the present invention, the step of obtaining the heat value of the cache data type specifically includes:

[0134] Classify cache data according to preset rules to obtain different types of cache data;

[0135] Based on a preset second time period, obtaining the number of viewers and the number of views of different types of cached data;

[0136] The number of people who browsed the cached data is multiplied by a preset first coefficient to obtain a first heat value; the number of views of the corresponding cached data of the same type is multiplied by a preset second coefficient to obtain a second heat value;

[0137] The first heat value and the second heat value of the cache data of the same type are accumulated to obtain the heat value of the corresponding cache data type.

[0138] It should be noted that the types are divided according to the content in the cached data. For example, if the corresponding content is mainly historical figures, the corresponding cached data is divided into the historical figure category; if the corresponding content is mainly games, the corresponding cached data is divided into the game category. When the cached data content can be divided into multiple categories, the type with the highest number of viewers is set as the type of the corresponding cached data.

[0139] According to an embodiment of the present invention, the step of obtaining the number of views specifically includes:

[0140] Get the time value when the user accesses the cached data;

[0141] Determine whether the time value of the user accessing the cached data is greater than a preset first time threshold, if so, record the number of views of the corresponding cached data and increase it by one; if not, the corresponding access is invalid;

[0142] Based on a preset third time period, obtaining a browsing count value of the same user accessing the same cache data;

[0143] When the browsing count value of the same cached data accessed by the same user is greater than the preset first number threshold, the browsing count value of the cached data is not increased by the corresponding user access.

[0144] It should be noted that in order to increase the effective number of views and prevent a single user from maliciously swiping the number of views of cached data, the number of views is limited by time and by a single user within a certain time period. For example, if the preset first time threshold is set to 3 seconds, then when a user accesses the cached data for no more than 3 seconds, it is deemed an invalid access, and the number of views of the corresponding cached data does not increase. For example, if the preset third time period is set to 10 minutes, then the maximum number of views of the same user accessing the same cached data is set to the preset first number threshold. For example, if the preset first number threshold is set to 5 times, when the same user accesses the cached data for more than 5 times within 10 minutes, it is calculated as 5 times, and the number of views of the corresponding cached data does not increase for the part exceeding 5 times.

[0145] According to an embodiment of the present invention, the step of obtaining the creation index value of the cache data specifically includes:

[0146] Get the keywords and keyword quantity in the cache data;

[0147] Compare and analyze the cached data with other cached data of the corresponding type to obtain similar values;

[0148] Multiply the number of keywords in the corresponding cache data by a preset third coefficient to obtain a first creation index value;

[0149] Multiply the similarity value by a preset fourth coefficient to obtain a second creativity index value;

[0150] The first creation index value and the second creation index value are accumulated to obtain the creation index value of the corresponding cache data.

[0151] It should be noted that, the more keywords there are in the cache data, the richer the content of the corresponding cache data is, and the more the number of identical keywords in the cache data and other cache data of the corresponding type is, the higher the corresponding similarity value is.

[0152] According to an embodiment of the present invention, the step of comparing and analyzing the cached data with other cached data of the corresponding type to obtain a similarity value specifically includes:

[0153] Get the keyword of other cached data of the corresponding type and set it as the second keyword;

[0154] Compare and analyze the keyword in the cached data with the second keyword to obtain the number of identical keywords and the total number of all keywords;

[0155] The number of the same keywords is divided by the total number of all keywords to obtain a similarity value between the cached data and other cached data of the corresponding type.

[0156] It should be noted that the keyword in the cache data is compared with the second keyword to find the same keyword, and the number of corresponding same keywords is recorded. The total number of all keywords is the total number of keywords in the cache data and the second keyword, and the same keyword is recorded as one keyword.

[0157] According to an embodiment of the present invention, it also includes:

[0158] Obtain the proportion of cache data accessed by the client and the proportion of memory occupied by the corresponding cache data;

[0159] Subtract the proportion of memory occupied by the corresponding cache data from the proportion of the cache data accessed by the client to obtain a first proportion difference;

[0160] Multiplying the first proportional difference by a preset fifth coefficient to obtain a revised value of a preset first threshold;

[0161] The revised value corresponding to the preset first threshold is subtracted from the preset first threshold to obtain the revised preset first threshold.

[0162] It should be noted that the proportion of the user end accessing the cached data is equal to the number of cached data accessed by the user end divided by the total number of data accessed by the user end. The data includes cached data and non-cached data. The non-cached data is stored in the data storage center and needs to be transmitted to the user end through the data storage center when the user accesses it. The cached data is stored in a cache data repository near the user, such as the cloud, edge node, etc. The proportion of the cached data occupying the memory is equal to the memory value of the corresponding cached data divided by the total memory value of the corresponding cached data repository. The larger the proportion of the user end accessing the cached data, the more accurate the cached data of the cached data repository near the corresponding user, and the less redundant data that needs to be adjusted. Therefore, the preset first threshold can be lowered to increase the memory of the cached data.

[0163] According to an embodiment of the present invention, it also includes:

[0164] Determine whether the proportion of the cache data occupying the memory is greater than a preset proportion threshold, and if so, generate information on adding a cache data storage repository;

[0165] Add a cache data repository according to the information about adding a cache data repository to increase the cache data memory.

[0166] It should be noted that there is a maximum preset ratio threshold for the cache data stored in each cache data repository, for example, set to 70%. When the ratio of cache data in a cache data repository to memory is greater than 70%, it is necessary to add a cache data repository to the current location to alleviate cache pressure.

[0167] A third aspect of the present invention provides a computer-readable storage medium, which stores a cloud-edge collaborative caching method program based on perceptual redundancy. When the cloud-edge collaborative caching method program based on perceptual redundancy is executed by a processor, the steps of a cloud-edge collaborative caching method based on perceptual redundancy as described in any one of the above items are implemented.

[0168] The present invention discloses a cloud-edge collaborative caching method, system and medium based on perceptible redundancy, wherein the method includes: obtaining cache data information based on a preset first time period; extracting features of the cache data information and corresponding feature values; determining a novelty index value of the corresponding cache data according to the features of the cache data information and the corresponding feature values; judging whether the novelty index value is greater than a preset first threshold, and if so, retaining the corresponding cache data; if not, the corresponding cache data is redundant data; and deleting the redundant data. The present invention calculates the novelty index value of the cache data at intervals of a preset first time period through cloud-edge collaboration, and regularly cleans up redundant cache data through the powerful computing power of the cloud, effectively combining the cloud and edge nodes, and effectively improving the caching capacity of the cloud.

[0169] 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. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0170] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; 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 present embodiment.

[0171] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0172] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks or optical disks, and other media that can store program codes.

[0173] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

Claims

1. A cloud-edge collaborative caching method based on perceptual redundancy, characterized in that: include: Based on a preset first time period, obtaining cache data information; Extract the features of cached data information and the corresponding feature values; Determine a novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value; Determine whether the novelty index value is greater than a preset first threshold value, if so, retain the corresponding cache data; if not, the corresponding cache data is redundant data; Deleting the redundant data; The characteristics of the cache data information include the heat of the cache data type, the creation index of the cache data, the number of views and the update time; the corresponding characteristic values ​​are the heat value of the cache data type, the creation index value of the cache data, the number of views and the update time value; The step of obtaining the heat value of the cache data type specifically includes: Classify cache data according to preset rules to obtain different types of cache data; Based on a preset second time period, obtaining the number of viewers and the number of views of different types of cached data; The number of people who browsed the cached data is multiplied by a preset first coefficient to obtain a first heat value; the number of views of the corresponding cached data of the same type is multiplied by a preset second coefficient to obtain a second heat value; Accumulate the first heat value and the second heat value of the cache data of the same type to obtain the heat value of the corresponding cache data type; The step of obtaining the number of views specifically includes: Get the time value when the user accesses the cached data; Determine whether the time value of the user accessing the cached data is greater than a preset first time threshold, if so, record the number of views of the corresponding cached data and increase it by one; if not, the corresponding access is invalid; Based on a preset third time period, obtaining a browsing count value of the same user accessing the same cache data; When the number of views of the same cached data accessed by the same user is greater than the preset first number threshold, the number of views of the cached data accessed by the corresponding user does not increase; The step of obtaining the creation index value of the cache data specifically includes: Get the keywords and keyword quantity in the cache data; Compare and analyze the cached data with other cached data in the corresponding cached data type to obtain similar values; Multiply the number of keywords in the corresponding cache data by a preset third coefficient to obtain a first creation index value; Multiply the similarity value by a preset fourth coefficient to obtain a second creativity index value; Accumulate the first creation index value and the second creation index value to obtain a creation index value corresponding to the cached data; According to the content in the cached data, the cached data content is divided into multiple categories, and the type with the highest number of visitors is set as the corresponding cached data type; The step of comparing and analyzing the cache data with other cache data in the corresponding cache data type to obtain similarity values ​​specifically includes: Obtain the keywords of other cache data in the corresponding cache data type and set them as the second keyword; Compare and analyze the keyword in the cached data with the second keyword to obtain the number of identical keywords and the total number of all keywords; Divide the number of the same keywords by the total number of all keywords to obtain a similarity value between the cached data and other cached data in the corresponding cached data type; Obtain the proportion of cache data accessed by the client and the proportion of memory occupied by the corresponding cache data; Subtract the proportion of memory occupied by the corresponding cache data from the proportion of the cache data accessed by the client to obtain a first proportion difference; Multiplying the first proportional difference by a preset fifth coefficient to obtain a revised value of a preset first threshold; Subtract the revision value corresponding to the preset first threshold from the preset first threshold to obtain the revised preset first threshold; The proportion of the user end accessing the cached data is equal to the number of the user end accessing the cached data divided by the total number of the user end accessing the data, and the data includes cached data and non-cached data; The proportion of memory occupied by the cache data is equal to the memory value of the corresponding cache data divided by the total memory value of the corresponding cache data storage library.

2. According to claim 1, a cloud-edge collaborative caching method based on perceptual redundancy is characterized in that: The step of determining the novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value specifically includes: According to the characteristics of the cached data information, a preset characteristic value conversion coefficient table is searched to obtain the characteristic value conversion coefficient of the corresponding characteristic; Multiply the eigenvalue by the eigenvalue conversion coefficient of the corresponding feature to obtain the novelty index value of the corresponding feature; The novelty index values ​​of all features are accumulated to obtain the novelty index value of the corresponding cached data.

3. A cloud-edge collaborative caching system based on perceptual redundancy, characterized in that: comprising a memory and a processor, the A cloud-edge collaborative caching method program based on perceptual redundancy is stored in the memory, and the cloud-edge collaborative caching method program based on perceptual redundancy implements the following steps when executed by the processor: Based on a preset first time period, obtaining cache data information; Extract the features of cached data information and the corresponding feature values; Determine a novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value; Determine whether the novelty index value is greater than a preset first threshold value, if so, retain the corresponding cache data; if not, the corresponding cache data is redundant data; Deleting the redundant data; The characteristics of the cache data information include the heat of the cache data type, the creation index of the cache data, the number of views and the update time; the corresponding characteristic values ​​are the heat value of the cache data type, the creation index value of the cache data, the number of views and the update time value; The step of obtaining the heat value of the cache data type specifically includes: Classify cache data according to preset rules to obtain different types of cache data; Based on a preset second time period, obtaining the number of viewers and the number of views of different types of cached data; The number of people who browsed the cached data is multiplied by a preset first coefficient to obtain a first heat value; the number of views of the corresponding cached data of the same type is multiplied by a preset second coefficient to obtain a second heat value; Accumulate the first heat value and the second heat value of the cache data of the same type to obtain the heat value of the corresponding cache data type; The step of obtaining the number of views specifically includes: Get the time value when the user accesses the cached data; Determine whether the time value of the user accessing the cached data is greater than a preset first time threshold, if so, record the number of views of the corresponding cached data and increase it by one; if not, the corresponding access is invalid; Based on a preset third time period, obtaining a browsing count value of the same user accessing the same cache data; When the number of views of the same cached data accessed by the same user is greater than the preset first number threshold, the number of views of the cached data accessed by the corresponding user does not increase; The step of obtaining the creation index value of the cache data specifically includes: Get the keywords and keyword quantity in the cache data; Compare and analyze the cached data with other cached data in the corresponding cached data type to obtain similar values; Multiply the number of keywords in the corresponding cache data by a preset third coefficient to obtain a first creation index value; Multiply the similarity value by a preset fourth coefficient to obtain a second creativity index value; Accumulate the first creation index value and the second creation index value to obtain a creation index value corresponding to the cached data; According to the content in the cached data, the cached data content is divided into multiple categories, and the type with the highest number of visitors is set as the corresponding cached data type; The step of comparing and analyzing the cache data with other cache data in the corresponding cache data type to obtain similarity values ​​specifically includes: Obtain the keywords of other cache data in the corresponding cache data type and set them as the second keyword; Compare and analyze the keyword in the cached data with the second keyword to obtain the number of identical keywords and the total number of all keywords; Divide the number of the same keywords by the total number of all keywords to obtain a similarity value between the cached data and other cached data in the corresponding cached data type; Obtain the proportion of cache data accessed by the client and the proportion of memory occupied by the corresponding cache data; Subtract the proportion of memory occupied by the corresponding cache data from the proportion of the cache data accessed by the client to obtain a first proportion difference; Multiplying the first proportional difference by a preset fifth coefficient to obtain a revised value of a preset first threshold; Subtract the revision value corresponding to the preset first threshold from the preset first threshold to obtain the revised preset first threshold; The proportion of the user end accessing the cached data is equal to the number of the user end accessing the cached data divided by the total number of the user end accessing the data, and the data includes cached data and non-cached data; The proportion of memory occupied by the cache data is equal to the memory value of the corresponding cache data divided by the total memory value of the corresponding cache data storage library.

4. The cloud-edge collaborative caching system based on perceptual redundancy according to claim 3, characterized in that: The step of determining the novelty index value of the corresponding cached data according to the characteristics of the cached data information and the corresponding characteristic value specifically includes: According to the characteristics of the cached data information, a preset characteristic value conversion coefficient table is searched to obtain the characteristic value conversion coefficient of the corresponding characteristic; Multiply the eigenvalue by the eigenvalue conversion coefficient of the corresponding feature to obtain the novelty index value of the corresponding feature; The novelty index values ​​of all features are accumulated to obtain the novelty index value of the corresponding cached data.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a cloud-edge collaborative caching method program based on perceptual redundancy. When the cloud-edge collaborative caching method program based on perceptual redundancy is executed by a processor, the steps of a cloud-edge collaborative caching method based on perceptual redundancy as described in any one of claims 1 to 2 are implemented.