Comment information display method, device, server, and terminal

By setting a cache for each display permission and sorting and filtering comment information according to visibility level, the problem of page breaks in the comment information display page was solved, and efficient retrieval and display of comment information was achieved.

CN112528185BActive Publication Date: 2024-11-12BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011495176.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-17
Publication Date
2024-11-12
Estimated Expiration
2040-12-17

AI Technical Summary

Technical Problem

In existing technologies, comment information display pages are prone to page breaks because the server cannot provide enough comment information in a timely manner after reaching the maximum number of comment retrieval attempts.

Method used

By setting corresponding caches for each display permission, the server retrieves candidate comment information from multiple caches based on the visibility level of the comment information, and sorts and filters them according to a preset order to ensure that the comment information visible to the target account is obtained and displayed in a timely manner.

Benefits of technology

This effectively avoids page breaks in the comment information display page, improves the efficiency and success rate of comment information retrieval, and reduces the number of requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112528185B_ABST
    Figure CN112528185B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a comment information display method, device, server, terminal, computer-readable storage medium and computer program product. The method comprises: receiving a comment acquisition request sent by a target account; acquiring candidate comment information from multiple caches corresponding to display permissions, wherein the cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account; according to the display permission of the candidate comment information, obtaining the comment information to be displayed that is visible to the target account from the candidate comment information; sending the comment information to be displayed to the client, and the client is used to display the comment information to be displayed. By storing the comment information separately according to the visibility level, the server can obtain sufficient comment information to be displayed from multiple caches corresponding to the display permission within a limited number of times, thereby avoiding the phenomenon of page breakage of the comment information display page of the client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a comment information display method, device, server, terminal, computer-readable storage medium and computer program product. Background Art

[0002] Currently, many applications support users to post comments on works and set the display permissions of the comment information, for example, setting it to be visible only to oneself, visible to some people, visible to everyone, etc.

[0003] In the related art, the comment information of the work can be stored in the cache for display by the client request. The server can respond to the comment acquisition request of the client, obtain the comment information from the cache, and filter the comment information according to the display permission of the comment information. If the number of filtered comment information is less than the preset number requested by the client, the server will repeatedly obtain the comment information from the cache.

[0004] However, in the related art, the end condition of the server obtaining the comment information is often preset, for example, setting an upper limit on the number of times. When the number of times the server obtains the comment information from the cache reaches the upper limit, and the number of filtered comment information is still less than the preset number requested by the client, the server will not send new comment information to the client, resulting in a broken page on the client's comment information display page. Summary of the invention

[0005] The present disclosure provides a comment information display method, device, server, terminal, computer-readable storage medium and computer program product to at least solve the problem of page breakage of the comment information display page of the client in the related art. The technical solution of the present disclosure is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a method for displaying comment information is provided, including:

[0007] Receive a comment acquisition request sent by a target account for a target work displayed on a client; in response to the comment acquisition request, obtain candidate comment information from multiple caches corresponding to display permissions, wherein the cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account; according to the display permission of the candidate comment information, obtain the comment information to be displayed that is visible to the target account from the candidate comment information; send the comment information to be displayed to the client, and the client is used to display the comment information to be displayed.

[0008] In one of the embodiments, in response to the comment acquisition request, candidate comment information is acquired from multiple caches corresponding to display permissions, including: according to the comment acquisition request, acquiring the number of comments to be acquired corresponding to each cache; and acquiring candidate comment information of the number of comments to be acquired from each cache.

[0009] In one of the embodiments, obtaining the comment information to be displayed visible to the target account from the candidate comment information according to the display permission of the candidate comment information includes: sorting the candidate comment information according to a preset arrangement order; and obtaining the comment information to be displayed visible to the target account from the sorted candidate comment information according to the display permission of the candidate comment information.

[0010] In one of the embodiments, the method further includes: obtaining target comment information of the target account for the target work, and display permissions of the target comment information to other accounts except the target account; and caching the target comment information in a cache corresponding to the display permissions of the target comment information.

[0011] In one of the embodiments, the method further includes: storing the target comment information in a database corresponding to the display authority of the target comment information, the database corresponding to the display authority being used to store all comment information under the display authority; the comment information in the cache is obtained by caching from a database of the same display authority through a server.

[0012] In one of the embodiments, the method further includes: obtaining a display permission change request for comment information, the display permission change request carrying the changed display permissions of the comment information; in response to the display permission change request, deleting the comment information from a cache corresponding to the display permissions before the change, and updating the comment information to a cache corresponding to the changed display permissions.

[0013] In one of the embodiments, the method further includes: in response to the display permission change request, deleting the comment information from the database corresponding to the display permission before the change, and storing the comment information in the database corresponding to the display permission after the change; the database corresponding to the display permission is used to store the full amount of comment information under the display permission; the comment information in the cache is obtained by caching from the database of the same display permission by the server.

[0014] In one of the embodiments, the display permission includes restricted display permission, and the restricted display permission is used to indicate that the comment information is not visible to the target account; the method also includes: regularly obtaining the latest comment information from a database corresponding to the restricted display permission, and the latest comment information is determined according to the release time of the comment information; and updating the latest comment information to the cache corresponding to the restricted display permission.

[0015] According to a second aspect of an embodiment of the present disclosure, a method for displaying comment information is provided, including:

[0016] In response to a comment display operation on a target work, a comment acquisition request is sent to a server, wherein the comment acquisition request is used to request the server to obtain candidate comment information from multiple caches corresponding to display permissions, and according to the display permissions of the candidate comment information, obtain the comment information to be displayed that is visible to the target account from the candidate comment information, wherein: the cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account; the comment information to be displayed sent by the server is received; and the comment information to be displayed is displayed.

[0017] In one of the embodiments, the method further includes: obtaining target comment information of the target account for the target work, and display rights of the target comment information to other accounts except the target account; sending the target comment information and the display rights of the target comment information to the server, and the server is used to cache the target comment information in a cache corresponding to the display rights of the target comment information.

[0018] In one of the embodiments, the server is further used to store the target comment information in a database corresponding to the display authority of the target comment information, and the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by caching the server from the database of the same display authority.

[0019] In one of the embodiments, obtaining the target comment information of the target account for the target work, and the display permission of the target comment information, includes: obtaining the target comment information; and obtaining the display permission of the target comment information in response to a display permission configuration operation for the target comment information.

[0020] In one of the embodiments, the method further includes: in response to a display permission change operation on the target comment information, obtaining the display permission of the target comment information after the change; sending a display permission change request to the server, wherein the display permission change request is used to request the server to delete the target comment information from a cache corresponding to the display permission before the change, and update the target comment information to a cache corresponding to the display permission after the change.

[0021] In one embodiment, the display permission change request is further used to request the server to delete the target comment information from the database corresponding to the display permission before the change, and store the target comment information in the database corresponding to the display permission after the change;

