CN108090079A - A kind of chat record processing method and processing device of instant messenger - Google Patents

A kind of chat record processing method and processing device of instant messenger Download PDF

Info

Publication number
CN108090079A
CN108090079A CN201611036740.6A CN201611036740A CN108090079A CN 108090079 A CN108090079 A CN 108090079A CN 201611036740 A CN201611036740 A CN 201611036740A CN 108090079 A CN108090079 A CN 108090079A
Authority
CN
China
Prior art keywords
chat record
user
history
caching
history chat
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611036740.6A
Other languages
Chinese (zh)
Other versions
CN108090079B (en
Inventor
徐苏杭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201611036740.6A priority Critical patent/CN108090079B/en
Priority to TW106127146A priority patent/TWI743163B/en
Priority to PCT/CN2017/110333 priority patent/WO2018095223A1/en
Publication of CN108090079A publication Critical patent/CN108090079A/en
Application granted granted Critical
Publication of CN108090079B publication Critical patent/CN108090079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides a kind of chat record processing method and processing device of instant messenger, the described method includes:In response to obtaining the request of the history chat record between active user and specific user, the history chat record between active user and specific user is read from caching;Wherein, the history chat record read in advance from local storage space and the history chat record for being stored directly in the caching are preserved in the caching;Show the history chat record between the active user and specific user.The embodiment of the present invention can quickly read history chat record from caching, reduce the consumption of disk resource, improve the efficiency for obtaining chat record.

Description

A kind of chat record processing method and processing device of instant messenger
Technical field
The present embodiments relate to field of computer technology, and in particular to a kind of chat record processing of instant messenger Method and device.
Background technology
Instant messenger (English full name be Instant Messaging, English abbreviation IM) be one kind can with The application program of instant message is transferred between family, user can be facilitated to be exchanged.In the prior art, user can be by instant Chat tool receives new information and checks history chat record.For example, user " can be looked by roll screen or click See more message " option triggering history chat record display.In the prior art, the chat record between user and other users Usually stored in local disk.History is read when user needs to check history chat record and from local disk Chat record.It is read when reading chat record every time due to the prior art from local disk, not only results in disk resource Consumption, and from disk read data exist time-consuming, can not quickly show the defects of chat record in time.
The content of the invention
It, can be from caching an embodiment of the present invention provides a kind of chat record processing method and processing device of instant messenger In quickly read history chat record, reduce the consumption of disk resource, improve obtain chat record efficiency.
For this purpose, the embodiment of the present invention provides following technical solution:
In a first aspect, an embodiment of the present invention provides a kind of chat record processing method of instant messenger, including:It rings Active user and specific use should be read from caching in the request for obtaining the history chat record between active user and specific user History chat record between family;Wherein, the history chat note read in advance from local storage space is preserved in the caching Record and be stored directly in the history chat record of the caching;Show the history chat between the active user and specific user Record.
In some embodiments, the history chat record bag read from caching between active user and specific user It includes:Judge whether to read the history chat record between the active user and specific user from local storage space;If judge As a result it is yes, the history chat record between active user and specific user is read from caching.
In some embodiments, the method further includes:If judging result is no, from described in local storage space reading History chat record between active user and specific user, by the storage of the chat record of reading in the buffer, record from Local storage space read the history chat record between the active user and specific user.
In some embodiments, the method further includes:When determining to meet trigger condition, in advance from sky is locally stored Between the middle history chat record read between active user and specific user, the chat record of reading is preserved in the buffer.
In some embodiments, it is described to determine that meeting trigger condition includes:It is sent to currently when receiving specific user During the instant message of user, determine to meet trigger condition;Alternatively, trigger display active user and specific user when receiving user Chat window operation when, determine to meet trigger condition.
In some embodiments, the method further includes:When the definite history chat record includes picture, according to The mark of the picture judges whether be stored with picture corresponding with the mark of the picture in caching;If the determination result is YES, Picture corresponding with the picture identification is obtained from caching.
In some embodiments, the method further includes:If judging result is no, institute is obtained from local storage space Picture is stated, stores the picture and picture and the correspondence of picture identification in the buffer.
In some embodiments, the method further includes:When preserving the access that history chat record is obtained from caching Between;When a triggering condition is met, least recently used history chat record is determined according to the access time, is deleted from caching Except the history chat record.
In some embodiments, the method further includes:It is instant when receiving specific user to active user and sending During message, whether the quantity or capacity that judge the instant message are less than given threshold;If the determination result is YES, send and obtain The request of history chat record between active user and specific user.
In some embodiments, the displaying history chat record includes:It is described immediately that display is triggered in response to user The instant message is merged display by the request of message with the history chat record.
In some embodiments, the history chat record bag read from caching between active user and specific user It includes:The partial history chat record for meeting specified conditions between active user and specific user is read from caching;The specific item Part includes meeting specific time condition, locality condition or the history chat record for meeting particular keywords;The displaying History chat record between the active user and specific user includes:Show the partial history chat record, wherein, it is described Do not have between each chat record in partial history chat record Time Continuous relation or the history chat record with The chat record that current instant messenger is shown recently does not have Time Continuous relation.
In some embodiments, the history chat record bag read from caching between active user and specific user It includes:
Judge the history chat record in caching between the active user and specific user that store quantity or capacity whether More than given threshold;If the determination result is YES, quantity or the capacity history equal with given threshold are read directly from caching Chat record;If being judged as NO, partial history chat record is read from local storage space, and is stored into caching so that The quantity or capacity of history chat record in caching are more than or equal to given threshold.
Second aspect, an embodiment of the present invention provides a kind of chat record processing method of instant messenger, including:It connects Receive the operation that user triggers the first control;The operation of the first control is triggered in response to user, shows active user and specific user Between at least part history chat record;Wherein, between each chat record at least part history chat record not The chat shown recently with current instant messenger with Time Continuous relation or at least part history chat record Do not have Time Continuous relation between record.
In some embodiments, the method further includes:Receive the operation that user triggers the second control;In response to user The operation of the second control is triggered, shows at least part history chat record between active user and specific user;Wherein, it is described extremely Between each chat record in small part history chat record there is Time Continuous relation or at least part history to chat There is Time Continuous relation between the chat record that its record and current instant messenger are shown recently.
In some embodiments, display active user and specific user between at least part history chat record it Before, the method further includes:At least part history chat record before being read from caching between user and specific user;Wherein, The history chat record read in advance from local storage space is preserved in the caching and is stored directly in the caching History chat record.
The third aspect, an embodiment of the present invention provides a kind of chat record processing unit of instant messenger, including:It obtains Unit is taken, for the request in response to obtaining the history chat record between active user and specific user, reads and works as from caching History chat record between preceding user and specific user;Wherein, preserve in the caching and read in advance from local storage space The history chat record that takes and the history chat record for being stored directly in the caching;Display unit, for showing described go through History chat record.
In some embodiments, the acquiring unit includes:First judging unit, for judging whether from being locally stored Read the history chat record between the active user and specific user in space;First reading unit, if for judge from When local storage space read the history chat record between the active user and specific user, current use is read from caching History chat record between family and specific user.
In some embodiments, described device further includes:Second reading unit, if for judging not from sky is locally stored Between when reading the history chat record between the active user and specific user, read the current use from local storage space History chat record between family and specific user;First storage unit, for the chat record read to be stored in caching In, record had read the history chat record between the active user and specific user from local storage space.
In some embodiments, described device further includes:3rd reading unit determines to meet trigger condition for working as When, the history chat record between active user and specific user is read from local storage space in advance;Second storage unit is used It is preserved in the buffer in the chat record that will be read.
In some embodiments, described device further includes:Second judgment unit, for when the definite history chat note When record is comprising picture, judge whether be stored with figure corresponding with the mark of the picture in caching according to the mark of the picture Piece;4th reading unit, for if the determination result is YES, picture corresponding with the picture identification being obtained from caching.5th Reading unit if being no for judging result, obtains the picture from local storage space;3rd storage unit, for The picture and picture and the correspondence of picture identification are stored in caching.
In some embodiments, described device further includes:4th storage unit obtains history for preserving from caching The access time of chat record;Unit is deleted, for when a triggering condition is met, being determined according to the access time minimum recently The history chat record used is removed from the cache the history chat record.
In some embodiments, described device further includes:Transmitting element receives specific user to current use for working as During the instant message that family is sent, whether the quantity or capacity that judge the instant message are less than given threshold;If judging result It is yes, sends the request for obtaining the history chat record between active user and specific user.
In some embodiments, the display unit is specifically used for:It is triggered in response to user and shows the instant message Request, the instant message is merged into display with the history chat record.
In some embodiments, the acquiring unit includes:3rd judging unit is worked as judge to store in caching Whether the quantity or capacity of the history chat record between preceding user and specific user are more than given threshold;6th reading unit, For if the determination result is YES, quantity or the capacity history chat record equal with given threshold are read directly from caching; 7th reading unit for reading partial history chat record from local storage space, and is stored into caching so that caching In history chat record quantity or capacity be more than or equal to given threshold.
Fourth aspect, the embodiment of the present invention additionally provide a kind of chat record processing unit of instant messenger, including: Receiving unit, for receiving the operation that user triggers the first control;Display unit, for the behaviour of the first control should to be triggered in user Make, show at least part history chat record between active user and specific user;Wherein, at least part history chat note Do not have Time Continuous relation or at least part history chat record between each chat record in record is with current When the chat record that shows recently of chat tool between do not have Time Continuous relation.
5th aspect, the embodiment of the present invention additionally provide the dress that a kind of chat record for instant messenger is handled Put, include memory and one either more than one program one of them or more than one program storage in storage In device, and be configured to by one or more than one processor perform the one or more programs include for into The instruction of the following operation of row:In response to obtaining the request of the history chat record between active user and specific user, from caching Read the history chat record between active user and specific user;Wherein, preserved in the caching in advance from sky is locally stored Between middle reading history chat record and be stored directly in the history chat record of the caching;Show the active user with History chat record between specific user.
6th aspect, the embodiment of the present invention additionally provide the dress that a kind of chat record for instant messenger is handled Put, include memory and one either more than one program one of them or more than one program storage in storage In device, and be configured to by one or more than one processor perform the one or more programs include for into The instruction of the following operation of row:Receive the operation that user triggers the first control;The operation of the first control, display are triggered in response to user At least part history chat record between active user and specific user;Wherein, at least part history chat record Do not have Time Continuous relation or at least part history chat record and current instant chat between each chat record Do not have Time Continuous relation between the chat record that instrument is shown recently.
The chat record processing method and processing device of instant messenger provided in an embodiment of the present invention, can be in advance from local The history chat record between active user and specific user is read in memory space, and is saved it in caching, when receiving When obtaining the request of the history chat record between active user and specific user, history chat record is read directly from caching, Substantially increase the speed for obtaining chat record.Further, since only needing to read a data from disk, and store it in It is accessed in caching for user, reduces the loss to disk, improve data processing and response speed.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in invention, for those of ordinary skill in the art, without creative efforts, It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the adaptable illustrative application scene of the embodiment of the present application;
Fig. 2 is the chat record process flow figure for the instant messenger that one embodiment of the invention provides;
Fig. 3 is the chat record process flow figure for the instant messenger that another embodiment of the present invention provides;
Fig. 4 is the chat record process flow figure for the instant messenger that yet another embodiment of the invention provides;
Fig. 5 is the chat record process flow figure for the instant messenger that further embodiment of this invention provides;
Fig. 6 A, Fig. 6 B, the effect diagram that Fig. 6 C are the embodiment of the present invention;
Fig. 7 is the chat record processing unit schematic diagram for the instant messenger that one embodiment of the invention provides;
Fig. 8 is the chat record processing unit schematic diagram for the instant messenger that another embodiment of the present invention provides
Fig. 9 is according to a kind of chat record processing unit for instant messenger shown in an exemplary embodiment Schematic diagram.
Specific embodiment
It, can be from caching an embodiment of the present invention provides a kind of chat record processing method and processing device of instant messenger In quickly read history chat record, reduce the consumption of disk resource, improve obtain chat record efficiency.
In order to which those skilled in the art is made to more fully understand the technical solution in the present invention, below in conjunction with of the invention real The attached drawing in example is applied, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described implementation Example is only part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's all other embodiments obtained without making creative work, should all belong to protection of the present invention Scope.
Referring to Fig. 1, for the exemplary application scene of the embodiment of the present application.Method and apparatus provided by the embodiments of the present application can To be applied to scene as shown in Figure 1, wherein, instant messenger can be shown in display interface 100 from active user from The new information 103,104 that specific user receives can also show message 101, message 102 in history chat record simultaneously.Its In, method and apparatus provided by the embodiments of the present application can read the history between active user and specific user from caching 200 Chat record improves the acquisition speed of data, reduces the loss to local disk.It should be noted that above application scene is only It is to be shown for the ease of understanding the application, presently filed embodiment is unrestricted in this regard.On the contrary, the application Embodiment can be applied to applicable any scene.
It should be noted that generally refer to can be at two or more for technical term " instant messenger " of the present invention The application program of instant message, such as Ali Wang Wang, QQ, wechat, MSN etc. are transferred between name user.
Technical term " active user " of the present invention generally refers to log in current instant messenger client and work as The corresponding user of account of preceding instant messenger client, " specific user " refer to carry out the another of instant messaging with active user One user.For example, active user is user A, specific user can use the another of instant messenger chat with it User B.
Technical term " history chat record " of the present invention generally refers to the chat record that user checked, " new to be When message " either " do not read instant message " and generally refer to another user sends, active user do not check or read it is instant Message.
Technical term " caching " (cache) of the present invention generally refers to be stored in can carry out at a high speed in computing device The memory of data exchange is generally different from the memories such as disk.
The English full name of technical term " LRU " of the present invention is Least Recently Used, and Chinese full name is most Nearly minimum use.
Technical term " picture identification " of the present invention refers to the unique ID of picture.In embodiments of the present invention, The MD5 values of image content can be used to identify picture using Image ID in chat record as Image ID.
The English full name of technical term " MD5 " of the present invention is Message Digest Algorithm 5, Chinese Full name is message digest algorithm 5, and can be referred to as digest algorithm, hash algorithm, is that one kind ensures that information transmission is complete consistent Hash algorithm.
Certainly, terms above is only indicative explaination, is not intended as limitation of the present invention.
The chat of the instant messenger shown in exemplary embodiment of the present is remembered below in conjunction with attached drawing 2 to attached drawing 6 Record processing method is introduced.
Referring to Fig. 2, for the chat record process flow figure for the instant messenger that one embodiment of the invention provides.Such as Shown in Fig. 2, it can include:
S201 in response to obtaining the request of the history chat record between active user and specific user, is read from caching History chat record between active user and specific user.
In some embodiments, the request of the history chat record between the acquisition active user and specific user is specific It can be the request for the history chat record that triggering is shown between active user and specific user.For example, it " is shown when user clicks on Show more message " either " obtain history chat record " when controls or button, then have sent triggering show active user with The request of history chat record between specific user.Again for example, when user is in the chat window of active user and specific user In mouthful, when scrolling down through screen using mouse, triggering can also be sent and show that the history between active user and specific user is chatted The request of record.It is shown it should be noted that user can send triggering by a variety of operations between active user and specific user History chat record request, specific implementation can be flexile, be not limited herein.
In some embodiments, the request for obtaining the history chat record between active user and specific user may be used also To be that triggering shows the request for not reading instant message between active user and specific user.For example, when user passes through opening With the operation of the chat window of specific user in chat tool, triggering display is not when reading instant message, it may be determined that has sent and obtains Take the request of the history chat record between active user and specific user.Again for example, if user closes and specific user Chat window, when receiving specific user and being sent to the instant message sent to active user, instant messenger can be with Display reminding information prompts user that there are unread messages.It does not read to disappear described in display to trigger when user clicks on the prompting message During breath, it may be determined that have sent the request for obtaining the history chat record between active user and specific user.It should be noted that In some embodiments, receive triggering show between active user and specific user do not read the request of instant message after, It can also judge whether the quantity for not reading instant message or capacity are less than given threshold;If the determination result is YES, then really It is fixed to send the request for obtaining the history chat record between active user and specific user.Wherein, the given threshold can basis It needs to set, such as the given threshold can be that the display interface of instant messenger shows the quantity or capacity of message The upper limit.Wherein, the capacity of message can refer to the number of words of the information that message includes, line number or take up space.For example, It, can be with when receiving user B and being sent to the new information of user A assuming that active user A closes the chat window with user B Whether the quantity or capacity for judging new information are more than the upper limit that display interface shows message;If judging result is no, obtain History chat record so that new information is merged displaying with history chat record, facilitates user rapidly to obtain contextual information, User is facilitated to exchange.
In some embodiments, the request for obtaining the history chat record between active user and specific user may be used also Be receive specific user be sent to active user send instant message and judge the instant message quantity or When capacity is less than given threshold, then the request for obtaining the history chat record between active user and specific user is sent.It illustrates It is bright, history chat record is obtained different from triggering the request of display unread message in response to user, in this embodiment, When being when getting new unread message and judging that the message meets preset condition, then trigger and obtain asking for history chat record It asks.
In some embodiments, the history chat record bag read from caching between active user and specific user It includes:Judge whether to read the history chat record between the active user and specific user from local storage space;If judge As a result it is yes, the history chat record between active user and specific user is read from caching.Further, the method is also wrapped It includes:If judging result is no, the history chat record between the active user and specific user is read from local storage space, it will In the buffer, record read the active user and specific use from local storage space for the chat record storage read History chat record between family.For example, when receiving the request for obtaining history chat record, it can be determined that whether from originally The chat record was read in ground memory space.For example, mark can be set whether chat was read for distinguishing from local Record.If being judged to read the chat record from local storage space according to the mark of setting, directly read from caching Chat record.It, can be from being locally stored if not reading chat record from local storage space according to the judgement of the mark of setting It reads chat record and is stored in caching in space.Further, mark is set for showing from local storage space Read chat record.When receiving the request for obtaining chat record again, then chat note can be obtained directly from caching Record.Due to only mark not from local storage space read chat record when access local storage space, other scenes from Chat record is read in caching, the speed for obtaining chat record is substantially increased, and reduces the loss to local storage space.
In some embodiments, the method further includes:When determining to meet trigger condition, in advance from sky is locally stored Between the middle history chat record read between active user and specific user, the chat record of reading is preserved in the buffer. In this realization method, history chat record can be read from local storage space in advance, and is saved it in caching. When receiving the request for obtaining chat record, chat record is obtained from caching every time.Wherein, history chat is obtained in advance The opportunity of record can meet trigger condition, and specific trigger condition can be very flexible, as long as it is obtained receiving Before taking chat record request, history chat record is disposably obtained from local storage space.It is received for example, working as When specific user is sent to the instant message of active user, it may be determined that meet trigger condition.Again use is received for example, working as When family triggering shows the operation of chat window of active user and specific user, determine to meet trigger condition.Certainly these are only Exemplary illustration, specific trigger condition can be flexile, as long as before acquisition chat record request is received, History chat record is disposably obtained from local storage space.
In some embodiments, the history chat record bag read from caching between active user and specific user It includes:Judge the quantity of the history chat record in caching between the active user and specific user that store or whether capacity is more than and sets Determine threshold value;If the determination result is YES, directly from caching read quantity or capacity it is equal with given threshold history chat remember Record;If being judged as NO, partial history chat record is read from local storage space, and is stored into caching so that in caching History chat record quantity or capacity be more than or equal to given threshold.For example, it " is checked more when user clicks on It is more " when, N history message of loading can be triggered.Wherein, the setting of N can carry out as needed.At this moment, chat sessions are found Uppermost a piece of news (generally apart from the longest a piece of news of current time), then using this message as border, postpone N history message record is read in depositing forward.Specifically, if history message record is enough in caching, i.e., more than or equal to N, The history chat record of reading is directly then shown to the top of chat sessions.If judge the history message preserved in caching note Record is less than N items, it is assumed that message is M items in qualified caching, from local historical record, is remembered with a piece of news in caching It records as border, forward reading (N-M) item, and being stored in caching.Then, the uppermost a piece of news of chat sessions is found, so Afterwards using this message as border, read N Message Record forward from caching and show.
In some embodiments, the method further includes:When the definite history chat record includes picture, according to The mark of the picture judges whether be stored with picture corresponding with the mark of the picture in caching;If the determination result is YES, Picture corresponding with the picture identification is obtained from caching.Further, if judging result is no, from local storage space The picture is obtained, stores the picture and picture and the correspondence of picture identification in the buffer.For example, in this hair During bright specific implementation, when preserving chat record, if the chat record includes picture, picture is only preserved in chat record Mark, for identifying picture.Further, the present invention can set image cache, for storing the corresponding picture of Image ID Data.When obtaining history chat record, if judging, the chat record includes picture, such as chat record includes Image ID When, then it can judge picture corresponding with the Image ID whether is stored in image cache according to Image ID;If judging result It is yes, then directly acquires image content and be shown, thus substantially increase the speed for obtaining picture, without every time from this Ground memory space downloads the picture.If being not present, the picture is read from local storage space, and saves it in picture In caching.Since the picture in the chat record of instant messenger is often what is repeated, such as various expression pictures, therefore, It only needs to preserve picture and the correspondence of picture identification and picture in image cache, you can to obtain identical picture When, the picture is directly read from caching, and the picture of identical picture identification only preserves once in the buffer, reduces and deposits Store up the waste in space.Wherein, the mark of picture can be obtained by obtaining the MD5 values of picture.It should be noted that by above-mentioned Processing can individually improve the acquisition of pictorial information and displaying speed, without reading picture from local disk every time.
S202 shows the history chat record between the active user and specific user.
It should be noted that during specific implementation, history chat record can individually be shown.Can also be with not reading by it Instant message merges displaying.For example, the request for showing the instant message can be triggered in response to user, by the instant message Merge display with the history chat record.
In some embodiments, the method further includes:When preserving the access that history chat record is obtained from caching Between;When a triggering condition is met, least recently used history chat record is determined according to the access time, is deleted from caching Except the history chat record.For example, when if the chat record of active user is more, the chat stored in caching can be caused Record and picture are more, occupy calculator memory, in order to reduce EMS memory occupation, can be identified current in each access cache User obtains the access time of the chat record of specific user;And it can trigger and judge current cache data whether on caching There is no new information is not read in limit and the caching, if so, determining least recently used chat according to the access time Record, is removed from the cache the chat record.The least recently used chat record can be that access time distance is worked as The preceding time is more than the record of given threshold or the minimum chat record of access times in preset time.By above-mentioned Processing can effectively reduce EMS memory occupation, reduce memory overhead.
In some embodiments, the history chat record bag read from caching between active user and specific user It includes:The partial history chat record for meeting specified conditions between active user and specific user is read from caching;The specific item Part includes meeting specific time condition, locality condition or the history chat record for meeting particular keywords;The displaying History chat record between the active user and specific user includes:Show the partial history chat record, wherein, it is described Do not have between each chat record in partial history chat record Time Continuous relation or the history chat record with The chat record that current instant messenger is shown recently does not have Time Continuous relation.During specific implementation, substitution obtains current Whole chat records and in a manner that time order and function order continuously shows chat record between user and specific user, can only obtain It takes and shows the partial history chat record for meeting specified conditions.For example, the history for for example meeting specific time condition is chatted Its record.Assuming that current time is Friday, active user A is being chatted with specific user B by instant messenger.User B It mentions:" how about it for the thing processing that we mention Tuesday ", at this moment user A probably wants to look at that the chat of Tuesday is remembered At this moment record " Tuesday " can will be determined as keyword, Tuesday corresponding history chat record is obtained only from caching, and is being chatted The chat record of Tuesday is shown in interface.In this way, the nearest chat record (week of chat record and the current window displaying of Tuesday Five) do not have Time Continuous relation.Mode in this way can not only obtain less data, but also facilitate user straight It sees ground and checks interested content, without in substantial amounts of chat record (such as in this continuous time of Friday to Tuesday section All chat records) in search interested content.Again for example, the chat record, which can also be, meets locality item The chat record of part.Assuming that active user, which frequently goes on business to change, logs in place, can also be obtained according to the input of user specific The chat record in place.Again for example, the partial history chat record can also be and the matched chat of particular keywords Record.Wherein, it can be that exactly match can also be part matching when to Keywords matching, can be that accurate matching can also It is fuzzy matching.Further, it can also use machine learning algorithm and carry out artificial intelligence Auto-matching.For example, user B " may I ask how XX matters are handled " is mentioned, keyword " XX " at this moment can be determined, find matching chat record.If For keyword " XX ", there are a plurality of chat records, can be merged display.Such as current time is Friday, respectively in week 2nd, Wednesday all there are associated chat record, then can show Wednesday, the chat record of Tuesday with the inverted order of time.This When, do not have Time Continuous relation between each chat record in the partial history chat record of displaying.
Be more clearly understood that embodiment of the application under concrete scene for the ease of those skilled in the art, below with The application embodiment is introduced in two specific examples.It should be noted that the specific example is only so that this field skill Art personnel more clearly understand the present invention, but embodiments of the present invention are not limited to the specific example.
Referring to Fig. 3, for the chat record process flow figure for the instant messenger that another embodiment of the present invention provides. As shown in figure 3, it can include:
S301, instant messenger receive the new information that specific user is sent to active user.
It illustrates, it is assumed that user A receives the new information of user B transmissions after instant messenger login.
S302, instant messenger preserve the new information in the buffer and in local disk file.
It should be noted that new information can preserve in the buffer relatively behind storage location, and labeled as new information, together When save it in local disk file.The history message read from local disk file be stored in caching compared with front Storage location.
S303 triggers the request for showing new information in response to user, the new information is read from the caching, judges institute Whether the quantity or capacity for stating new information are less than given threshold;If the determination result is YES, S304 is performed;If judging result is It is no, it directly shows the new information, and the message preservation of displaying is the corresponding history chat note of the specific user In record caching.
S304, according to the access identities of setting judge whether from local storage space read the active user with it is specific History chat record between user.If the determination result is YES, S305 is performed;If judging result is no, S306 is performed;
S305 reads the history chat record of active user and specific user from caching, then performs S307.
It should be noted that caching in save in advance from local disk file read history chat record and directly The history chat record of storage in the buffer, such as the new information shown in S303, the new information was checked in user Afterwards, you can preserved with the message that will be shown in the corresponding history chat record caching of the specific user.
S306 reads history chat record corresponding with the specific user, by the chat from local disk file Record storage sets access identities into caching, for showing to read the active user and spy from local storage space Determine the history chat record between user, then perform S307.
The new information is merged displaying by S307 with the history chat record.
It, can also be by history chat record one while being that user shows new information when the present invention implements Play display.When the chat sessions that user opens are more, contextual information can be easily known.Due to can from caching it is straight It connects and reads history chat record, substantially increase the speed for obtaining chat record and the efficiency for showing message, brought for user More preferable experience.
Referring to Fig. 4, for the chat record process flow figure for the instant messenger that yet another embodiment of the invention provides. As shown in figure 4, it can include:
S401, instant messenger receive the new information that specific user is sent to active user.
It illustrates, it is assumed that user A receives the new information of user B transmissions after instant messenger login.
S402, instant messenger preserve the new information in the buffer and in local disk file.
It should be noted that new information can preserve in the buffer relatively behind storage location, and labeled as new information, together When save it in local disk file.The history message read from local disk file be stored in caching compared with front Storage location.
S403 triggers the request for showing new information in response to user, the new information is read from the caching, and is shown The new information.
For example, when user A opens the chat sessions with user B, it can be in response to the trigger action, from caching In find the caching of user A and user's B chat messages, read labeled as the data cached of new information, and remove new from caching Message marks.Then, the new information of reading is shown in the bottom of current chat session.
S404 triggers the request for obtaining history chat record in response to user, judges the history preserved in caching chat note Whether the quantity or capacity of record are more than N.If the determination result is YES, S405 is performed;If judging result is no, S406 is performed.
S405, reads quantity directly from caching or capacity is equal to the history chat record of N.
S406 reads partial history chat record from local disk file and preserves in the buffer so that in caching Either capacity is more than the history chat record that N reads quantity from caching or capacity is equal to N to the quantity of history chat record.
For example, when user clicks on " checking more ", N history message of loading can be triggered.Wherein, the setting of N It can carry out as needed.At this moment, uppermost a piece of news in current sessions window is found, i.e., is shown in current sessions window , farthest apart from current time a piece of news, using this message as border, read N history message note forward from caching Record.If judging, the history message preserved in caching record is more than N items, directly displays N historical record of reading.If judge slow The history message record for depositing middle preservation is less than N items, such as the history message preserved in current cache is M items, then in caching the A piece of news is recorded as border (such as the record farthest apart from current time preserved in caching), from local history message In record, boundary is recorded as with one apart from current time farthest preserved in caching, reads (N-M) Message Record forward, And it is stored into caching.Then, using the top a piece of news of current sessions window displaying as boundary, read forward from caching Take N Message Record.
S407 shows the N history chat record obtained from caching.
Referring to Fig. 5, for the chat record process flow figure for the instant messenger that further embodiment of this invention provides. As shown in figure 5, it can include:
S501 receives the operation that user triggers the first control.
S502 triggers the operation of the first control in response to user, shows at least part between active user and specific user History chat record;Wherein, do not have Time Continuous between each chat record at least part history chat record Do not have between the chat record that relation or at least part history chat record and current instant messenger are shown recently Having time serial relation.
In some embodiments, the method further includes:Receive the operation that user triggers the second control;In response to user The operation of the second control is triggered, shows at least part history chat record between active user and specific user;Wherein, it is described extremely Between each chat record in small part history chat record there is Time Continuous relation or at least part history to chat There is Time Continuous relation between the chat record that its record and current instant messenger are shown recently.Further, aobvious Before showing at least part history chat record between active user and specific user, the method further includes:It is read from caching At least part history chat record between preceding user and specific user;Wherein, preserved in the caching in advance from being locally stored The history chat record that is read in space and the history chat record for being stored directly in the caching.
In embodiments of the present invention, it can substitute and obtain user's whole chat record in the prior art and according to time order and function The mode of the continuous displaying chat record of order, can only obtain and show the partial history chat record for meeting specified conditions, institute Do not have Time Continuous relation or at least part history between each chat record in the history chat record of displaying Do not have Time Continuous relation between the chat record that chat record and current instant messenger are shown recently, to facilitate user Obtain particular chat record.Due to only fetching portion history chat record, obtain that data volume is few, and reading speed is fast, and significantly The efficiency that user obtains information is improved, improves user experience.
Concrete implementation mode is described in detail below.
During specific implementation, the second control and the first control can be shown in the user interface of instant messenger.Wherein, Second control is used in response at least part history chat record between the triggering displaying active user of user and specific user, institute Stating between each chat record at least part history chat record has Time Continuous relation or history chat note Record has Time Continuous relation with the chat record that current instant messenger is shown recently.First control be used in response to Meet at least part history chat record of specified conditions, the part between the triggering displaying active user of user and specific user Without Time Continuous relation or the history chat record and currently between each chat record in history chat record Do not have Time Continuous relation between the chat record that instant messenger is shown recently
For example, the second control can be the nearest N chat record of display or the whole history chat records of display, the One control can be the related chat record of display.For example, if user wants to see the history chat record of Time Continuous, such as Tuesday During to chat record between Friday, the second control can be clicked on.It, can be with if user wants to check the relevant chat record in part Trigger the first control.Specifically it may refer to Fig. 6 A.
It should be strongly noted that in response to user trigger the first control operation, from caching read active user with The partial history chat record for meeting specified conditions between specific user can be the partial history chat record for meeting specified conditions. The specified conditions include meeting specific time condition, locality condition or the history chat note for meeting particular keywords Record.During specific implementation, substitution obtains between active user and specific user whole chat records and continuous according to time order and function order It shows the mode of chat record, can only obtain and show the partial history chat record for meeting specified conditions.For example, example Such as meet the history chat record of specific time condition.Assuming that current time is Friday, active user A and specific user B is It is chatted by instant messenger.User B is mentioned:" thing that we mention Tuesday processing how about it ", at this moment user A is very It is possible that wanting to look at the chat record of Tuesday, it at this moment " Tuesday " can will be determined as keyword, Tuesday is only obtained from caching Corresponding history chat record, and in chat interface show Tuesday chat record.In this way, the chat record of Tuesday and current The nearest chat record (Friday) of window displaying does not have Time Continuous relation.Mode in this way can not only obtain Less data, and user is facilitated intuitively to check interested content, without in substantial amounts of chat record (such as Friday All chat records to this continuous time of Tuesday section) in search interested content.Again for example, the chat note Record can also be the chat record for meeting locality condition.Assuming that active user, which frequently goes on business to change, logs in place, also may be used To obtain the chat record of locality according to the input of user.Again for example, the partial history chat record can be with It is and the matched chat record of particular keywords.Wherein, can be that exactly match can also be part when to Keywords matching Matching can be that accurate matching can also be fuzzy matching.Further, it can also use machine learning algorithm and carry out artificial intelligence It can Auto-matching.For example, user B mentions " may I ask how XX matters are handled ", it at this moment can determine keyword " XX ", look into Find matching chat record.If for keyword " XX ", there are a plurality of chat records, can be merged display.Example If current time is Friday, can then be opened up respectively in Tuesday, Wednesday all there are associated chat record with the inverted order of time Show the chat record of Wednesday, Tuesday.At this moment, do not have between each chat record in the partial history chat record of displaying Having time serial relation.
In this embodiment of the invention, multiple controls can be shown in the user interface, control is touched according to user Hair operation, into different display patterns.A kind of display pattern is that all or part of chat is shown in the way of Time Continuous Its record.A kind of display pattern is according to non-temporal continuous mode exposition chat record.It is this referring to Fig. 6 B and Fig. 6 C The effect diagram of inventive embodiments.Fig. 6 B are the display mode of Time Continuous, and Fig. 6 C are non-temporal continuous display mode, In, dotted line is used to separate new chat record and history chat record.It illustrates, it is assumed that active user A is passing through with user B Instant messenger is chatted, and the chat record currently shown recently is new information 103 and 104, and the generated time of message 104 is 31 divide during 8 days 9 January in 2016, and 28 divide when the generated time of message 103 is 8 days 9 January in 2016.During specific implementation, Ke Yi The second control 105, such as the control of the whole chat records of display are shown on the display interface of instant messenger;And displaying First control 106, such as the control of the related chat record of display.
Referring to Fig. 6 B, if user triggers the second control 105, it will user A and user B's at one before being read from caching History chat record in continuous time section, and each chat record is shown successively according to time order and function order.As shown in Figure 6B, such as User triggers the second control, except displaying message 103 and message 104, also further displaying history chat record message 101, 102……107.Wherein, the generated time of message 101,102,107 is continuous that obtain is that user is past in current time Preceding to trace the chat record continuously generated, displaying is also what is shown successively sequentially in time.The display mode of corresponding diagram 6B, if User wants to check Tuesday the chat record in (i.e. on January 4th, 2016), then needs continuously to chat what is traced forward from current time It is searched in its record.
Referring to Fig. 6 C, if user triggers the first control 106, i.e. user selects the related chat record of displaying, then can be from caching The history chat record for meeting specified conditions of user A and user B before middle reading.As shown in Figure 6 C, such as the second control of user's triggering Part except displaying message 103 and message 104, can only show chat record 107 relevant with current message, i.e., only show Tuesday The chat record in (on January 4th, 2016).Without showing message 101,102 etc..The display mode of corresponding diagram 6C, if user can Easily to check Tuesday the chat record in (i.e. on January 4th, 2016), without traced forward from current time it is a large amount of continuous It is searched in chat record.
Referring to Fig. 7, for the chat record processing unit schematic diagram for the instant messenger that one embodiment of the invention provides.
A kind of chat record processing unit 700 of instant messenger, including:
Acquiring unit 701, for the request in response to obtaining the history chat record between active user and specific user, from The history chat record between active user and specific user is read in caching;Wherein, preserved in the caching in advance from local The history chat record that is read in memory space and the history chat record for being stored directly in the caching;
Display unit 702, for showing the history chat record.
In some embodiments, the acquiring unit includes:
First judging unit, for judging whether to read between the active user and specific user from local storage space History chat record;
First reading unit, if for judging to read between the active user and specific user from local storage space History chat record when, the history chat record between active user and specific user is read from caching.
In some embodiments, described device further includes:
Second reading unit, if for judging not read between the active user and specific user from local storage space History chat record when, read the history chat record between the active user and specific user from local storage space;
First storage unit, for the chat record storage that will read in the buffer, record is from being locally stored sky Between read history chat record between the active user and specific user.
In some embodiments, described device further includes:
3rd reading unit, for when determining to meet trigger condition, reading current use from local storage space in advance History chat record between family and specific user;
Second storage unit, the chat record for that will read preserve in the buffer.
In some embodiments, described device further includes:
Second judgment unit, for when the definite history chat record include picture when, according to the mark of the picture Judge whether be stored with picture corresponding with the mark of the picture in caching;
4th reading unit, for if the determination result is YES, picture corresponding with the picture identification being obtained from caching.
5th reading unit if being no for judging result, obtains the picture from local storage space;
3rd storage unit, for storing the correspondence of the picture and picture and picture identification in the buffer.
In some embodiments, described device further includes:
4th storage unit, for preserving the access time that history chat record is obtained from caching;
Unit is deleted, for when a triggering condition is met, least recently used history being determined according to the access time Chat record is removed from the cache the history chat record.
In some embodiments, described device further includes:
Transmitting element, it is described instant for when receiving the instant message that specific user sends to active user, judging Whether the quantity or capacity of message are less than given threshold;If the determination result is YES, send and obtain active user and specific user Between history chat record request.
In some embodiments, the display unit is specifically used for:
The request for showing the instant message is triggered in response to user, by the instant message and the history chat record Merge display.
In some embodiments, the acquiring unit includes:3rd judging unit is worked as judge to store in caching Whether the quantity or capacity of the history chat record between preceding user and specific user are more than given threshold;6th reading unit, For if the determination result is YES, quantity or the capacity history chat record equal with given threshold are read directly from caching; 7th reading unit for reading partial history chat record from local storage space, and is stored into caching so that caching In history chat record quantity or capacity be more than or equal to given threshold.
In some embodiments, the acquiring unit is specifically used for reading between active user and specific user from caching Meet the partial history chat record of specified conditions;The specified conditions include meeting specific time condition, locality condition Or meet the history chat record of particular keywords;
The display unit is specifically used for showing the partial history chat record, wherein, the partial history chat note Do not have Time Continuous relation or the history chat record and current instant chat work between each chat record in record Have the chat record shown recently and do not have Time Continuous relation.
Referring to Fig. 8, for the chat record processing unit schematic diagram for the instant messenger that further embodiment of this invention provides.
A kind of chat record processing unit 800 of instant messenger, including:
Receiving unit 801, for receiving the operation that user triggers the first control.
Display unit 802 for that should trigger the operation of the first control in user, is shown between active user and specific user At least part history chat record;Wherein, do not have between each chat record at least part history chat record The chat record that Time Continuous relation or at least part history chat record are shown recently with current instant messenger Between do not have Time Continuous relation.
In some embodiments, the receiving unit 801 is additionally operable to:Receive the operation that user triggers the second control.
In some embodiments, the display unit 802 is additionally operable to:The operation of the second control is triggered in response to user, Show at least part history chat record between active user and specific user;Wherein, at least part history chat record In each chat record between there is Time Continuous relation or at least part history chat record to be chatted immediately with current There is Time Continuous relation between the chat record that its instrument is shown recently.
In some embodiments, described device further includes:
Reading unit, at least part history chat record before the reading from caching between user and specific user;Its In, the history chat record read in advance from local storage space is preserved in the caching and is stored directly in described slow The history chat record deposited.
Wherein, the setting of apparatus of the present invention each unit or module is referred to the method shown in Fig. 2 to Fig. 6 and realizes, This is not repeated.
It is the device that the chat record for instant messenger of another embodiment offer of the application is handled referring to Fig. 9 Attached drawing.Including:At least one processor 901 (such as CPU), memory 902 and at least one communication bus 903, for reality Connection communication between these existing equipment.Processor 901 is used to perform the executable module stored in memory 902, such as counts Calculation machine program.Memory 902 may include high-speed random access memory (RAM:Random Access Memory), it is also possible to Further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.One or one A procedure above is stored in memory, and be configured to by one or more than one processor 901 perform it is one or More than one program of person includes the instruction operated below:In response to obtaining the history between active user and specific user The history chat record between active user and specific user is read in the request of chat record from caching;Wherein, in the caching Preserve the history chat record read in advance from local storage space and the history chat for being stored directly in the caching Record;Show the history chat record between the active user and specific user.
In some embodiments, processor 901 includes use specifically for performing the one or more programs In the instruction for carrying out following operation:Judge whether to read going through between the active user and specific user from local storage space History chat record;If the determination result is YES, the history chat record between active user and specific user is read from caching.
In some embodiments, processor 901 includes use specifically for performing the one or more programs In the instruction for carrying out following operation:If judging result is no, the active user and specific user are read from local storage space Between history chat record, by the storage of the chat record of reading in the buffer, record was read from local storage space History chat record between the active user and specific user.
In some embodiments, processor 901 includes use specifically for performing the one or more programs In the instruction for carrying out following operation:When determining to meet trigger condition, in advance from local storage space read active user with History chat record between specific user preserves the chat record of reading in the buffer.
In some embodiments, processor 901 includes use specifically for performing the one or more programs In the instruction for carrying out following operation:When the definite history chat record includes picture, judged according to the mark of the picture Whether with the mark of the picture corresponding picture is stored in caching;If the determination result is YES, from caching obtain with it is described The corresponding picture of picture identification.
In some embodiments, processor 901 includes use specifically for performing the one or more programs In the instruction for carrying out following operation:If judging result is no, the picture is obtained from local storage space, is stored in the buffer The correspondence of the picture and picture and picture identification.
In some embodiments, processor 901 includes use specifically for performing the one or more programs In the instruction for carrying out following operation:Preserve the access time that history chat record is obtained from caching;When a triggering condition is met, Least recently used history chat record is determined according to the access time, is removed from the cache the history chat record.
In some embodiments, processor 901 includes use specifically for performing the one or more programs In the instruction for carrying out following operation:When receiving the instant message that specific user sends to active user, judge described instant Whether the quantity or capacity of message are less than given threshold;If the determination result is YES, send and obtain active user and specific user Between history chat record request.
In some embodiments, processor 901 includes use specifically for performing the one or more programs In the instruction for carrying out following operation:The request for showing the instant message is triggered in response to user, by the instant message and institute It states history chat record and merges display.
In some embodiments, processor 901 includes use specifically for performing the one or more programs In the instruction for carrying out following operation:Judge the quantity of the history chat record between the active user and specific user that are stored in caching Or whether capacity is more than given threshold;If the determination result is YES, quantity or capacity and setting threshold are read directly from caching It is worth equal history chat record;If being judged as NO, partial history chat record is read from local storage space, and stores and arrives In caching so that the quantity or capacity of the history chat record in caching are more than or equal to given threshold.
The embodiment of the present invention additionally provides the device that a kind of chat record for instant messenger is handled, including:Extremely A few processor (such as CPU), memory and at least one communication bus, the connection being used to implement between these equipment are led to Letter.Processor is used to perform the executable module stored in memory, such as computer program.Memory may include at a high speed with Machine access memory (RAM:Random Access Memory), it is also possible to further include non-labile memory (non- Volatile memory), a for example, at least magnetic disk storage.One or more than one program storage in memory, and It is configured to perform the one or more programs comprising following for carrying out by one or more than one processor The instruction of operation:Receive the operation that user triggers the first control;The operation of the first control is triggered in response to user, shows current use At least part history chat record between family and specific user;Wherein, each item at least part history chat record is chatted Do not have Time Continuous relation or at least part history chat record and current instant messenger most between its record Do not have Time Continuous relation between the chat record closely shown.
In some embodiments, the one or more processor is specifically used for performing one or one A procedure above includes the instruction operated below:Receive the operation that user triggers the second control;It is touched in response to user The operation of the second control is sent out, shows at least part history chat record between active user and specific user;Wherein, it is described at least There is Time Continuous relation or at least part history to chat between each chat record in partial history chat record There is Time Continuous relation between the chat record that record and current instant messenger are shown recently.
In some embodiments, the one or more processor is specifically used for performing one or one A procedure above includes the instruction operated below:At least part before being read from caching between user and specific user History chat record;Wherein, preserved in the caching history chat record that is read in advance from local storage space and It is stored directly in the history chat record of the caching.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein Its embodiment.It is contemplated that cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modifications, equivalent replacements and improvements are made should all be included in the protection scope of the present invention.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.The present invention can be by calculating Described in the general context for the computer executable instructions that machine performs, such as program module.Usually, program module includes holding The routine of row particular task or realization particular abstract data type, program, object, component, data structure etc..It can also divide The present invention is put into practice in cloth computing environment, in these distributed computing environment, by by communication network and connected long-range Processing equipment performs task.In a distributed computing environment, program module can be located at the local including storage device In remote computer storage medium.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.It is real especially for device For applying example, since it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to embodiment of the method Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component explanation Unit may or may not be physically separate, the component shown as unit may or may not be Physical location, you can be located at a place or can also be distributed in multiple network element.It can be according to the actual needs Some or all of module therein is selected to realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying In the case of creative work, you can to understand and implement.The above is only the specific embodiment of the present invention, should be referred to Go out, for those skilled in the art, without departing from the principle of the present invention, can also make several Improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (18)

1. a kind of chat record processing method of instant messenger, which is characterized in that including:
In response to obtaining the request of the history chat record between active user and specific user, read from caching active user with History chat record between specific user;Wherein, the history read in advance from local storage space is preserved in the caching Chat record and the history chat record for being stored directly in the caching;
Show the history chat record between the active user and specific user.
2. according to the method described in claim 1, it is characterized in that, described read from caching between active user and specific user History chat record include:
Judge whether to read the history chat record between the active user and specific user from local storage space;
If the determination result is YES, the history chat record between active user and specific user is read from caching.
3. according to the method described in claim 2, it is characterized in that, the method further includes:
If judging result is no, the history chat record between the active user and specific user is read from local storage space, By the storage of the chat record of reading in the buffer, record from local storage space read the active user with it is specific History chat record between user.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
When determining to meet trigger condition, the history read in advance from local storage space between active user and specific user is chatted Its record, the chat record of reading is preserved in the buffer.
5. according to the method described in claim 4, it is characterized in that, described determine that meeting trigger condition includes:
When receiving specific user and being sent to the instant message of active user, determine to meet trigger condition;Alternatively,
When receiving user and triggering the operation for showing the chat window of active user and specific user, determine to meet triggering item Part.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
When the definite history chat record include picture when, according to the mark of the picture judge caching in whether be stored with and The corresponding picture of mark of the picture;
If the determination result is YES, picture corresponding with the picture identification is obtained from caching.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
If judging result is no, the picture is obtained from local storage space, stores the picture and picture in the buffer With the correspondence of picture identification.
8. according to the method described in claim 1, it is characterized in that, the method further includes:
Preserve the access time that history chat record is obtained from caching;
When a triggering condition is met, least recently used history chat record is determined according to the access time, from caching Delete the history chat record.
9. according to the method described in claim 1, it is characterized in that, the method further includes:
When receiving the instant message that specific user sends to active user, the quantity or capacity of the instant message are judged Whether given threshold is less than;If the determination result is YES, send and obtain the history chat record between active user and specific user Request.
10. according to the method described in claim 9, it is characterized in that, the displaying history chat record includes:
The request for showing the instant message is triggered in response to user, the instant message is merged with the history chat record Display.
11. according to the method described in claim 1,9 or 10, which is characterized in that described that active user and spy are read from caching The history chat record determined between user includes:
The partial history chat record for meeting specified conditions between active user and specific user is read from caching;The specific item Part includes meeting specific time condition, locality condition or the history chat record for meeting particular keywords;The displaying History chat record between the active user and specific user includes:
Show the partial history chat record, wherein, between each chat record in the partial history chat record not The chat record shown recently with current instant messenger with Time Continuous relation or the history chat record does not have Having time serial relation.
12. according to the method described in claim 1, it is characterized in that, described read active user and specific user from caching Between history chat record include:
Whether the quantity or capacity for judging the history chat record between the active user and specific user that are stored in caching are more than Given threshold;If the determination result is YES, quantity is read directly from caching or the capacity history equal with given threshold is chatted Record;If being judged as NO, partial history chat record is read from local storage space, and is stored into caching so that caching In history chat record quantity or capacity be more than or equal to given threshold.
13. a kind of chat record processing method of instant messenger, which is characterized in that including:
Receive the operation that user triggers the first control;
The operation of the first control is triggered in response to user, shows that at least part history chat between active user and specific user is remembered Record;Wherein, do not have Time Continuous relation or institute between each chat record at least part history chat record It states and does not have Time Continuous between the chat record that at least part history chat record and current instant messenger are shown recently Relation.
14. according to the method for claim 13, which is characterized in that the method further includes:Receive the second control of user's triggering The operation of part;
The operation of the second control is triggered in response to user, shows that at least part history chat between active user and specific user is remembered Record;Wherein, there is Time Continuous relation or described between each chat record at least part history chat record There is Time Continuous relation between the chat record that at least part history chat record and current instant messenger are shown recently.
15. the method according to claim 13 or 14, which is characterized in that between display active user and specific user extremely Before small part history chat record, the method further includes:
At least part history chat record before being read from caching between user and specific user;Wherein, preserved in the caching There is the history read in advance from local storage space chat record and be stored directly in the history chat record of the caching.
16. a kind of chat record processing unit of instant messenger, which is characterized in that including:
Acquiring unit, for the request in response to obtaining the history chat record between active user and specific user, from caching Read the history chat record between active user and specific user;Wherein, preserved in the caching in advance from sky is locally stored Between middle reading history chat record and be stored directly in the history chat record of the caching;
Display unit, for showing the history chat record.
17. a kind of chat record processing unit of instant messenger, which is characterized in that including:
Receiving unit, for receiving the operation that user triggers the first control;
Display unit for that should trigger the operation of the first control in user, shows at least portion between active user and specific user Divide history chat record;Wherein, do not have time company between each chat record at least part history chat record Between the chat record that continuous relation or at least part history chat record and current instant messenger are shown recently not With Time Continuous relation.
18. a kind of device that chat record for instant messenger is handled, which is characterized in that include memory and One either more than one program one of them or more than one program storage in memory, and be configured to by one A or more than one processor performs the one or more programs and includes the instruction operated below:
In response to the request of the history chat record between the acquisition active user and specific user, current use is read from caching History chat record between family and specific user;Wherein, preserve what is read in advance from local storage space in the caching History chat record and the history chat record for being stored directly in the caching;
Show the history chat record between the active user and specific user.
CN201611036740.6A 2016-11-22 2016-11-22 Chat record processing method and device of instant chat tool Active CN108090079B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201611036740.6A CN108090079B (en) 2016-11-22 2016-11-22 Chat record processing method and device of instant chat tool
TW106127146A TWI743163B (en) 2016-11-22 2017-08-10 Chat record processing method and device of instant chat tool
PCT/CN2017/110333 WO2018095223A1 (en) 2016-11-22 2017-11-10 Method and device for processing chat log of real-time chat tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611036740.6A CN108090079B (en) 2016-11-22 2016-11-22 Chat record processing method and device of instant chat tool

Publications (2)

Publication Number Publication Date
CN108090079A true CN108090079A (en) 2018-05-29
CN108090079B CN108090079B (en) 2021-03-02

Family

ID=62168642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611036740.6A Active CN108090079B (en) 2016-11-22 2016-11-22 Chat record processing method and device of instant chat tool

Country Status (3)

Country Link
CN (1) CN108090079B (en)
TW (1) TWI743163B (en)
WO (1) WO2018095223A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932143A (en) * 2018-06-01 2018-12-04 国电南瑞科技股份有限公司 A kind of warning information Dynamic Display method based on Dispatching Control System
CN109242479A (en) * 2018-09-04 2019-01-18 深圳市百宝廊珠宝首饰有限公司 A kind of method and apparatus that red packet is got based on integrating system
CN109495643A (en) * 2018-10-29 2019-03-19 努比亚技术有限公司 The more chat box setting methods of an object and terminal
CN109766462A (en) * 2018-12-27 2019-05-17 山东信通电子股份有限公司 Image file read method, apparatus and system in transmission line of electricity monitoring system
CN110365739A (en) * 2019-06-05 2019-10-22 平安科技(深圳)有限公司 Message synchronization method, apparatus, computer installation and computer readable storage medium
CN110943904A (en) * 2018-09-25 2020-03-31 北京国双科技有限公司 Message processing method and device, storage medium and processor
CN111600789A (en) * 2020-05-11 2020-08-28 百度在线网络技术(北京)有限公司 Instant messaging method, system, device, electronic equipment and storage medium
CN116450635A (en) * 2023-06-15 2023-07-18 成都豪杰特科技有限公司 Data cleaning method and system based on artificial intelligence

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866272B (en) * 2021-01-27 2022-11-01 天翼数字生活科技有限公司 Anti-theft chain management and control method of cloud platform, downloading platform and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425081A (en) * 2008-12-05 2009-05-06 深圳华为通信技术有限公司 Character association information cuing method and terminal
CN105208212A (en) * 2015-09-30 2015-12-30 努比亚技术有限公司 Chatting record display device and method
CN105260451A (en) * 2015-10-13 2016-01-20 Tcl移动通信科技(宁波)有限公司 Chat history information processing method and system based on mobile terminal
CN105429846A (en) * 2014-09-18 2016-03-23 中兴通讯股份有限公司 Instant chat tool chat record synchronization methods and terminal equipment
CN105608100A (en) * 2015-08-31 2016-05-25 南京酷派软件技术有限公司 Information extraction method and information extraction device
WO2016119165A1 (en) * 2015-01-29 2016-08-04 华为技术有限公司 Chat history display method and apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0340046A (en) * 1989-07-06 1991-02-20 Hitachi Ltd Cache memory control system and information processor
US7243163B1 (en) * 2001-08-07 2007-07-10 Good Technology, Inc. System and method for full wireless synchronization of a data processing apparatus with a messaging system
CN101221585A (en) * 2008-02-03 2008-07-16 华为技术有限公司 Data storage method and device
CN102223313A (en) * 2011-06-07 2011-10-19 盛乐信息技术(上海)有限公司 Method and system for processing Internet video chat logs
US9641480B2 (en) * 2012-02-05 2017-05-02 Apple Inc. Automated participant account determination for a communication session
CN104348713A (en) * 2014-10-17 2015-02-11 国家电网公司 Instant messaging method based on comet of network platform under B/S (Browser/Server) architecture

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425081A (en) * 2008-12-05 2009-05-06 深圳华为通信技术有限公司 Character association information cuing method and terminal
CN105429846A (en) * 2014-09-18 2016-03-23 中兴通讯股份有限公司 Instant chat tool chat record synchronization methods and terminal equipment
WO2016119165A1 (en) * 2015-01-29 2016-08-04 华为技术有限公司 Chat history display method and apparatus
CN105608100A (en) * 2015-08-31 2016-05-25 南京酷派软件技术有限公司 Information extraction method and information extraction device
CN105208212A (en) * 2015-09-30 2015-12-30 努比亚技术有限公司 Chatting record display device and method
CN105260451A (en) * 2015-10-13 2016-01-20 Tcl移动通信科技(宁波)有限公司 Chat history information processing method and system based on mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108932143A (en) * 2018-06-01 2018-12-04 国电南瑞科技股份有限公司 A kind of warning information Dynamic Display method based on Dispatching Control System
CN109242479A (en) * 2018-09-04 2019-01-18 深圳市百宝廊珠宝首饰有限公司 A kind of method and apparatus that red packet is got based on integrating system
CN110943904A (en) * 2018-09-25 2020-03-31 北京国双科技有限公司 Message processing method and device, storage medium and processor
CN109495643A (en) * 2018-10-29 2019-03-19 努比亚技术有限公司 The more chat box setting methods of an object and terminal
CN109495643B (en) * 2018-10-29 2021-01-01 努比亚技术有限公司 Object multi-chat frame setting method and terminal
CN109766462A (en) * 2018-12-27 2019-05-17 山东信通电子股份有限公司 Image file read method, apparatus and system in transmission line of electricity monitoring system
CN110365739A (en) * 2019-06-05 2019-10-22 平安科技(深圳)有限公司 Message synchronization method, apparatus, computer installation and computer readable storage medium
CN111600789A (en) * 2020-05-11 2020-08-28 百度在线网络技术(北京)有限公司 Instant messaging method, system, device, electronic equipment and storage medium
CN116450635A (en) * 2023-06-15 2023-07-18 成都豪杰特科技有限公司 Data cleaning method and system based on artificial intelligence
CN116450635B (en) * 2023-06-15 2024-01-09 中免日上互联网科技有限公司 Data cleaning method and system based on artificial intelligence
CN116450635B8 (en) * 2023-06-15 2024-03-22 中免日上互联科技有限公司 Data cleaning method and system based on artificial intelligence

Also Published As

Publication number Publication date
TWI743163B (en) 2021-10-21
WO2018095223A1 (en) 2018-05-31
TW201820903A (en) 2018-06-01
CN108090079B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN108090079A (en) A kind of chat record processing method and processing device of instant messenger
US20200257421A1 (en) Machine learning method of managing conversations in a messaging interface
US10439972B1 (en) Apparatus and method for maintaining a message thread with opt-in permanence for entries
CN103369048B (en) Content share method based on drag operation and system
CN108399186A (en) A kind of collecting method and device
JP2018529148A (en) Group message prompt method and apparatus for instant messaging application
CN109062489B (en) Message processing method, message processing device, storage medium and electronic device
US20090158161A1 (en) Collaborative search in virtual worlds
US20170206266A1 (en) Content resonance
CN110168537A (en) Fast activity personnel's card of context and sociodistance's perception
CN106943747B (en) Virtual role name recommendation method and device, electronic equipment and storage medium
CN108475270A (en) Mobile user interface
CN106911687A (en) A kind of page makeup control method and device
US20170286558A1 (en) Tracking Internet Sharing Using Augmented URLs
CN111246257B (en) Video recommendation method, device, equipment and storage medium
US20160004705A1 (en) Bulletin Board Data Mapping and Presentation
CN107124655A (en) Virtual present message display method and device
CN111767396A (en) Data processing method, device, equipment and computer readable storage medium
CN108228709A (en) Date storage method and system, electronic equipment, program and medium
CN107577787A (en) The method and system of associated data information storage
CN106776668A (en) Search servomechanism, terminal installation and the method for searching for distributed network
KR102175618B1 (en) Information processing method and apparatus, and method and apparatus for displaying dynamic information
JP2011008440A (en) Human resource management support device, method, and computer program
CN106789568A (en) A kind of communication information acquisition methods and device
US20150172245A1 (en) Contact-centric thread views for electronic message applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1256078

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant