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;
obtaining, based on the first attribute information and a preset first function, a function value corresponding to the first attribute information;
obtaining, based on the second attribute information and a preset second function, a function value corresponding to the second attribute information; and
adding the UGC message to a 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.
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.
4 Citations
20 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; obtaining, based on the first attribute information and a preset first function, a function value corresponding to the first attribute information; obtaining, based on the second attribute information and a preset second function, a function value corresponding to the second attribute information; and adding the UGC message to a 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. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. 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; obtain, based on the first attribute information and a preset first function, a function value corresponding to the first attribute information; obtain, based on the second attribute information and a preset second function, a function value corresponding to the second attribute information; and add the UGC message to a cache memory of the apparatus 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. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. 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; obtain, based on the first attribute information and a preset first function, a function value corresponding to the first attribute information; obtain, based on the second attribute information and a preset second function, a function value corresponding to the second attribute information; and add the UGC message to a cache memory 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. - View Dependent Claims (16, 17, 18, 19)
-
-
20. The non-transitory computer-readable storage medium of 16, further including instructions when executed, cause the processor to:
return, the UGC message obtained from the disk, to the client application.
Specification