[0022] The database corresponding to the display authority is used to store all the comment information under the display authority;

[0023] The comment information in the cache is obtained by caching from a database with the same display authority by the server.

[0024] According to a third aspect of an embodiment of the present disclosure, a comment information display device is provided, including:

[0025] A receiving module is configured to execute and receive a comment acquisition request sent by a target account to a target work displayed on a client;

[0026] A first acquisition module is configured to execute, in response to the comment acquisition request, acquiring candidate comment information from a plurality of caches corresponding to display permissions, wherein the caches corresponding to the display permissions cache a plurality of comment information under the display permissions, wherein the display permissions are used to indicate a visibility level of the comment information to the target account;

[0027] A comment determination module is configured to execute, according to the display authority of the candidate comment information, obtaining the comment information to be displayed that is visible to the target account from the candidate comment information.

[0028] The sending module is configured to send the comment information to be displayed to the client, and the client is used to display the comment information to be displayed.

[0029] In one embodiment, the first acquisition module includes:

[0030] A first acquisition unit is configured to execute, according to the comment acquisition request, acquiring the number of comments to be acquired corresponding to each cache;

[0031] The second acquiring unit is configured to acquire candidate comment information of the number of comments to be acquired from each cache.

[0032] In one embodiment, the comment determination module includes:

[0033] A sorting unit, configured to sort the candidate comment information according to a preset arrangement order;

[0034] The screening unit is configured to obtain the to-be-displayed comment information visible to the target account from the sorted candidate comment information according to the display authority of the candidate comment information.

[0035] In one embodiment, the device further comprises:

[0036] A second acquisition module is configured to execute acquisition of target comment information of the target account for the target work, and display rights of the target comment information to other accounts except the target account;

[0037] The cache module is configured to cache the target comment information into a cache corresponding to the display permission of the target comment information.

[0038] In one embodiment, the device further comprises:

[0039] The storage module is configured to execute storage of the target comment information in a database corresponding to the display authority of the target comment information, wherein the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by caching from a database with the same display authority through a server.

[0040] In one embodiment, the device further comprises:

[0041] A third acquisition module is configured to execute and acquire a display permission change request for comment information, wherein the display permission change request carries the changed display permission of the comment information;

[0042] The first cache update module is configured to execute, in response to the display authority change request, delete the comment information from the cache corresponding to the display authority before the change, and update the comment information to the cache corresponding to the display authority after the change.

[0043] In one embodiment, the device further comprises:

[0044] The database update module is configured to execute, in response to the display authority change request, deleting the comment information from the database corresponding to the display authority before the change, and storing the comment information in the database corresponding to the display authority after the change; the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by caching from the database of the same display authority by the server.

[0045] In one embodiment, the display permission includes a restricted display permission, and the restricted display permission is used to indicate that the comment information is not visible to the target account; the device further includes:

[0046] A timing acquisition module, configured to execute timing acquisition of the latest comment information from the database corresponding to the restricted display authority, wherein the latest comment information is determined according to the release time of the comment information;

[0047] The second cache update module is configured to update the latest comment information to the cache corresponding to the restricted display permission.

[0048] According to a fourth aspect of an embodiment of the present disclosure, a comment information display device is provided, including:

[0049] The sending module is configured to execute a comment display operation on a target work, and send a comment acquisition request to a server, wherein the comment acquisition request is used to request the server to obtain candidate comment information from multiple caches corresponding to display permissions, and obtain the comment information to be displayed that is visible to the target account from the candidate comment information according to the display permissions of the candidate comment information, wherein:

[0050] The cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account;

[0051] A receiving module, configured to receive the comment information to be displayed sent by the server;

[0052] The display module is configured to display the comment information to be displayed.

[0053] In one of the embodiments, the device further includes: an acquisition module configured to execute acquisition of target comment information of the target account for the target work, and display rights of the target comment information to other accounts except the target account;

[0054] The sending module is further configured to send the target comment information and the display permission of the target comment information to the server, and the server is used to cache the target comment information in a cache corresponding to the display permission of the target comment information.

[0055] In one of the embodiments, the server is further used to store the target comment information in a database corresponding to the display authority of the target comment information, and the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by caching the server from the database of the same display authority.

[0056] In one of the embodiments, the acquisition module is configured to execute acquisition of the target comment information; and in response to a display permission configuration operation on the target comment information, acquire the display permission of the target comment information.

[0057] In one embodiment, the acquisition module is further configured to execute a display permission change operation on the target comment information to acquire the changed display permission of the target comment information;

[0058] The sending module is further configured to execute sending a display permission change request to the server, wherein the display permission change request is used to request the server to delete the target comment information from the cache corresponding to the display permission before the change, and update the target comment information to the cache corresponding to the display permission after the change.

[0059] In one of the embodiments, the display authority change request is also used to request the server to delete the target comment information from the database corresponding to the display authority before the change, and store the target comment information in the database corresponding to the display authority after the change; the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by caching the server from the database of the same display authority.

[0060] According to a fifth aspect of an embodiment of the present disclosure, a server is provided, including:

[0061] A processor; a memory for storing instructions executable by the processor;

[0062] Wherein, the processor is configured to execute the instructions to implement the comment information display method as described in any embodiment of the first aspect.

[0063] According to a sixth aspect of an embodiment of the present disclosure, a terminal is provided, including:

[0064] A processor; a memory for storing instructions executable by the processor;

[0065] Wherein, the processor is configured to execute the instructions to implement the comment information display method as described in any embodiment of the second aspect.

[0066] According to a seventh aspect of an embodiment of the present disclosure, a comment information display system is provided, comprising the server as described in the fifth aspect, and the terminal as described in the sixth aspect.

[0067] According to an eighth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the comment information display method as described in any embodiment of the first aspect.

[0068] According to the ninth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided. When the instructions in the computer-readable storage medium are executed by the processor of the terminal, the terminal is enabled to execute the comment information display method as described in any embodiment of the second aspect.

[0069] According to a tenth aspect of the embodiments of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the comment information display method described in any one of the embodiments of the first aspect is implemented.

[0070] According to an eleventh aspect of the embodiments of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the comment information display method described in any one of the embodiments of the second aspect is implemented.

[0071] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0072] By configuring the cache corresponding to the display permission, which is used to indicate the visibility level of the comment information to the target account, the comment information is processed separately according to the display permission of the comment information. After the server receives the comment acquisition request sent by the target account for the target work displayed on the client, the server can obtain sufficient comment information to be displayed that is visible to the target account from multiple caches corresponding to the display permission within a limited number of times, thereby ensuring the efficiency of comment information acquisition and reducing the number of comment information requests, while avoiding the phenomenon of page breakage of the client's comment information display page.

[0073] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0075] Figure 1 The present invention is a diagram showing an application environment of a comment information display method according to an exemplary embodiment.

[0076] Figure 2 The figure is a flowchart of a comment information display method according to an exemplary embodiment.

