Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Pending Publication Date: 2022-04-29
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the inventor found that: redis has the feature of giving priority to ensuring high performance and high availability, so redis cannot guarantee timely monitoring and cleaning of each expired session information, resulting in the failure of some user session information to be cleaned up in time, affecting the normal use of robot functions

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Session cleaning method and device, computer equipment and readable storage medium
  • Session cleaning method and device, computer equipment and readable storage medium
  • Session cleaning method and device, computer equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a session cleaning method, which comprises the following steps that: when a session cleaning message sent by a roketmq is received, a session identifier and a key value carried in the session cleaning message are analyzed, and the session cleaning message is actively sent when the roketmq monitors and knows that the current time meets the session expiration time; searching a target session identifier associated with the analyzed key value in a redis database; comparing whether the analyzed session identifier is consistent with the target session identifier; and if the key value is consistent with the analyzed key value, searching and deleting all session information associated with the analyzed key value in the redis database.

Description

technical field [0001] The present invention relates to the technical field of data processing, in particular to a session cleaning method, device, computer equipment and computer-readable storage medium. Background technique [0002] There will be some session information during the dialogue between the robot and the user, which includes the user's historical dialogue records. If the session information is not cleaned up in time after the user's round of session, it will affect the user's next session. Clear session information after ending a session. For example, if the user has not initiated a new conversation within 30 minutes after the conversation, it is considered that the user has ended the conversation, and the system can automatically clear the conversation information at this time. [0003] The session information cleaning mechanism in the prior art is: use the timing monitoring mechanism of redis to clean up the session. However, the inventor found that: redis ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04L67/143G06F16/215G06F16/23G06F11/30
CPCH04L67/143G06F16/215G06F16/2358G06F11/302G06F11/3051
Inventor 邓志宁
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN