A method and device for processing subscription information
A technology for subscribing information and subscribers, applied in the computer field, can solve problems such as the burden of subscribers, and achieve the effect of improving query speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] The embodiment of the present invention provides a method for processing subscription information, see figure 1 , the method flow includes:
[0052] 101: Receive a subscription request sent by a terminal, where the subscription request carries a first identifier corresponding to the subscriber and a second identifier corresponding to the content provider;
[0053] 102: Take the correspondence between the first identifier and the second identifier as a subscription record, and store it in the corresponding relationship between the subscriber identifier with the subscriber identifier as the primary key and the content provider identifier and the subscriber with the content provider identifier as the primary key In the corresponding relationship between the ID and the ID of the content provider;
[0054] 103: Add one to the total number of subscription records corresponding to the second identifier in the correspondence relationship between the content provider identifier...
Embodiment 2
[0062] An embodiment of the present invention provides a method for adding a subscription record in a method for processing subscription information, see figure 2 , the method flow includes:
[0063] 201: Receive a subscription request sent by a terminal, where the subscription request carries a first identifier corresponding to the subscriber and a second identifier corresponding to the content provider.
[0064] 202: Use the correspondence between the first identifier and the second identifier as a subscription record, and store the corresponding relationship between the subscriber identifier and the content provider identifier with the subscriber identifier as the primary key and the content provider identifier with the content provider identifier as the key. In the corresponding relationship between the subscriber ID of the primary key and the content provider ID.
[0065] storing the correspondence between the first identifier and the second identifier in the subscripti...
Embodiment 3
[0072] An embodiment of the present invention provides a method for querying subscription records in a method for processing subscription information, see image 3 , the method flow includes:
[0073] 301: Receive a query request for subscription information sent by a terminal, where the query request carries an identifier category and a third identifier; wherein, the subscription information includes subscription records between users of the subscriber category and users of the content provider category.
[0074] 302: When it is identified that the identifier category is the subscriber category, query whether there is a subscription record corresponding to the third identifier in the cache.
[0075] Among them, the cache stores subscription records that subscribers query before the preset valid time, and the subscription records stored in the cache include the corresponding relationship between the subscriber ID and the content provider ID, and each subscription record will h...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