[0077] Figure 3 The figure is a flowchart showing a step of obtaining comment information according to an exemplary embodiment.

[0078] Figure 4 The figure is a flowchart showing a cache updating step according to an exemplary embodiment.

[0079] Figure 5 The figure is a flowchart of a comment information display method according to an exemplary embodiment.

[0080] Figure 6 The present invention is a flowchart showing the steps of publishing comment information according to an exemplary embodiment.

[0081] Figure 7 The present invention is an interactive diagram showing a method for displaying comment information according to an exemplary embodiment.

[0082] Figure 8 The present invention is a block diagram of a comment information display device according to an exemplary embodiment.

[0083] Fig. 9 The present invention is a block diagram of a comment information display device according to an exemplary embodiment.

[0084] Fig.10 The figure is a diagram showing an internal structure of a terminal according to an exemplary embodiment.

[0085] Fig.11 The figure is a diagram showing the internal structure of a server according to an exemplary embodiment. DETAILED DESCRIPTION

[0086] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0087] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0088] The comment information display method provided by the present disclosure can be applied to Figure 1 In the application environment shown in the figure, the terminal 110 interacts with the server 120 through the network. An application is installed in the terminal 110, and the application may be a social application, an instant messaging application, a short video application, etc. The user can use the application to view the works in the application, view the comment information for the works, publish the comment information, change the display authority of the comment information, and other operations. The server 120 may be pre-deployed with a database storing comment information and multiple caches corresponding to the display authority. The server 120 may update the comment information in each cache corresponding to the display authority according to the comment information in the database to ensure the consistency of the comment information in the cache and the database. When the user wants to view the comment information of the target work displayed on the terminal 110, the comment display operation for the target work may be triggered through the terminal 110. In response to the comment display operation, the terminal 110 sends a comment acquisition request to the server 120. In response to the comment acquisition request, the server 120 acquires candidate comment information from multiple caches corresponding to the display authority; and obtains the comment information to be displayed visible to the target account from the candidate comment information according to the display authority of the candidate comment information. The server 120 sends the comment information to be displayed to the terminal 110, so that the terminal 110 displays the comment information to be displayed on the page. The terminal 110 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 120 can be implemented as an independent server or a server cluster composed of multiple servers.

[0089] Figure 2 is a flowchart of a method for displaying comment information according to an exemplary embodiment. Figure 2 As shown, the comment information display method is used in a server and includes the following steps.

[0090] In step S210, a comment acquisition request sent by a target account to a target work displayed on a client is received.

[0091] The target account may refer to an account that is requesting comment information. The work may refer to digitally transmittable content, including pictures, text, sound, video, animation, game, web page, etc.

[0092] The comment acquisition request may be sent by the client to the server in response to a comment display operation. The comment display operation may be an operation triggered by a user on a target work, including but not limited to a single-click operation, a double-click operation, a sliding operation, a gesture operation, and an operation on a preset comment display control, etc. For example, it may be a user clicking on a "Comment" button on a work display page, or sliding up on a comment information page, etc.

[0093] In step S220, in response to the comment acquisition request, candidate comment information is acquired from multiple caches corresponding to the display permissions, wherein the caches corresponding to the display permissions cache a number of comment information under the display permissions, and the display permissions are used to indicate the visibility level of the comment information to the target account.

[0094] The cache is a cache database, which can be a non-relational database. In order to prevent the relational database from being accessed too much and speed up the loading of comment information, this embodiment pre-sets a corresponding cache for each display permission to temporarily store a number of comment information under the display permission. The cache can adopt a key-value cache, a document cache, etc.

[0095] The display permission can be used to indicate the visibility level of the comment information to the target account, for example, it can be visible to all users, visible to some users (for example, visible to friends), visible only to the comment author, etc.

[0096] Specifically, after receiving the comment acquisition request for the target work, the server acquires a certain amount of candidate comment information from each cache corresponding to the display permission according to the work-related information of the target work (e.g., the work name and work identifier of the target work). The amount of comment information acquired from each cache corresponding to the display permission can be pre-configured or obtained through algorithm statistical analysis.

[0097] In step S230, based on the display authority of the candidate comment information, the comment information to be displayed that is visible to the target account is obtained from the candidate comment information.

[0098] In step S240, the comment information to be displayed is sent to the client, and the client is used to display the comment information to be displayed.

[0099] Specifically, since the candidate comment information is obtained from multiple caches corresponding to display permissions, there may be comment information that is not visible to the target account. Therefore, the server can obtain the comment information to be displayed that is visible to the target account from the candidate comment information according to the display permissions of the candidate comment information. The server sends the comment information to be displayed to the client, so that the client displays the comment information to be displayed on the current page.

[0100] In the above comment information display method, by configuring a cache corresponding to the display permission, the display permission is used to indicate the visibility level of the comment information to the target account, and the comment information is separately displayed according to the display permission of the comment information. After the server receives the comment acquisition request sent by the target account to the target work displayed on the client, the server can obtain sufficient comment information to be displayed that is visible to the target account from multiple caches corresponding to the display permission within a limited number of times, thereby ensuring the efficiency of comment information acquisition and reducing the number of comment information requests, while avoiding the phenomenon of page breakage of the client's comment information display page.

[0101] In an exemplary embodiment, step S220, in response to a comment acquisition request, obtains candidate comment information from multiple caches corresponding to display permissions, including: according to the comment acquisition request, obtaining the number of comments to be obtained corresponding to each cache; obtaining candidate comment information of the number of comments to be obtained from each cache.

[0102] The comment information may include a unique comment identifier and corresponding comment content. The comment content is not limited to pictures, text, sound, video, etc. The server cache may correspondingly include an index cache for storing comment identifiers and a content cache for storing comment content. The number of comments to be obtained in each cache may be a pre-configured constant, which may be obtained by analyzing historical data; or may be obtained by analyzing historical data through a pre-deployed analysis algorithm. The historical data may be the historical number of comment identifiers obtained by the server from each index cache, as well as the corresponding number of comment loads and comment load results.

[0103] Exemplarily, if the display permission includes visible to all users and visible only to the comment author. The client is pre-configured to request M comments to be displayed from the server each time. In the related art, the server will obtain M+S comments from the cache (S is the number of extra comments, used to reduce the situation where the comment information is filtered and less than M comments are requested in one time), and filter the M+S comments; if the number of filtered comments meets M, the filtered comments will be sent to the client for display; if the number of filtered comments is less than M, M+S comments will continue to be obtained from the cache until the number of filtered comments meets M. If the number of filtered comments does not reach M, the number of times the server has obtained the comment information from the cache has reached the upper limit, then the comment information display page will be broken.

[0104] However, in this embodiment, the server can be pre-configured to obtain M candidate comment information from the cache visible to all users each time, and obtain S candidate comment information from the cache visible only to the comment author, so that the server can obtain sufficient comment information to be displayed at a time.

