Session cleaning method and device, computer equipment and readable storage medium
A cleaning method and computer program technology, applied in the field of data processing, can solve the problems that session information cannot be cleaned up in time, affect the normal use of the robot, cannot guarantee the monitoring and cleaning of session information, etc., and achieve the effect of ensuring normal operation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025]A piece of session information can be a question-and-answer message for a user or a robot. Every time a piece of session information is generated, the session information will be stored in the corresponding database for the robot to answer questions raised by the user based on the previous session information. In the prior art, the session information is stored in the redis database, and the timing monitoring mechanism of redis is used to monitor whether the user ends the session. If it is detected that the user ends the session, all session information between the user and the robot is deleted from redis, but redis has Prioritize the feature of ensuring high performance and high availability. When the current performance of redis is poor, due to performance considerations, redis will suspend some processing mechanisms, making it impossible for redis to clean up every expired session, thus affecting the normal use of the robot. In order to overcome the above defects, the ...
Embodiment 2
[0064] Embodiment 2 of the present invention also provides a session cleaning device, which corresponds to the session cleaning method provided in Embodiment 1 above. The corresponding technical features and technical effects will not be described in detail in this embodiment. For details, reference may be made to the first embodiment above. specifically, Figure 4 A block diagram of the session cleaning device provided by Embodiment 2 of the present invention is shown. Such as Figure 4 As shown, the session cleaning device 400 includes an analysis module 401, a search module 402, a comparison module 403 and a deletion module 404, wherein:
[0065] The parsing module 401 is configured to parse out the session identifier and key value carried in the session cleanup message when receiving the session cleanup message sent by rocketmq, wherein the session cleanup message is monitored by the rocketmq to know that the current time satisfies Actively sent when the session expires...
Embodiment 3
[0075] Figure 5 A block diagram of a computer device suitable for implementing the session clearing method provided by Embodiment 3 of the present invention is shown. In this embodiment, the computer device 500 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or multiple A server cluster composed of servers), etc. Such as Figure 5 As shown, the computer device 500 in this embodiment at least includes but is not limited to: a memory 501 , a processor 502 , and a network interface 505 , which can be communicated with each other through a system bus. It should be pointed out that, Figure 5 Only computer device 500 is shown having components 501-505, but it should be understood that implementing all of the illustrated components is not a requirement and that more or fewer components may instead be implemented.
[0076] In this embodiment, the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


