Unlock instant, AI-driven research and patent intelligence for your innovation.

Caching method, device, electronic device and computer storage medium of concern relationship

A relationship and cache technology, applied in the computer field, can solve problems such as user inapplicability, long response time, and slow cache

Active Publication Date: 2022-05-27
FLYING FOX INFORMATION TECH TIANJIN CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, it is not suitable for users with a large number of fans or followers
A Redis Hash structure or Zset structure will become a large key, which will slow down the cache, and the response time for adding and deleting will be longer

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Caching method, device, electronic device and computer storage medium of concern relationship
  • Caching method, device, electronic device and computer storage medium of concern relationship
  • Caching method, device, electronic device and computer storage medium of concern relationship

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0182] Optionally, in another embodiment of the present application, an implementation manner of the cache device that pays attention to the relationship further includes:

[0183] The second generating unit is configured to generate a second cached result if the first judging unit 502 judges that there is a valid first target attention relationship in the database.

[0184] The second cached result indicates that the first target attention relationship already exists in the current database, and there is no need to cache again.

[0185] For the specific working process of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, such as figure 1 shown, and will not be repeated here.

[0186] Optionally, in another embodiment of the present application, an implementation manner of the cache device that pays attention to the relationship further includes:

[0187] The second receivin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application provides a caching method, device, electronic device, and computer storage medium for a concern relationship, the method including: if there is no valid first target concern relationship in the database, and there is no first target concern relationship in the database Record, generate a new record of the first target following relationship; if the user in the first target following relationship is a user in the advanced user group, store the first target following relationship in the advanced user cache; if the first target following relationship The users in the first target follow relationship are not users in the advanced user group, and the users in the first target follow relationship meet the standard of advanced users, upgrade the users in the first target follow relationship to advanced users, and store the first target follow relationship in the advanced user cache middle; if the user in the first target following relationship does not meet the standard of advanced users, store the first target following relationship in the common user cache. In this way, the purpose of effectively improving the cache efficiency can be achieved.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular, to a caching method, apparatus, electronic device, and computer storage medium focusing on relationships. Background technique [0002] At present, there are many solutions for the cache processing of attention relationships, and there are two typical ones: the first solution is to use Redis's Hash structure to cache the watch list and the fan list respectively. The second solution is to use Redis's Zset structure to cache the watch list and the fan list respectively. The advantages of these two schemes are the same: adding and deleting are easy to operate, and it is also easy to query the concerned relationship. [0003] However, it is not suitable for users with a large number of followers or a large following. A Redis Hash structure or Zset structure will become a big key, which will slow down the cache, and the response time of adding and deleting will be long...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/9536G06F16/23G06F16/2455G06Q50/00
CPCG06F16/9536G06F16/23G06F16/24552G06Q50/01
Inventor 王玉梅商帆孙成新陈实张益军王金明
Owner FLYING FOX INFORMATION TECH TIANJIN CO LTD