[0105] Specifically, after receiving the comment acquisition request, the server obtains the candidate comment identifiers of the number of comments to be acquired from each index cache corresponding to the display authority with reference to the above content, and obtains the corresponding comment content from the content cache according to each candidate comment identifier.

[0106] In some possible embodiments, before obtaining the comment content from the content cache, the server may filter the candidate comment identifiers according to the display permissions corresponding to the candidate comment identifiers to obtain the comment identifiers to be displayed that are visible to the target account.

[0107] Furthermore, before filtering the candidate comment identifiers, the server can also sort the obtained candidate comment identifiers according to a preset arrangement order, for example, sort the candidate comment identifiers according to the comment release time corresponding to the candidate comment identifiers. The comment identifiers to be displayed that are visible to the target account are filtered from the sorted candidate comment identifiers.

[0108] Furthermore, each time the client sends a comment acquisition request, it may request a fixed number of comments to be displayed from the server. Therefore, after filtering the candidate comment identifiers, the server can select a fixed number of candidate comment identifiers with the latest publishing time from the filtered candidate comment identifiers as the comment identifiers to be displayed. Then, the comment content to be displayed corresponding to the comment identifier to be displayed is obtained from the content cache, and the comment content to be displayed is sent to the client for display.

[0109] In this embodiment, by pre-deploying an index cache corresponding to each display permission, it can be ensured that the server can obtain a certain number of comment identifiers that can be displayed on the client from multiple caches corresponding to the display permissions within a limited number of times, thereby ensuring the accuracy of the number of comment information and improving the success rate of obtaining comment information that meets the preset number; by sorting the comment information obtained from different display permissions according to a unified sorting rule, it is ensured that the user obtains the comments without being aware of it.

[0110] In an exemplary embodiment, if Figure 3 As shown, the method also includes:

[0111] In step S310, target comment information of a target account for a target work and display rights of the target comment information to other accounts except the target account are obtained.

[0112] In step S320, the target comment information is cached in a cache corresponding to the display authority of the target comment information.

[0113] Specifically, if the user wants to post a comment on the target work, the comment content can be entered through the comment input box of the client to generate the target comment information. The client obtains the display permission corresponding to the target comment information. The display permission can be pre-configured by the system. For example, the display permission of the comment information is configured to be visible to all users by default; or it can be configured by the user for the target comment information to trigger the display permission configuration operation. For example, when the user wants to cancel the visibility of all users, manual configuration can be performed separately. After receiving the comment publishing instruction for the target comment information, the client sends the target comment information and the corresponding display permission to the server. The server caches the target comment information in the cache corresponding to the display permission based on the display permission of the target comment information and the target work as the dimension.

[0114] In this embodiment, the accuracy of the data in the cache can be ensured by updating the corresponding cache in real time according to the visibility level of the comment information.

[0115] In an exemplary embodiment, the method further includes: according to the display authority of the target comment information, storing the target comment information in a database corresponding to the display authority of the target comment information.

[0116] Among them, the database (MySQL, relational database management system) is a warehouse that organizes, stores and manages data according to the data structure. It is a collection of large amounts of data that are stored in a computer for a long time, organized, shareable and uniformly managed.

[0117] Specifically, multiple databases corresponding to display permissions can also be deployed in the server for long-term storage of full comment information under the corresponding display permissions. The comment information in the cache can be cached by the server from a database with the same display permissions. For example, display permissions include fully visible and only visible to the author himself. Then a database corresponding to the fully visible display permission can be deployed separately for long-term storage of all visible full comment information; a database corresponding to the display permission only visible to the author himself can be deployed separately for long-term storage of full comment information that is only visible to the author himself. After the server receives the target comment information, it can store the target comment information in the database corresponding to the display permission of the target comment information according to the display permission of the target comment information.

[0118] Furthermore, the update order of the database and the cache may be preconfigured, for example, after the server receives the target comment information, the target comment information is first updated to the database corresponding to the display authority of the target comment information, and then the cache corresponding to the display authority of the target comment information is updated.

[0119] Furthermore, in order to ensure the consistency of the cache and the database under the same display permission, an expiration time can be configured for each cache. When the expiration time is reached, the server obtains a certain amount of the latest published comment information from the database and updates the obtained comment information to the cache corresponding to the same display permission.

[0120] In this embodiment, by separately storing the comment information according to the visibility level, the efficiency and success rate of obtaining the comment information are guaranteed; by updating the corresponding database in real time according to the visibility level of the comment information, the accuracy of the data in the database can be ensured, which facilitates the subsequent maintenance and management of the comment information.

[0121] In an exemplary embodiment, if Figure 4 As shown, the method also includes:

[0122] In step S410, a display permission change request for the comment information is obtained, and the display permission change request carries the changed display permission of the comment information.

[0123] In step S420, in response to the display authority change request, the comment information is deleted from the cache corresponding to the display authority before the change, and the comment information is updated to the cache corresponding to the display authority after the change.

[0124] The display permission change request may be sent by the client in response to a display permission change operation triggered by a user on a comment. The display permission change operation may be a single-click operation, a double-click operation, a long-press operation on the comment, an operation on a preset display permission change control, etc.

[0125] Specifically, the client can display a visibility level list in response to the display permission change operation, so that the user can select the changed display permission from the visibility level list. The client obtains the changed display permission selected by the user and sends a display permission change request to the server. After receiving the display permission change request, the server deletes the comment information from the cache corresponding to the display permission before the change, and updates the target comment information to the cache corresponding to the display permission after the change.

[0126] In this embodiment, after the display authority of the comment information is changed, the accuracy of the data in the cache can be ensured by causing the server to update the corresponding cache in real time according to the changed display authority.

[0127] In an exemplary embodiment, the method further includes: in response to the display authority change request, deleting the comment information from the database corresponding to the display authority before the change, and storing the comment information in the database corresponding to the display authority after the change.

[0128] Specifically, multiple databases corresponding to display permissions can also be deployed in the server for long-term storage of all comment information under the corresponding display permissions. The comment information in the cache can be obtained by the server from the database of the same display permission. After the server receives the display permission change request, it can delete the comment information from the database corresponding to the display permission before the change according to the changed display permission carried in the display permission change request, and update the target comment information to the database corresponding to the changed display permission.

[0129] In this embodiment, after the display authority of the comment information is changed, the accuracy of the data in the database can be ensured by causing the server to update the corresponding database in real time according to the changed display authority.

[0130] In an exemplary embodiment, the display permission includes restricted display permission, and the restricted display permission can be used to indicate that the comment information is not visible to the target account; the method also includes: regularly obtaining the latest comment information from a database corresponding to the restricted display permission, and the latest comment information is determined according to the release time of the comment information; updating the latest comment information to the cache corresponding to the restricted display permission.

[0131] Among them, restricted display permission may refer to other permissions except the level visible to all users, for example, only the comment author himself can see it. Normally, the number of comment information corresponding to restricted display permission is much less than the number of comment information visible to all users. For the cache corresponding to restricted display permission, the cache update policy can be configured separately. In a specific implementation, the expiration time can be configured in advance for the cache corresponding to the restricted display permission. When the expiration time is reached, the server clears the cache corresponding to the restricted display permission. Obtain a certain amount of the latest comment information from the database corresponding to the restricted display permission, and update the obtained latest comment information to the corresponding cache.

[0132] Furthermore, for the cache corresponding to the unrestricted display permission, the back-to-source strategy can be used to update the stored comment information. The back-to-source strategy means that if the comment information to be obtained does not exist in the cache, the comment information to be distributed is obtained from the source station (database).

[0133] In this embodiment, by deploying a cache update policy separately for limiting display permissions, while ensuring the validity of data in the cache, no additional pressure is imposed on the server.

[0134] Figure 5 is a flowchart of a method for displaying comment information according to an exemplary embodiment. Figure 5 As shown, the comment information display method is used in a terminal and includes the following steps.

[0135] In step S510, in response to the comment display operation on the target work, a comment acquisition request is sent to the server, and the comment acquisition request is used to request the server to obtain candidate comment information from multiple caches corresponding to the display permissions, and obtain the comment information to be displayed that is visible to the target account from the candidate comment information according to the display permissions of the candidate comment information, wherein: the cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account.

[0136] In step S520, the comment information to be displayed sent by the server is received.

[0137] In step S530, the comment information to be displayed is displayed.

[0138] Specifically, the comment acquisition request may be sent by the client to the server in response to the comment display operation. After receiving the comment acquisition request sent by the client, the server obtains a certain number of candidate comment information from each cache corresponding to the display permission according to the work-related information of the target work. The number of comment information obtained from the cache corresponding to each display permission may be pre-configured or obtained through algorithmic statistical analysis.

[0139] Since the candidate comment information is obtained from multiple caches corresponding to the display permissions, there may be comment information that is not visible to the target account. Therefore, referring to the exemplary description of the server side above, the comment information to be displayed visible to the target account can be obtained from the candidate comment information according to the display permissions of the candidate comment information. The server sends the comment information to be displayed to the client.

[0140] After receiving the comment information to be displayed sent by the server, the client can render the comment information to be displayed on the page through the pre-configured comment information display method. The comment information display method can be displayed at a preset position on the current page, displayed on the comment information display page, displayed through a pop-up window, sidebar, bullet screen, etc.

[0141] In the above comment information display method, by configuring a cache corresponding to the display permission, the display permission is used to indicate the visibility level of the comment information to the target account, and the comment information is separately displayed according to the display permission of the comment information. After the server receives the comment acquisition request sent by the target account to the target work displayed on the client, the server can obtain sufficient comment information to be displayed that is visible to the target account from multiple caches corresponding to the display permission within a limited number of times, thereby ensuring the efficiency of comment information acquisition and reducing the number of comment information requests, while avoiding the phenomenon of page breakage of the client's comment information display page.

[0142] In an exemplary embodiment, the target account can publish comment information for the target work, such as Figure 6 As shown, this can be achieved by following the steps below:

[0143] In step S610, target comment information of a target account for a target work and display rights of the target comment information to other accounts except the target account are obtained.

[0144] In step S620, the target comment information and the display authority of the target comment information are sent to the server, and the server is used to cache the target comment information in a cache corresponding to the display authority of the target comment information.

[0145] Specifically, if the user wants to publish comment information on the target work, the comment content can be entered through the comment input box of the client to generate the target comment information. The client obtains the display permission corresponding to the target comment information. The display permission can be pre-configured by the system, for example, the display permission of the comment information is configured to be visible to all users by default; it can also be configured by the user for the target comment information to trigger the display permission configuration operation, for example, when the user wants to cancel the visibility of all users, it can be manually configured. After receiving the comment publishing instruction for the target comment information, the client sends the target comment information and the corresponding display permission to the server. The server caches the target comment information in the cache corresponding to the display permission based on the display permission of the target comment information and the target work as the dimension. For example, if the display permission of the target comment information is visible to all users, the server caches the target comment information in the cache corresponding to the permission visible to all users; if the display permission of the target comment information is visible only to the comment author, the server caches the comment information in the cache corresponding to the permission visible only to the comment author.

[0146] In this embodiment, the accuracy of the data in the cache can be ensured by updating the corresponding cache in real time according to the visibility level of the comment information.

[0147] In an exemplary embodiment, referring to the exemplary description of the server side, the target comment information is stored in a database corresponding to the display authority of the target comment information through the server.

[0148] In an exemplary embodiment, a method for changing the display authority of target comment information is described. In response to the display authority change operation of the target comment information, the display authority of the changed target comment information is obtained; a display authority change request is sent to the server, and the display authority change request is used to request the server to delete the target comment information from the cache corresponding to the display authority before the change, and update the target comment information to the cache corresponding to the display authority after the change.

[0149] Specifically, the user can change the display permissions of the comment information he or she has posted, for example, changing the comment information from being visible only to the author to being visible to all users. In response to the display permission change operation triggered by the user, the client can display a visibility level list so that the user can select the changed display permission from the visibility level list. The client obtains the changed display permission selected by the user and sends a display permission change request to the server, which carries the changed display permission. In response to the display permission change request, the server deletes the target comment information from the cache corresponding to the display permission before the change, and updates the target comment information to the cache corresponding to the changed display permission.

[0150] In this embodiment, after the display authority of the comment information is changed, the accuracy of the data in the cache can be ensured by causing the server to update the corresponding cache in real time according to the changed display authority.

[0151] In an exemplary embodiment, referring to the exemplary description of the server side, the target comment information is deleted from the database corresponding to the display authority before the change through the server, and the target comment information is stored in the database corresponding to the display authority after the change. No further details are given here.

[0152] Figure 7 is an interactive flow chart of a method for displaying comment information according to an exemplary embodiment. The method for displaying comment information is used to Figure 7 In the comment information display system shown in the figure, the system includes a terminal and a server. The server is pre-deployed with multiple databases and caches corresponding to display permissions. The display permissions may include being visible to all users or only visible to the comment author. Figure 7 As shown, the following steps are included.

[0153] In step S702, the terminal responds to the comment display operation on the target work displayed on the client by sending a comment acquisition request to the server. The comment display operation may be a user clicking a "comment" button on the work display page, swiping up on the comment information page, etc.

[0154] In step S704, the server responds to the comment acquisition request, acquires the number of comments to be acquired corresponding to each index cache, and acquires candidate comment identifiers of the number of comments to be acquired from each index cache.

[0155] Specifically, the method for determining the number of comments to be obtained can refer to the above embodiment, which will not be elaborated here. The cache can be a Redis cache. Redis cache is an open source log-type, Key-Value database written in C language and based on memory and can also be persistent. The structural design of Redis cache can be:

[0156] Key:userID

[0157] Value:Map <photoID,List <long>commentID>

[0158] Among them, userID represents the comment author ID; photoID represents the work ID; commentID represents the comment ID.

[0159] In step S706, the server sorts the obtained candidate comment identifiers according to the publishing time of the comment information, and filters the sorted candidate comment identifiers to obtain a preset number of comment identifiers to be displayed that are visible to the target accounts.

[0160] In step S708, the server obtains the comment content to be displayed from the content cache according to the comment identifier to be displayed.

[0161] In step S710, the server sends the comment information to be displayed to the terminal. The comment information to be displayed includes the comment identifier to be displayed and the comment content to be displayed corresponding to the comment identifier to be displayed.

[0162] In step S712, the terminal displays the comment information to be displayed.

[0163] In step S714, the terminal obtains the target comment information of the target account for the target work, and the display permission of the target comment information. The display permission can be pre-configured by the system, for example, the display permission of the comment information is configured to be visible to all users by default; or it can be configured by the user for the target comment information to trigger the display permission configuration operation, for example, when the user wants to set it to be visible only to the comment author, it can be manually configured.

[0164] In step S716, the terminal sends the target comment information and the display authority of the target comment information to the server in response to the comment publishing instruction.

[0165] Specifically, after obtaining the comment publishing instruction, the terminal can send the target comment information and the display permission of the target comment information to the Kafka message queue, so that the message task obtains the target comment information and the corresponding display permission from the Kafka message queue, and sends the target comment information and the corresponding display permission to the server.

[0166] In step S718, the server updates the target comment to a database corresponding to the display authority of the target comment information.

[0167] In step S720, the server caches the target comment information in a cache corresponding to the display authority of the target comment information.

[0168] In step S722, the terminal responds to the display permission change operation on the target comment information by displaying a visibility level list, so that the user can select the changed display permission from the visibility level list.

[0169] In step S724, the terminal sends a display authority change request to the server. The display authority change request carries the changed display authority.

[0170] In step S726, the server deletes the target comment information from the database corresponding to the display authority before the change, and updates the target comment information to the database corresponding to the display authority after the change.

[0171] In step S728, the server deletes the target comment information from the cache corresponding to the display authority before the change, and updates the target comment information to the cache corresponding to the display authority after the change.

[0172] In step S730, the server updates the cache visible only to the author.

[0173] Specifically, the cache expiration time corresponding to the display permission visible only to the author can be pre-configured. When the expiration time is reached, the server clears the cache corresponding to the visible only to the author. A certain amount of latest comment information is obtained from the database corresponding to the visible only to the author, and the obtained latest comment information is updated to the corresponding cache.

[0174] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0175] Figure 8 FIG. 8 is a block diagram of a comment information display device 800 according to an exemplary embodiment. Figure 8 The device includes a receiving module 802, a first obtaining module 804, a comment determining module 806 and a sending module 808.

[0176] The receiving module 802 is configured to receive a comment acquisition request sent by a target account to a target work displayed on a client; the first acquisition module 804 is configured to execute, in response to the comment acquisition request, obtaining candidate comment information from multiple caches corresponding to display permissions, wherein the cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account; the comment determination module 806 is configured to execute, according to the display permission of the candidate comment information, obtaining the comment information to be displayed visible to the target account from the candidate comment information. The sending module 808 is configured to execute sending the comment information to be displayed to the client, and the client is used to display the comment information to be displayed.

[0177] In an exemplary embodiment, the first acquisition module 804 includes: a first acquisition unit, configured to execute, based on a comment acquisition request, acquisition of the number of comments to be acquired corresponding to each cache; and a second acquisition unit, configured to execute acquisition of candidate comment information of the number of comments to be acquired from each cache.

[0178] In an exemplary embodiment, the comment determination module 806 includes: a sorting unit, configured to sort the candidate comment information according to a preset arrangement order; and a screening unit, configured to obtain the comment information to be displayed that is visible to the target account from the sorted candidate comment information according to the display authority of the candidate comment information.

[0179] In an exemplary embodiment, the device 800 also includes: a second acquisition module, configured to execute acquisition of target comment information of the target account for the target work, and the display rights of the target comment information to other accounts except the target account; a cache module, configured to execute caching the target comment information into a cache corresponding to the display rights of the target comment information.

[0180] In an exemplary embodiment, the device 800 also includes: a storage module, configured to execute storage of the target comment information in a database corresponding to the display authority of the target comment information, the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by caching from the database of the same display authority through the server.

[0181] In an exemplary embodiment, the device 800 also includes: a third acquisition module, configured to execute a display permission change request for obtaining comment information, the display permission change request carrying the changed display permissions of the comment information; a first cache update module, configured to execute a response to the display permission change request, delete the comment information from the cache corresponding to the display permissions before the change, and update the comment information to the cache corresponding to the display permissions after the change.

[0182] In an exemplary embodiment, the device 800 also includes: a database update module, which is configured to execute a response to a display permission change request, delete the comment information from the database corresponding to the display permission before the change, and store the comment information in the database corresponding to the display permission after the change; the database corresponding to the display permission is used to store the full amount of comment information under the display permission; the comment information in the cache is obtained by caching from the database of the same display permission through the server.

[0183] In an exemplary embodiment, the display permission includes restricted display permission, and the restricted display permission is used to indicate that the comment information is not visible to the target account; the device 800 also includes: a timed acquisition module, configured to execute timed acquisition of the latest comment information from a database corresponding to the restricted display permission, and the latest comment information is determined according to the release time of the comment information; a second cache update module, configured to execute the update of the latest comment information to the cache corresponding to the restricted display permission.

[0184] Fig. 9 FIG. 9 is a block diagram of a comment information display device 900 according to an exemplary embodiment. Fig. 9 The device includes a sending module 902, a receiving module 904 and a display module 906.

[0185] The sending module 902 is configured to execute a comment display operation in response to a comment display operation on a target work, and send a comment acquisition request to the server, where the comment acquisition request is used to request the server to obtain candidate comment information from multiple caches corresponding to display permissions, and obtain the comment information to be displayed that is visible to the target account from the candidate comment information according to the display permissions of the candidate comment information, wherein: the cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account; the receiving module 904 is configured to execute the comment information to be displayed sent by the receiving server; the display module 906 is configured to execute the display of the comment information to be displayed.

[0186] In an exemplary embodiment, the device 900 also includes: an acquisition module, which is configured to execute acquisition of target comment information of the target account for the target work, and the display rights of the target comment information to other accounts except the target account; a sending module 902, which is also configured to execute sending the target comment information and the display rights of the target comment information to the server, and the server is used to cache the target comment information in a cache corresponding to the display rights of the target comment information.

[0187] In an exemplary embodiment, the server is also used to store the target comment information in a database corresponding to the display authority of the target comment information, and the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by the server from the database of the same display authority.

