Method and apparatus for caching user generated content messages
First Claim
1. A method for caching User Generated Content (UGC) messages, comprising:
- at a server,acquiring first and second attribute information of an UGC message independent of the content of the UGC message for determining whether to cache the UGC message for future access by users of a service provided by the server, wherein the first attribute information is time attribute information and the second attribute information is state attribute information distinct from the time attribute information;
obtaining, based on the first attribute information and a preset first conversion function, a function value corresponding to the first attribute information;
obtaining, based on the second attribute information and a preset second conversion function, a function value corresponding to the second attribute information; and
determining whether the first and second attribute information of the UGC message meets the preset condition by judging whether a sum of the function values corresponding to the first and second attribute information is greater than a preset threshold, and if yes, determining current reading demands of the UGC message meet a present condition, and adding the UGC message to a cache memory of the server,wherein for the UGC message,the first attribute information comprises time attribute information representing the time when the UGC message is generated;
the second attribute information comprises state attribute information comprising first, second and third sub-state attribute information;
the first sub-state attribute information represents that the UGC message is in a normal state or in a deleted state, each corresponding to a function value different from one another;
the second sub-state attribute information represents that the UGC message is in an air-interface forwarded state, in an original state, in a comment state or in a broadcast state, each corresponding to a function value different from one another; and
the third sub-state attribute information represents priority information of the UGC message, each piece of priority information corresponding to a function value different from one another.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for caching User Generated Content (UGC) messages performed at a server is provided, in which first and second attribute information of an UGC message is acquired, a function value corresponding to the first attribute information is obtained based on the first attribute information and a preset first function, a function value corresponding to the second attribute information is obtained based on the second attribute information and a preset second function, the UGC message is added to the cache memory of the server when it is determined from the function values corresponding to the first and the second attribute information that the first and second attribute information of the UGC message meets a preset condition. Additionally, an apparatus and a server for caching UGC messages are also provided.
34 Citations
14 Claims
-
1. A method for caching User Generated Content (UGC) messages, comprising:
-
at a server, acquiring first and second attribute information of an UGC message independent of the content of the UGC message for determining whether to cache the UGC message for future access by users of a service provided by the server, wherein the first attribute information is time attribute information and the second attribute information is state attribute information distinct from the time attribute information; obtaining, based on the first attribute information and a preset first conversion function, a function value corresponding to the first attribute information; obtaining, based on the second attribute information and a preset second conversion function, a function value corresponding to the second attribute information; and determining whether the first and second attribute information of the UGC message meets the preset condition by judging whether a sum of the function values corresponding to the first and second attribute information is greater than a preset threshold, and if yes, determining current reading demands of the UGC message meet a present condition, and adding the UGC message to a cache memory of the server, wherein for the UGC message, the first attribute information comprises time attribute information representing the time when the UGC message is generated; the second attribute information comprises state attribute information comprising first, second and third sub-state attribute information; the first sub-state attribute information represents that the UGC message is in a normal state or in a deleted state, each corresponding to a function value different from one another; the second sub-state attribute information represents that the UGC message is in an air-interface forwarded state, in an original state, in a comment state or in a broadcast state, each corresponding to a function value different from one another; and the third sub-state attribute information represents priority information of the UGC message, each piece of priority information corresponding to a function value different from one another. - View Dependent Claims (2, 3, 4, 5)
-
-
6. An apparatus for caching User Generated Content (UGC) messages, comprising:
-
a processor; and a memory, coupled to the processor, and including instructions that when executed, cause the processor to; acquire first and second attribute information of an UGC message independent of the content of the UGC message for determining whether to cache the UGC message for future access by users of a service provided by the server, wherein the first attribute information is time attribute information and the second attribute information is state attribute information distinct from the time attribute information; obtain, based on the first attribute information and a preset first conversion function, a function value corresponding to the first attribute information; obtain, based on the second attribute information and a preset second conversion function, a function value corresponding to the second attribute information; and determine whether the first and second attribute information of the UGC message meets the preset condition by judging whether a sum of the function values corresponding to the first and second attribute information is greater than a preset threshold, and if yes, determine current reading demands of the UGC message meet a present condition, and add the UGC message to a cache memory of the apparatus, wherein for the UGC message, the first attribute information comprises time attribute information representing the time when the UGC message is generated; the second attribute information comprises state attribute information comprising first, second and third sub-state attribute information; the first sub-state attribute information represents that the UGC message is in a normal state or in a deleted state, each corresponding to a function value different from one another; the second sub-state attribute information represents that the UGC message is in an air-interface forwarded state, in an original state, in a comment state or in a broadcast state, each corresponding to a function value different from one another; and the third sub-state attribute information represents priority information of the UGC message, each piece of priority information corresponding to a function value different from one another. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A non-transitory computer-readable storage medium including instructions that, when executed, cause the processor to:
-
acquire first and second attribute information of an UGC message independent of the content of the UGC message for determining whether to cache the UGC message for future access by users of a service provided by the server, wherein the first attribute information is time attribute information and the second attribute information is state attribute information distinct from the time attribute information; obtain, based on the first attribute information and a preset first conversion function, a function value corresponding to the first attribute information; obtain, based on the second attribute information and a preset second conversion function, a function value corresponding to the second attribute information; and determine whether the first and second attribute information of the UGC message meets the preset condition by judging whether a sum of the function values corresponding to the first and second attribute information is greater than a preset threshold, and if yes, determine current reading demands of the UGC message meet a present condition, and add the UGC message to a cache memory, wherein for the UGC message, the first attribute information comprises time attribute information representing the time when the UGC message is generated; the second attribute information comprises state attribute information comprising first, second and third sub-state attribute information; the first sub-state attribute information represents that the UGC message is in a normal state or in a deleted state, each corresponding to a function value different from one another; the second sub-state attribute information represents that the UGC message is in an air-interface forwarded state, in an original state, in a comment state or in a broadcast state, each corresponding to a function value different from one another; and the third sub-state attribute information represents priority information of the UGC message, each piece of priority information corresponding to a function value different from one another. - View Dependent Claims (12, 13, 14)
-
Specification