[0188] In an exemplary embodiment, the acquisition module is configured to execute acquisition of target comment information; and in response to a display authority configuration operation on the target comment information, acquire the display authority of the target comment information.

[0189] In an exemplary embodiment, the acquisition module is further configured to execute a display permission change operation in response to the target comment information, and obtain the display permission of the changed target comment information; the sending module 902 is further configured to execute sending a display permission change request to the server, and the display permission change request is used to request the server to delete the target comment information from the cache corresponding to the display permission before the change, and update the target comment information to the cache corresponding to the display permission after the change.

[0190] In an exemplary embodiment, the display authority change request is also used to request the server to delete the target comment information from the database corresponding to the display authority before the change, and store the target comment information in the database corresponding to the display authority after the change; the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by the server from the database of the same display authority.

[0191] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0192] Fig.10 1 is a block diagram of a device 1000 for displaying comment information according to an exemplary embodiment. For example, the device 1000 may be a terminal device such as a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0193] Reference Fig.10 , device 1000 may include one or more of the following components: a processing component 1002 , a memory 1004 , a power component 1006 , a multimedia component 1008 , an audio component 1010 , an input / output (I / O) interface 1012 , a sensor component 1014 , and a communication component 1016 .

[0194] The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.

[0195] The memory 1004 is configured to store various types of data to support operations on the device 1000. Examples of such data include instructions for any application or method operating on the device 1000, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0196] The power supply component 1006 provides power to the various components of the device 1000. The power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.

[0197] The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the device 1000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0198] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the device 1000 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1016. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.

[0199] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0200] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, the sensor assembly 1014 can detect the open / closed state of the device 1000, the relative positioning of components, such as the display and keypad of the device 1000, and the sensor assembly 1014 can also detect the position change of the device 1000 or a component of the device 1000, the presence or absence of user contact with the device 1000, the orientation or acceleration / deceleration of the device 1000, and the temperature change of the device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0201] The communication component 1016 is configured to facilitate wired or wireless communication between the device 1000 and other devices. The device 1000 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0202] In an exemplary embodiment, the device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0203] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1020 of the device 1000 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0204] Fig.11 1 is a block diagram of a device 1100 for displaying comment information according to an exemplary embodiment. For example, the device 1100 may be a server. Fig.11 , the device 1100 includes a processing component 1120, which further includes one or more processors, and a memory resource represented by a memory 1122 for storing instructions executable by the processing component 1120, such as an application. The application stored in the memory 1122 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1120 is configured to execute instructions to perform the above-mentioned XXX method.

[0205] The device 1100 may also include a power component 1124 configured to perform power management of the device 1100, a wired or wireless network interface 1126 configured to connect the device 1100 to a network, and an input / output (I / O) interface 1128. The device 1100 may operate based on an operating system stored in the memory 1122, such as Windows Server, Mac OSX, Unix, Linux, FreeBSD, or the like.

[0206] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 1122 including instructions, which can be executed by a processor of the device 1100 to perform the above method. The storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0207] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0208] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.< / long>

Claims

1. A method for displaying comment information, characterized in that: include: Receive a comment acquisition request sent by a target account to a target work displayed on a client; According to the comment acquisition request, the number of comments to be acquired corresponding to each cache corresponding to the display permission is acquired, and candidate comment information of the number of comments to be acquired is acquired from each cache corresponding to the display permission, wherein the cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account; wherein the display permission includes at least one of the following: visible to all users, visible to some users, and visible only to the comment author; Obtaining, from the candidate comment information, comment information to be displayed that is visible to the target account according to the display permission of the candidate comment information; The comment information to be displayed is sent to the client, and the client is used to display the comment information to be displayed.

2. The method for displaying comment information according to claim 1, characterized in that: The obtaining, from the candidate comment information, the comment information to be displayed that is visible to the target account according to the display authority of the candidate comment information includes: Sorting the candidate review information according to a preset order; The to-be-displayed comment information visible to the target account is obtained from the sorted candidate comment information according to the display authority of the candidate comment information.

3. The method for displaying comment information according to claim 1 or 2, characterized in that: The method further comprises: Obtaining target comment information of the target account for the target work, and display rights of the target comment information to other accounts except the target account; The target comment information is cached in a cache corresponding to the display authority of the target comment information.

4. The method for displaying comment information according to claim 3, characterized in that: The method further comprises: The target review information is stored in a database corresponding to the display authority of the target review information, where the database corresponding to the display authority is used to store all the review information under the display authority; The comment information in the cache is obtained by caching from a database with the same display authority by the server.

5. The method for displaying comment information according to claim 1, characterized in that: The method further comprises: Obtaining a display permission change request for the comment information, wherein the display permission change request carries the changed display permission of the comment information; In response to the display authority change request, the comment information is deleted from the cache corresponding to the display authority before the change, and the comment information is updated to the cache corresponding to the display authority after the change.

6. The method for displaying comment information according to claim 5, characterized in that: The method further comprises: In response to the display permission change request, the comment information is deleted from the database corresponding to the display permission before the change, and the comment information is stored in the database corresponding to the display permission after the change; the database corresponding to the display permission is used to store all the comment information under the display permission; The comment information in the cache is obtained by caching from a database with the same display authority by the server.

7. The method for displaying comment information according to claim 1, characterized in that: The display permission includes a restricted display permission, and the restricted display permission is used to indicate that the comment information is not visible to the target account; the method further includes: Obtaining the latest comment information from the database corresponding to the restricted display permission at regular intervals, wherein the latest comment information is determined according to the release time of the comment information; The latest comment information is updated to a cache corresponding to the restricted display permission.

8. A method for displaying comment information, characterized in that: include: In response to a comment display operation on a target work, a comment acquisition request is sent to a server, wherein the comment acquisition request is used to request the server to obtain, according to the comment acquisition request, the number of comments to be obtained corresponding to each cache corresponding to the display permission, obtain candidate comment information of the number of comments to be obtained from each cache corresponding to the display permission, and obtain the comment information to be displayed visible to the target account from the candidate comment information according to the display permission of the candidate comment information, wherein: The cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account; wherein the display permission includes at least one of the following: visible to all users, visible to some users, and visible only to the comment author; Receiving the comment information to be displayed sent by the server; The comment information to be displayed is displayed.

9. The method for displaying comment information according to claim 8, characterized in that: The method further comprises: Obtaining target comment information of the target account for the target work, and display rights of the target comment information to other accounts except the target account; The target comment information and the display permission of the target comment information are sent to the server, and the server is used to cache the target comment information in a cache corresponding to the display permission of the target comment information.

10. The method for displaying comment information according to claim 9, characterized in that: The server is further used to store the target comment information in a database corresponding to the display authority of the target comment information, and the database corresponding to the display authority is used to store all the comment information under the display authority; The comment information in the cache is obtained by the server from a database with the same display authority.

11. The method for displaying comment information according to claim 9, characterized in that: The obtaining of target comment information of the target account for the target work, and the display permission of the target comment information to other accounts except the target account, includes: Obtain target comment information of the target account for the target work; In response to the display permission configuration operation on the target comment information, the display permission of the target comment information to other accounts except the target account is obtained.

12. The method for displaying comment information according to claim 9, characterized in that: The method further comprises: In response to a display permission change operation on the target comment information, obtaining a changed display permission of the target comment information; A display authority change request is sent to the server, wherein the display authority change request is used to request the server to delete the target comment information from a cache corresponding to the display authority before the change, and update the target comment information to a cache corresponding to the display authority after the change.

13. The method for displaying comment information according to claim 12, characterized in that: The display authority change request is also used to request the server to delete the target comment information from the database corresponding to the display authority before the change, and store the target comment information in the database corresponding to the display authority after the change; The database corresponding to the display authority is used to store all the comment information under the display authority; The comment information in the cache is obtained by caching from a database with the same display authority by the server.

14. A comment information display device, characterized in that: include: A receiving module is configured to execute and receive a comment acquisition request sent by a target account to a target work displayed on a client; The first acquisition module is configured to execute, in response to the comment acquisition request, acquiring candidate comment information from multiple caches corresponding to the display authority, wherein the cache corresponding to the display authority caches a number of comment information under the display authority, and the display authority is used to indicate the visibility level of the comment information to the target account; wherein the display authority includes at least one of the following: visible to all users, visible to some users, and visible only to the comment author; the first acquisition module comprises: a first acquisition unit, configured to execute, according to the comment acquisition request, acquiring the number of comments to be acquired corresponding to each cache corresponding to the display authority; a second acquisition unit, configured to execute acquiring candidate comment information of the number of comments to be acquired from each cache corresponding to the display authority; A comment determination module is configured to execute, according to the display authority of the candidate comment information, obtaining the comment information to be displayed that is visible to the target account from the candidate comment information. The sending module is configured to send the comment information to be displayed to the client, and the client is used to display the comment information to be displayed.

15. The comment information display device according to claim 14, characterized in that: The comment determination module comprises: A sorting unit, configured to sort the candidate comment information according to a preset arrangement order; The screening unit is configured to obtain the to-be-displayed comment information visible to the target account from the sorted candidate comment information according to the display authority of the candidate comment information.

16. The review information display device according to any one of claims 14 to 15, characterized in that: The device also includes: A second acquisition module is configured to execute acquisition of target comment information of the target account for the target work, and display rights of the target comment information to other accounts except the target account; The cache module is configured to cache the target comment information into a cache corresponding to the display permission of the target comment information.

17. The comment information display device according to claim 16, characterized in that: The device also includes: The storage module is configured to execute storage of the target comment information in a database corresponding to the display authority of the target comment information, wherein the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by caching from a database with the same display authority through a server.

18. The comment information display device according to claim 14, characterized in that: The device also includes: A third acquisition module is configured to execute and acquire a display permission change request for comment information, wherein the display permission change request carries the changed display permission of the comment information; The first cache update module is configured to execute, in response to the display authority change request, delete the comment information from the cache corresponding to the display authority before the change, and update the comment information to the cache corresponding to the display authority after the change.

19. The comment information display device according to claim 18, characterized in that: The device also includes: The database update module is configured to execute, in response to the display authority change request, deleting the comment information from the database corresponding to the display authority before the change, and storing the comment information in the database corresponding to the display authority after the change; the database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by caching from the database of the same display authority by the server.

20. The comment information display device according to claim 14, characterized in that: The display permission includes a restricted display permission, and the restricted display permission is used to indicate that the comment information is not visible to the target account; the device also includes: A timing acquisition module, configured to execute timing acquisition of the latest comment information from the database corresponding to the restricted display authority, wherein the latest comment information is determined according to the release time of the comment information; The second cache update module is configured to update the latest comment information to the cache corresponding to the restricted display permission.

21. A comment information display device, characterized in that: include: The sending module is configured to execute a comment display operation on a target work and send a comment acquisition request to a server, wherein the comment acquisition request is used to request the server to acquire the number of comments to be acquired corresponding to each cache corresponding to the display permission according to the comment acquisition request, acquire candidate comment information of the number of comments to be acquired from each cache corresponding to the display permission, and acquire the comment information to be displayed visible to the target account from the candidate comment information according to the display permission of the candidate comment information, wherein: The cache corresponding to the display permission caches a number of comment information under the display permission, and the display permission is used to indicate the visibility level of the comment information to the target account; wherein the display permission includes at least one of the following: visible to all users, visible to some users, and visible only to the comment author; A receiving module, configured to receive the comment information to be displayed sent by the server; The display module is configured to display the comment information to be displayed.

22. The comment information display device according to claim 21, characterized in that: The device further includes: an acquisition module configured to execute acquisition of target comment information of the target account for the target work, and display rights of the target comment information to other accounts except the target account; The sending module is further configured to send the target comment information and the display permission of the target comment information to the server, and the server is used to cache the target comment information in a cache corresponding to the display permission of the target comment information.

23. The comment information display device according to claim 22, characterized in that: The server is also used to store the target comment information in a database corresponding to the display authority of the target comment information, and the database corresponding to the display authority is used to store all the comment information under the display authority; the comment information in the cache is obtained by the server from the database with the same display authority.

24. The comment information display device according to claim 22, characterized in that: The acquisition module is configured to execute acquisition of target comment information of the target account for the target work; In response to the display permission configuration operation on the target comment information, the display permission of the target comment information to other accounts except the target account is obtained.

25. The comment information display device according to claim 22, characterized in that: The acquisition module is further configured to execute a display permission change operation on the target comment information to acquire the changed display permission of the target comment information; The sending module is further configured to execute sending a display permission change request to the server, wherein the display permission change request is used to request the server to delete the target comment information from the cache corresponding to the display permission before the change, and update the target comment information to the cache corresponding to the display permission after the change.

26. The comment information display device according to claim 25, characterized in that: The display authority change request is also used to request the server to delete the target comment information from the database corresponding to the display authority before the change, and store the target comment information in the database corresponding to the display authority after the change; The database corresponding to the display authority is used to store the full amount of comment information under the display authority; the comment information in the cache is obtained by the server from the database of the same display authority.

27. A server, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the comment information display method as described in any one of claims 1 to 7.

28. A terminal, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the comment information display method as described in any one of claims 8 to 13.

29. A review information display system, characterized in that: include: Includes the server as claimed in claim 27 and the terminal as claimed in claim 28.

30. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the comment information display method as described in any one of claims 1 to 7.

31. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a terminal, the terminal is enabled to execute the comment information display method according to any one of claims 8 to 13.

32. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the comment information display method according to any one of claims 1 to 7 is implemented.

33. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the comment information display method according to any one of claims 8 to 13 is implemented.