CN106685804A - Method and apparatus for transmitting offline messages - Google Patents

Method and apparatus for transmitting offline messages Download PDF

Info

Publication number
CN106685804A
CN106685804A CN201611251536.6A CN201611251536A CN106685804A CN 106685804 A CN106685804 A CN 106685804A CN 201611251536 A CN201611251536 A CN 201611251536A CN 106685804 A CN106685804 A CN 106685804A
Authority
CN
China
Prior art keywords
data
line
line data
storage region
datas
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.)
Pending
Application number
CN201611251536.6A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201611251536.6A priority Critical patent/CN106685804A/en
Publication of CN106685804A publication Critical patent/CN106685804A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/043Real-time or near real-time messaging, e.g. instant messaging [IM] using or handling presence information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and apparatus for transmitting offline messages. The method includes the following steps: receiving a first acquisition request sent by a requesting party for acquiring offline data, and based on the received first acquisition request, determining a plurality of first offline data corresponding to the first acquisition request from a preset storage region; successively transmitting the plurality of first offline data to the requesting party; receiving a second acquisition request sent by the requesting party for acquiring the offline data, and based on the received second acquisition request, determining a plurality of second offline data which correspond to the second acquisition request from a preset storage region; deleting the data record of at least one first offline data from the plurality of first offline data in the preset storage region, and successively transmitting the plurality of second offline data to the requesting party. According to the invention, the method can rapidly determine the first offline data corresponding to the first acquisition request from the requesting party, and transmit the first offline data to the requesting party in a timely and accurate manner.

Description

Send the method and device of deferred information
Technical field
The present invention relates to field of computer technology, specifically, the present invention relates to a kind of method for sending deferred information and Device.
Background technology
The content of the invention
To overcome above-mentioned technical problem or solving above-mentioned technical problem at least in part, spy proposes technical scheme below:
Embodiments of the invention propose a kind of method of transmission deferred information, including:
Receive requesting party and obtain the first acquisition request of off-line data and according to the first acquisition request for receiving from predetermined Storage region in determine corresponding multiple first off-line datas;
Multiple first off-line datas are sent successively to requesting party;
Receive requesting party and obtain the second acquisition request of off-line data and according to the second acquisition request for receiving from predetermined Storage region in determine corresponding multiple second off-line datas;
Delete the data note of the first off-line data of at least one of multiple first off-line datas in predetermined storage region Record, and multiple second off-line datas are sent successively to requesting party.
Preferably, corresponding multiple the are determined from predetermined storage region according to the first acquisition request for receiving One off-line data, including:
Extract first to obtain in request for the initial data mark and quantity information of off-line data to be obtained;
According to initial data mark and quantity information for off-line data to be obtained, determine from predetermined storage region Multiple first off-line datas starting, meeting quantity information are identified from initial data.
Alternatively, wherein, also include:
Receive from multiple senders off-line data and by the off-line data for receiving according to its respective sender's Identification information storage is into predetermined storage region;
Wherein, corresponding multiple first are determined from predetermined storage region according to the first acquisition request for receiving Off-line data, including:
Extract first obtain the identification information of each sender that off-line data to be obtained is directed in request, belong to each The initial data mark of sender and quantity information;
According to the identification information for being directed to each sender, the initial data mark for belonging to each sender and quantity letter Breath, from predetermined storage region determine for each sender, from belong to the sender initial data identify from the beginning of , multiple first off-line datas for meeting respective numbers information.
Preferably, wherein, delete at least one of multiple first off-line datas first in predetermined storage region offline The data record of data, including:
Extract second obtain the identification information of each sender that off-line data to be obtained is directed in request, belong to each The initial data mark of sender;
According to the identification information for being directed to each sender, the initial data mark for belonging to each sender, will be predetermined Belong to off-line data before each sender, initial data mark in storage region to be deleted.
Alternatively, wherein, delete at least one of multiple first off-line datas first in predetermined storage region offline The data record of data, including:
Extract second to obtain in request for the correlated identities information of data to be deleted;
According to the correlated identities information for data to be deleted, by corresponding first off-line data in predetermined storage region Deleted;
Wherein, the correlated identities information of data to be deleted includes the identification information of the sender belonging to off-line data to be deleted And the Data Identification of off-line data to be deleted.
Preferably, wherein, predetermined storage region includes cache database and disk database;
Wherein, corresponding multiple first are determined from predetermined storage region according to the first acquisition request for receiving Off-line data, including:
Corresponding multiple first off-line datas are determined from cache database according to the first acquisition request for receiving;
If not storing corresponding arbitrary first off-line data in cache database, it is right to determine to search from disk database Arbitrary first off-line data answered;
Wherein, the number of the first off-line data of at least one of multiple first off-line datas in predetermined storage region is deleted According to record, including:
Delete the offline number of at least one of multiple first off-line datas first in cache database and/or disk database According to data record.
Alternatively, also include:
Each off-line data to have stored in predetermined storage region is respectively provided with expired time;
When the storage time for monitoring arbitrary off-line data is reached for the expired time of its setting, predetermined storage is deleted Corresponding off-line data in region.
Alternatively, wherein, also include:
According to predetermined data signature generating mode, multiple off-line datas are signed successively;
Wherein, send to before requesting party in arbitrary first off-line data or the second off-line data, also include:
The data signature of arbitrary first off-line data or the second off-line data is recorded into transmission data list;
Wherein, multiple first off-line datas or multiple second off-line datas are sent successively to requesting party, including:
To successively send to please including multiple first off-line datas or multiple second off-line datas of its respective data signature The side of asking.
Preferably, wherein, delete at least one of multiple first off-line datas first in predetermined storage region offline The data record of data, including:
Extract second to obtain in request for the data signature to be verified of data to be deleted in multiple first off-line datas;
Judge to send whether record in data list with multiple first off-line datas data to be deleted it is to be tested The data signature of the consistent off-line data of card data signature;
When judgement record has the data signature of the off-line data consistent with the data signature to be verified of data to be deleted, delete Send the data signature and its corresponding first off-line data of corresponding off-line data in data list.
Alternatively, the data signature of arbitrary first off-line data or the second off-line data is recorded into transmission data list Afterwards, the method also includes:
The data signature of each off-line data recorded in send data list is respectively provided with expired time;
When the record time of the data signature for monitoring arbitrary off-line data the expired time of its setting is reached for, delete Send the data signature and its corresponding off-line data of corresponding off-line data in data list.
Another embodiment of the present invention proposes a kind of device of transmission deferred information, including:
First receives and determining module, for receiving the first acquisition request of requesting party's acquisition off-line data simultaneously according to reception To first acquisition request corresponding multiple first off-line datas are determined from predetermined storage region;
First sending module, for multiple first off-line datas to be sent successively to requesting party;
Second receives and determining module, for receiving the second acquisition request of requesting party's acquisition off-line data simultaneously according to reception To second acquisition request corresponding multiple second off-line datas are determined from predetermined storage region;
Delete and sending module, for deleting predetermined storage region at least one of multiple first off-line datas the The data record of one off-line data, and multiple second off-line datas are sent successively to requesting party.
Preferably, wherein, first receive and determining module, including:
First extraction unit, for extract first obtain request in for off-line data to be obtained initial data mark and Quantity information;
First determining unit, for according to the initial data mark and quantity information for off-line data to be obtained, from pre- Determine in fixed storage region from initial data and identify multiple first off-line datas starting, meeting quantity information.
Alternatively, wherein, also include:
Receive and memory module, for receive from multiple senders off-line data and by the off-line data for receiving according to According to the identification information storage of its respective sender into predetermined storage region;
Wherein, first receive and determining module, including:
Second extraction unit, for extracting the first mark for obtaining each sender that off-line data to be obtained is directed in request Knowledge information, the initial data mark and quantity information that belong to each sender;
Second determining unit, is directed to the identification information of each sender, belongs to the starting of each sender for foundation Data Identification and quantity information, determine from predetermined storage region for each sender, from belonging to the sender's Multiple first off-line datas that initial data mark starts, meeting respective numbers information.
Preferably, wherein, delete and sending module, including:
3rd extraction unit, for extracting the second mark for obtaining each sender that off-line data to be obtained is directed in request Knowledge information, the initial data mark for belonging to each sender;
First deletes unit, is directed to the identification information of each sender, belongs to the starting of each sender for foundation Data Identification, will belong to off-line data before each sender, initial data mark and is deleted in predetermined storage region Remove.
Preferably, wherein, delete and sending module, including:
4th extraction unit, obtains in request for the correlated identities information of data to be deleted for extracting second;
Second deletes unit, for according to the correlated identities information for data to be deleted, by predetermined storage region Corresponding first off-line data is deleted;
Wherein, the correlated identities information of data to be deleted includes the identification information of the sender belonging to off-line data to be deleted And the Data Identification of off-line data to be deleted.
Preferably, wherein, predetermined storage region includes cache database and disk database;
Wherein, first receive and determining module, including:
3rd determining unit, it is corresponding for determining from cache database according to the first acquisition request for receiving Multiple first off-line datas;
Searching unit, if for not storing corresponding arbitrary first off-line data in cache database, from disk database It is middle to search to determine corresponding arbitrary first off-line data;
Wherein, delete and sending module, including:
3rd deletes unit, in multiple first off-line datas in deleting cache database and/or disk database The data record of at least one first off-line datas.
Alternatively, also include:
First setup module, during for being respectively provided with expired for each off-line data stored in predetermined storage region Between;
First monitoring and removing module, for being reached for the mistake of its setting when the storage time for monitoring arbitrary off-line data During time phase, corresponding off-line data in predetermined storage region is deleted.
Alternatively, wherein, also include:
Signature blocks, for according to predetermined data signature generating mode, signing successively to multiple off-line datas;
Wherein, send to before requesting party in arbitrary first off-line data or the second off-line data, also include:
Second sending module, for the data signature of arbitrary first off-line data or the second off-line data to be recorded to transmission In data list;
Wherein, multiple first off-line datas or multiple second off-line datas are sent to requesting party be used for successively
To successively send to please including multiple first off-line datas or multiple second off-line datas of its respective data signature The side of asking.
Preferably, wherein, delete and sending module, including:
5th extraction unit, obtains in request for data to be deleted in multiple first off-line datas for extracting second Data signature to be verified;
Whether judging unit, wait to delete for judging to send recorded in data list with being directed in multiple first off-line datas Except the data signature of the consistent off-line data of the data signature to be verified of data;
4th deletes unit, for having the offline number consistent with the data signature to be verified of data to be deleted when judgement record According to data signature, delete and send the data signature of corresponding off-line data and its corresponding first offline number in data list According to.
Alternatively, the data signature of arbitrary first off-line data or the second off-line data is recorded into transmission data list Afterwards, the device also includes:
Second setup module, for setting respectively for the data signature of each off-line data recorded in transmission data list Put expired time;
Second monitoring and removing module, are reached for for the record time when the data signature for monitoring arbitrary off-line data During the expired time that it is arranged, the data signature and its corresponding offline number for sending corresponding off-line data in data list is deleted According to.
In embodiments of the invention, it is proposed that a kind of scheme for sending deferred information, receive requesting party and obtain off-line data The first acquisition request and determine from predetermined storage region according to the first acquisition request for receiving corresponding multiple First off-line data, multiple first off-line datas are sent successively to requesting party, are realized to be obtained according to the first of requesting party and are asked Ask and quickly determine corresponding first off-line data, timely and accurately the first off-line data can be sent to requesting party;Receive Requesting party obtains the second acquisition request of off-line data and according to the second acquisition request for receiving from predetermined storage region Determine corresponding multiple second off-line datas, delete at least in predetermined storage region in multiple first off-line datas The data record of individual first off-line data, and multiple second off-line datas are sent successively to requesting party, realize according to second Obtain the data that request is quickly automatically deleted in time at least one first off-line datas stored in predetermined storage region Record, alleviates in time the storage pressure of predetermined storage region, while improve the effect of the storage of predetermined storage region Rate, further, to quickly determine the corresponding off-line data of off-line data acquisition request important premise guarantee is provided.
The additional aspect of the present invention and advantage will be set forth in part in the description, and these will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Description of the drawings
The above-mentioned and/or additional aspect of the present invention and advantage will become from the following description of the accompanying drawings of embodiments It is substantially and easy to understand, wherein:
Fig. 1 is the schematic flow sheet of the method for the transmission deferred information of one embodiment in the present invention;
Fig. 2 is the structural representation of the device of the transmission deferred information of another embodiment in the present invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " " used herein, " It is individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that arranging used in the specification of the present invention Diction " including " refers to there is the feature, integer, step, operation, element and/or component, but it is not excluded that existing or adding One or more other features, integer, step, operation, element, component and/or their group.It should be understood that when we claim unit Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange Diction "and/or" includes the one or more associated wholes or any cell of listing item and all combination.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also It is understood by, those terms defined in such as general dictionary, it should be understood that with the context with prior art The consistent meaning of meaning, and unless by specific definitions as here, will not otherwise use idealization or excessively formal implication To explain.
Fig. 1 is the schematic flow sheet of the method for the transmission deferred information of one embodiment in the present invention.
In embodiments of the invention, the Description of content performed by each step is as follows:Step S1010:Receive requesting party to obtain It is right with it that the first acquisition request that first acquisition request of off-line data and foundation are received determines from predetermined storage region Multiple first off-line datas answered;Step S1020:Multiple first off-line datas are sent successively to requesting party;Step S1030: Receive requesting party and obtain the second acquisition request of off-line data and according to the second acquisition request for receiving from predetermined memory block Corresponding multiple second off-line datas are determined in domain;Step S1040:Multiple first is offline in the predetermined storage region of deletion The data record of the off-line data of at least one of data first, and multiple second off-line datas are sent successively to requesting party.
In embodiments of the invention, it is proposed that a kind of method for sending deferred information, receive requesting party and obtain off-line data The first acquisition request and determine from predetermined storage region according to the first acquisition request for receiving corresponding multiple First off-line data, multiple first off-line datas are sent successively to requesting party, are realized to be obtained according to the first of requesting party and are asked Ask and quickly determine corresponding first off-line data, timely and accurately the first off-line data can be sent to requesting party;Receive Requesting party obtains the second acquisition request of off-line data and according to the second acquisition request for receiving from predetermined storage region Determine corresponding multiple second off-line datas, delete at least in predetermined storage region in multiple first off-line datas The data record of individual first off-line data, and multiple second off-line datas are sent successively to requesting party, realize according to second Obtain the data that request is quickly automatically deleted in time at least one first off-line datas stored in predetermined storage region Record, alleviates in time the storage pressure of predetermined storage region, while improve the effect of the storage of predetermined storage region Rate, further, to quickly determine the corresponding off-line data of off-line data acquisition request important premise guarantee is provided.With It is described further for implementing for each step down:
Step S1010:Receive requesting party and obtain the first acquisition request of off-line data and according to the first acquisition for receiving Request determines corresponding multiple first off-line datas from predetermined storage region.
Specifically, the first acquisition request that requesting party obtains off-line data of the requesting party during offline, and foundation are received The the first acquisition request for receiving determines corresponding multiple first off-line datas from predetermined storage region.
Wherein, predetermined storage region includes cache database and disk database.
For example, in the data transmission procedure in terminal device S1 by server with terminal device R1, if terminal device R1 In off-line state, then server is intended to send to the data " happy " and " new " of terminal device R1 and stores to predetermined storage In region, in such as disk database DB, after terminal device R1 reaches the standard grade, terminal device R1 sends to server and obtains terminal device First acquisition request of off-line datas of the R1 during offline, server obtains off-line data according to the terminal device R1 for receiving First acquisition request, after making a look up in disk database DB, determine corresponding off-line data be " happy " and " new ".
Step S1020:Multiple first off-line datas are sent successively to requesting party.
For example, in the data transmission procedure in terminal device S1 by server with terminal device R1, server foundation connects The terminal device R1 for receiving obtains the first acquisition request of off-line data, after server makes a look up in disk database DB, Determine that corresponding off-line data is " happy " and " new ", subsequently successively send off-line data " happy " and " new " to terminal Equipment R1.
Step S1030:Receive requesting party and obtain the second acquisition request of off-line data and according to the second acquisition for receiving Request determines corresponding multiple second off-line datas from predetermined storage region.
For example, in the data transmission procedure in terminal device S1 by server with terminal device R1, server is received eventually End equipment R1 obtains the second acquisition request of off-line data, and server is according to the second acquisition request for receiving from disk database Multiple second off-line datas corresponding with the second acquisition request are determined in DB, such as " year " and " everyone ".
Step S1040:Delete the offline number of at least one of multiple first off-line datas first in predetermined storage region According to data record, and multiple second off-line datas are sent successively to requesting party.
It should be noted that when server receives the second acquisition request of requesting party, you can default request side is Have received server and obtain the first off-line data that request sends in response to first, therefore server can be obtained according to second and asked Ask, the first off-line data in predetermined storage region is deleted.
For example, server determines according to the second acquisition request for receiving from disk database DB and second obtains request After corresponding second off-line data " year " and " everyone ", the second off-line data " year " and " everyone " are sent out successively Deliver to terminal device R1, and request is obtained according to second, terminal device R1 can be given tacit consent to and have been received that server in response to the One obtains the first off-line data " happy " and " new " that request sends, and deletes the first off-line data in disk database DB The data record of " happy " and " new ".
Preferably, determine and it from predetermined storage region according to the first acquisition request for receiving in step S1010 The step of corresponding multiple first off-line datas, further includes step S1011 and step S1012;Step S1011:Extract first Obtain in request for the initial data mark and quantity information of off-line data to be obtained;Step S1012:According to for be obtained Off-line data initial data mark and quantity information, determine from predetermined storage region from initial data identify start, Meet multiple first off-line datas of quantity information.
For example, if the data identification information of off-line data " happy " and " new " is respectively 001 He in disk database DB 002, terminal device R1 send the first acquisition request Request1 for obtaining off-line data, such as " StartID=001 to server; NumCount=2;", server is received after the first acquisition request Request1 that terminal device R1 obtains off-line data, is extracted First obtains the initial data in request for off-line data to be obtained is designated " 001 " and quantity information for " 2 ";Subsequently from magnetic Determine that identifying 2 the first off-line datas that " 001 " starts, meeting quantity information from initial data is respectively in disk database D B Off-line data " happy " and " new ".
Preferably, the method also includes step S1050;Step S1050:Receive from multiple senders off-line data simultaneously By the off-line data for receiving according to the identification information storage of its respective sender into predetermined storage region.
For example, set by server and terminal with terminal device R1, terminal device S2 by server in terminal device S1 In the data transmission procedure of standby R1, if terminal device R1 is changed to after off-line state from presence, server is received and comes spontaneous The off-line data " hello " of the side of sending terminal device S1 and the off-line data " world " of sending side terminal equipment S2, server will connect The off-line data " hello " for receiving is stored to disk database DB according to the identification information such as " terminal device S1 " of its sender In, and in disk database DB arrange off-line data " hello " data identification information be Data1, and will receive from Line number is stored into disk database DB, and in magnetic according to " world " according to the identification information such as " terminal device S2 " of its sender The data identification information that off-line data " world " is arranged in disk database D B is Data01.
Preferably, determine and it from predetermined storage region according to the first acquisition request for receiving in step S1010 The step of corresponding multiple first off-line datas, further includes step S1013 and step S1014;Step S1013:Extract first The identification information of each sender that off-line data to be obtained is directed in request is obtained, belonging to the initial data of each sender Mark and quantity information;Step S1014:Foundation is directed to the identification information of each sender, belongs to the starting of each sender Data Identification and quantity information, determine from predetermined storage region for each sender, from belonging to the sender's Multiple first off-line datas that initial data mark starts, meeting respective numbers information.
For example, example is connected, server receives the first acquisition request that terminal device R1 obtains deferred information, such as " SentPCID=terminal device S1-StartID=Data1-NumCount=1;SentPCID=terminal device S2-StartID =Data01-NumCount=1 ", extracts first mark for obtaining the sender in request for off-line data to be obtained and believes Cease for terminal device S1 and terminal device S2, belong to the initial data mark Data1 and quantity letter of sending side terminal equipment S1 Breath 1, belongs to the initial data mark Data01 and quantity information 1 of sending side terminal equipment S2;Subsequently from disk database DB Middle determination sending side terminal equipment S1, from the initial data for belonging to sending side terminal equipment S1 be designated it is that Data1 starts, The first off-line data for meeting 1 quantity information is " hello ", and sending side terminal equipment S2 is determined from disk database DB , from the initial data for belonging to sending side terminal equipment S2 be designated it is that Data01 starts, meet 1 quantity information first Off-line data is " world ".
Preferably, at least one of multiple first off-line datas in predetermined storage region is deleted in step S1040 The step of data record of one off-line data, further includes step S1041 and step S1042;Step S1041:Extract second to obtain The identification information of each sender that off-line data to be obtained is directed in request is taken, belonging to the initial data mark of each sender Know;Step S1042:According to the identification information for being directed to each sender, the initial data mark for belonging to each sender, will be pre- Belong to off-line data before each sender, initial data mark in fixed storage region to be deleted.
For example, in disk database DB, 3 offline numbers that sending side terminal equipment S1 is intended to send to terminal device R1 are stored According to " hello ", " kid " and " apple " to S1R1 tables, the identification information of 3 off-line datas be respectively Data1, Data2 and Data3;And store sending side terminal equipment S2 be intended to send to terminal device R1 2 off-line datas " world " and " phone " extremely S2R1 tables, the identification information of 2 off-line datas is respectively Data01 and Data02;Terminal device R1 sends to server and obtains Second acquisition request Request2 of off-line data, such as " SentPCID=terminal device S1-StartID=Data3- NumCount=1;SentPCID=terminal device S2-StartID=Data02-NumCount=1 ";Subsequently server is extracted Second identification information for obtaining the sender in request Request2 for off-line data to be obtained is terminal device S1, belongs to The initial data of sending side terminal equipment S1 is designated Data3, and extracts the identification information of the sender of off-line data to be obtained Data02 is designated for terminal device S2, the initial data for belonging to sending side terminal equipment S2, disk database is subsequently deleted The whole off-line datas before sending side terminal equipment S1, initial data mark Data3 are belonged in the S1R1 tables of DB " hello " and " kid ", and delete sending side terminal equipment S2, initial data are belonged in the S2R1 tables of disk database DB Whole off-line datas " world " before mark Data02.
By the present embodiment, can off-line data that rapidly and accurately removal request side has been received by such that it is able in time The memory space of ground release predetermined storage area, is effectively improved the storage efficiency of predetermined storage area, it is to avoid because a large amount of superfluous Remaining off-line data causes the situation of predetermined storage area storage collapse to occur.
Preferably, at least one of multiple first off-line datas in predetermined storage region is deleted in step S1040 The step of data record of one off-line data, further includes step S1043 and step S1044;Step S1043:Extract second to obtain Take in request for the correlated identities information of data to be deleted;Step S1044:Believe according to the correlated identities for data to be deleted Breath, corresponding first off-line data in predetermined storage region is deleted.
Wherein, the correlated identities information of data to be deleted includes the identification information of the sender belonging to off-line data to be deleted And the Data Identification of off-line data to be deleted.
For example, terminal device R1 sends the second acquisition request Request2 for obtaining off-line data to server, such as " SentPCID=terminal device S1-StartID=Data3-NumCount=1-DelID=Data1 ";Server extracts second The identification information for obtaining the affiliated sender of off-line data to be deleted in request Request2 is terminal device S1, offline number to be deleted According to Data Identification be Data1, belong in the S1R1 tables for subsequently deleting disk database DB sending side terminal equipment S1 from Line number is according to " hello ".
Again for example, the correlated identities information of data to be deleted can also include the sender's belonging to off-line data to be deleted The initial data mark of identification information and off-line data to be deleted and quantity information, such as terminal device R1 sends to server and obtains Second acquisition request Request2 of off-line data, such as " SentPCID=terminal device S1-StartID=Data3- NumCount=1-DelStartID=Data1-DelNum=2 ";Server is extracted to be waited to delete in the second acquisition request Request2 Except the affiliated sender of off-line data identification information be terminal device S1, off-line data to be deleted initial data be designated The quantity of Data1 and off-line data to be deleted is 2, and in the S1R1 tables for subsequently deleting disk database DB sender's end is belonged to End equipment S1 from Data1 starting latter two off-line data " hello " and " kid ".
It should be noted that those skilled in the art are it can be appreciated that the correlated identities information of data to be deleted can be wrapped Various identification informations are included, though the present embodiment can illustrate that here is not by taking the correlated identities information of specific data to be deleted as an example Limit.
By the present embodiment, the need according to user can be realized with the relevant information of the self-defined data to be deleted of personalization The corresponding off-line data of deletion, the off-line data needed for so as to remain user is asked further, to improve the use body of user Test.
Preferably, if predetermined storage region includes cache database, step S1010 further includes step S1015 With step S1016;Step S1015:Determine from cache database according to the first acquisition request for receiving corresponding many Individual first off-line data;Step S1016:If corresponding arbitrary first off-line data is not stored in cache database, from disk number Determine corresponding arbitrary first off-line data according to searching in storehouse.
For example, also sending side terminal equipment S1 is intended to into 3 off-line datas " hello ", " kid " sending to terminal device R1 " apple " stores the S1R1 tables into cache database CacheDB, and the identification information of 3 off-line datas is respectively Data1, Data2 and Data3;After terminal device R1 reaches the standard grade, terminal device R1 sends acquisition terminal device R1 and exists to server First acquisition request of the off-line data during offline, such as " SentPCID=terminal device S1-StartID=Data3- NumCount=1 ";Server obtains the first acquisition request of off-line data according to the terminal device R1 for receiving, in caching number After making a look up in the CacheDB of storehouse, the corresponding off-line datas of identification information Data3 for determining off-line data to be obtained are “apple”;If after making a look up in cache database CacheDB, not getting the identification information of off-line data to be obtained The corresponding off-line datas of Data3, then search from disk database DB, determines the identification information Data3 of off-line data to be obtained Corresponding off-line data is " apple ".
Preferably, if predetermined storage region includes cache database, step S1040 is deleted in predetermined storage region The data record of at least one of multiple first off-line datas the first off-line data, the step of further include step S1045; Step S1045:Delete at least one of multiple first off-line datas first in cache database and/or disk database offline The data record of data.
For example, server determines according to the first acquisition request for receiving from disk database DB and first obtains request After corresponding first off-line data " apple ", the first off-line data " apple " is sent to terminal device R1, and delete disk The data record of the first off-line data " apple " in database D B, it is first offline when being also stored with cache database CacheDB During the data record of data " apple ", while deleting the data note of cache database the first off-line datas of CacheDB " apple " Record.
Preferably, the method also includes step S1060 and step S1070;Step S1060:For in predetermined storage region Each off-line data for having stored is respectively provided with expired time;Step S1070:When the storage time for monitoring arbitrary off-line data When being reached for the expired time of its setting, corresponding off-line data in predetermined storage region is deleted.
For example, it is that to arrange expired time be " 2016- for the record information of off-line data " happy " in disk database DB 12-22 12:00:00 ", if current time is " 2016-12-22 12:00:When 00 ", then off-line data " happy " record information The record time be reached for the expired time of its setting, subsequently delete corresponding off-line data " happy " in disk database DB Record information, if being also stored with off-line data " happy " in cache database CacheDB, cache database is deleted simultaneously With the record information of off-line data " happy " in CacheDB.
Again for example, it is that the record information of off-line data " happy " in cache database CacheDB arranges expired time and is 4 hours, the storage time that off-line data " happy " is also recorded in disk database DB was " 2016-12-22 12:00:00”;If Current time is " 2016-12-22 16:00:When 00 ", then the record time of off-line data " happy " record information be reached for it The expired time of setting, subsequently deletes the record information of corresponding off-line data " happy " in cache database CacheDB.
It is that each off-line data record information recorded in predetermined storage region was respectively provided with by the present embodiment Time phase, useless off-line data can be in time deleted, increase the memory space of predetermined storage area, further improve predetermined The data storage efficiency of storage region, it is to avoid because bulk redundancy off-line data causes the situation of predetermined storage area storage collapse to send out It is raw.
Preferably, the method also includes step S1080;Step S1080:It is right according to predetermined data signature generating mode Multiple off-line datas are signed successively.
For example, according to predetermined data signature mode, server carries out data for off-line data Data001 and Data002 Signature, such as the data content of off-line data Data001 be " what ", off-line data Data002 data content be " why ", root According to predetermined data signature mode by the data signature of off-line data Data001 be Msg:R, wherein, r represents data content " what ", in the same fashion, the data signature of off-line data Data002 is such as Msg:T, r represent data content " why ", Subsequently, by the data signature Msg of off-line data Data001 and Data002:R and Msg:T is recorded to predetermined storage area, such as slow Position corresponding with off-line data Data001 and Data002 in the CacheDB of deposit data storehouse.
It should be noted that those skilled in the art are it can be appreciated that the mode of data signature has various, the present invention is implemented Off-line data can be illustrated in specific data signature mode as an example in example, but this is not limited;And transmission data row The storage mode of table, can be the mode of tables of data, or chained list mode, understand specifically to send in the embodiment of the present invention Illustrate as a example by the mode of data list, but this is not limited.
Preferably, send to before requesting party in arbitrary first off-line data or the second off-line data, also including step S1090;Step S1090:The data signature of arbitrary first off-line data or the second off-line data is recorded to transmission data list In.
For example, if off-line data Data001 is the first off-line data, off-line data Data001 is being sent to requesting party Before terminal device R1, by the data signature Msg of off-line data Data001:R is recorded to predetermined storage area, such as data cached In the transmission data list ListData of storehouse CacheDB;If off-line data Data002 is the second off-line data, will count offline Send to before requesting party terminal device R1 according to Data002, by the data signature Msg of off-line data Data002:T is recorded to pre- Storage region is determined, in the transmission data list ListData of such as cache database CacheDB.
It should be noted that send data list can store into predetermined cache database, it is also possible to store to pre- In fixed disk database, though embodiments of the invention can illustrate that here is not limited by taking specific storage location as an example.
Preferably, multiple first off-line datas or multiple second off-line datas are sent to requesting party specifically include successively: To successively send to requesting party including multiple first off-line datas or multiple second off-line datas of its respective data signature.
For example, successively by the data signature Msg of the first off-line data Data001 and Data001:R, and the second off-line data The data signature Msg of Data002 and Data002:T is sent to requesting party terminal device R1.
Preferably, step S1040 deletes at least one of multiple first off-line datas first in predetermined storage region The data record of off-line data further includes step S1046, step S1047 and step S1048;Step S1046:Extract second Obtain in request for the data signature to be verified of data to be deleted in multiple first off-line datas;Step S1047:Judge to send Whether record consistent with the data signature to be verified for data to be deleted in multiple first off-line datas in data list The data signature of off-line data;Step S1048:When judge record have it is consistent with the data signature to be verified of data to be deleted from The data signature of line number evidence, deletes and sends in data list the data signature of corresponding off-line data and its corresponding first offline Data.
For example, terminal device R1 sends the second acquisition request Request2 for obtaining off-line data to server, such as " SentPCID=terminal device S1-StartID=Data3-NumCount=1-DelSign=Msg:r/Msg:t”;Server Extracting the second data signature to be verified obtained in request Request2 for data to be deleted in multiple first off-line datas is Msg:R and Msg:T, subsequently determines whether whether recorded in transmission data list ListData and in multiple first off-line datas The data signature Msg to be verified of data to be deleted:R and Msg:The data signature of t consistent off-line data, when judge record have with The data signature Msg to be verified of data to be deleted:R and Msg:The data signature of t consistent off-line data, deletes and sends data row The data signature Msg of off-line data in table ListData:R and data signature Msg:The corresponding first off-line data Data001 of r, And delete send data list ListData in off-line data data signature Msg:T and data signature Msg:T corresponding first Off-line data Data002.
By the present embodiment, can quick and precisely delete arbitrary off-line data in predetermined storage area, it is to avoid deletion by mistake is treated The situation for deleting off-line data occurs.
Preferably, the data signature of arbitrary first off-line data or the second off-line data is recorded into transmission data list Afterwards, the method also includes step S1100 and step S1110;Step S1100:For send data list in recorded each from The data signature of line number evidence is respectively provided with expired time;Step S1110:When the note of the data signature for monitoring arbitrary off-line data The record time be reached for its setting expired time when, delete send data list in corresponding off-line data data signature and its Corresponding off-line data.
For example, it is that the data signature for sending the off-line data " happy " in data list ListData arranges expired time For " 2016-12-22 12:00:00 ", if current time is " 2016-12-2212:00:When 00 ", then off-line data " happy " The record time of data signature is reached for the expired time of its setting, subsequently deletes and sends corresponding in data list ListData The record information and its data signature of off-line data " happy ".
Again for example, it is that the data signature of off-line data " happy " in cache database CacheDB arranges expired time and is 4 hours, the storage time that off-line data " happy " data signature is also recorded in transmission data list ListData was " 2016- 12-22 12:00:00”;If current time is " 2016-12-2216:00:When 00 ", then off-line data " happy " data signature The record time be reached for the expired time of its setting, subsequently delete and send corresponding off-line data in data list ListData The record information and its data signature of " happy ".
Fig. 2 is the structural representation of the device of the transmission deferred information of another embodiment in the present invention.
In embodiments of the invention, the Description of content performed by each module is as follows:First reception and determining module 210 are received Requesting party obtains the first acquisition request of off-line data and according to the first acquisition request for receiving from predetermined storage region Determine corresponding multiple first off-line datas;First sending module 220 by multiple first off-line datas send successively to please The side of asking;Second reception and the reception requesting party of determining module 230 obtain the second acquisition of off-line data and ask what simultaneously foundation was received Second obtains request determines corresponding multiple second off-line datas from predetermined storage region;Delete and sending module 240 data records for deleting the first off-line data of at least one of multiple first off-line datas in predetermined storage region, and Multiple second off-line datas are sent successively to requesting party.
In embodiments of the invention, it is proposed that a kind of device for sending deferred information, receive requesting party and obtain off-line data The first acquisition request and determine from predetermined storage region according to the first acquisition request for receiving corresponding multiple First off-line data, multiple first off-line datas are sent successively to requesting party, are realized to be obtained according to the first of requesting party and are asked Ask and quickly determine corresponding first off-line data, timely and accurately the first off-line data can be sent to requesting party;Receive Requesting party obtains the second acquisition request of off-line data and according to the second acquisition request for receiving from predetermined storage region Determine corresponding multiple second off-line datas, delete at least in predetermined storage region in multiple first off-line datas The data record of individual first off-line data, and multiple second off-line datas are sent successively to requesting party, realize according to second Obtain the data that request is quickly automatically deleted in time at least one first off-line datas stored in predetermined storage region Record, alleviates in time the storage pressure of predetermined storage region, while improve the effect of the storage of predetermined storage region Rate, further, to quickly determine the corresponding off-line data of off-line data acquisition request important premise guarantee is provided.With It is described further for implementing for modules down:
First reception and determining module 210 are used to receive the first acquisition request of requesting party's acquisition off-line data and foundation connects The the first acquisition request for receiving determines corresponding multiple first off-line datas from predetermined storage region.
Specifically, the first acquisition request that requesting party obtains off-line data of the requesting party during offline, and foundation are received The the first acquisition request for receiving determines corresponding multiple first off-line datas from predetermined storage region.
Wherein, predetermined storage region includes cache database and disk database.
For example, in the data transmission procedure in terminal device S1 by server with terminal device R1, if terminal device R1 In off-line state, then server is intended to send to the data " happy " and " new " of terminal device R1 and stores to predetermined storage In region, in such as disk database DB, after terminal device R1 reaches the standard grade, terminal device R1 sends to server and obtains terminal device First acquisition request of off-line datas of the R1 during offline, server obtains off-line data according to the terminal device R1 for receiving First acquisition request, after making a look up in disk database DB, determine corresponding off-line data be " happy " and " new ".
First sending module 220 is used to successively send multiple first off-line datas to requesting party.
For example, in the data transmission procedure in terminal device S1 by server with terminal device R1, server foundation connects The terminal device R1 for receiving obtains the first acquisition request of off-line data, after server makes a look up in disk database DB, Determine that corresponding off-line data is " happy " and " new ", subsequently successively send off-line data " happy " and " new " to terminal Equipment R1.
Second reception and determining module 230 are used to receive the second acquisition request of requesting party's acquisition off-line data and foundation connects The the second acquisition request for receiving determines corresponding multiple second off-line datas from predetermined storage region.
For example, in the data transmission procedure in terminal device S1 by server with terminal device R1, server is received eventually End equipment R1 obtains the second acquisition request of off-line data, and server is according to the second acquisition request for receiving from disk database Multiple second off-line datas corresponding with the second acquisition request are determined in DB, such as " year " and " everyone ".
Delete and sending module 240 is used to delete at least one of multiple first off-line datas in predetermined storage region The data record of the first off-line data, and multiple second off-line datas are sent successively to requesting party.
It should be noted that when server receives the second acquisition request of requesting party, you can default request side is Have received server and obtain the first off-line data that request sends in response to first, therefore server can be obtained according to second and asked Ask, the first off-line data in predetermined storage region is deleted.
For example, server determines according to the second acquisition request for receiving from disk database DB and second obtains request After corresponding second off-line data " year " and " everyone ", the second off-line data " year " and " everyone " are sent out successively Deliver to terminal device R1, and request is obtained according to second, terminal device R1 can be given tacit consent to and have been received that server in response to the One obtains the first off-line data " happy " and " new " that request sends, and deletes the first off-line data in disk database DB The data record of " happy " and " new ".
Preferably, the first reception and determining module 210 further include the first extraction unit and the first determining unit;First Extraction unit is used to extract in the first acquisition request for the initial data mark and quantity information of off-line data to be obtained;First Determining unit is used for according to the initial data mark and quantity information for off-line data to be obtained, from predetermined storage region It is determined that identifying multiple first off-line datas starting, meeting quantity information from initial data.
For example, if the data identification information of off-line data " happy " and " new " is respectively 001 He in disk database DB 002, terminal device R1 send the first acquisition request Request1 for obtaining off-line data, such as " StartID=001 to server; NumCount=2;", server is received after the first acquisition request Request1 that terminal device R1 obtains off-line data, is extracted First obtains the initial data in request for off-line data to be obtained is designated " 001 " and quantity information for " 2 ";Subsequently from magnetic Determine that identifying 2 the first off-line datas that " 001 " starts, meeting quantity information from initial data is respectively in disk database D B Off-line data " happy " and " new ".
Preferably, the device also includes receiving and memory module;Receive and memory module is used to receive from multiple transmissions Side off-line data and by the off-line data for receiving according to the identification information storage of its respective sender to predetermined storage In region.
For example, set by server and terminal with terminal device R1, terminal device S2 by server in terminal device S1 In the data transmission procedure of standby R1, if terminal device R1 is changed to after off-line state from presence, server is received and comes spontaneous The off-line data " hello " of the side of sending terminal device S1 and the off-line data " world " of sending side terminal equipment S2, server will connect The off-line data " hello " for receiving is stored to disk database DB according to the identification information such as " terminal device S1 " of its sender In, and in disk database DB arrange off-line data " hello " data identification information be Data1, and will receive from Line number is stored into disk database DB, and in magnetic according to " world " according to the identification information such as " terminal device S2 " of its sender The data identification information that off-line data " world " is arranged in disk database D B is Data01.
Preferably, the first reception and determining module 210 further include the second extraction unit and the second determining unit;Second Extraction unit is used to extract the identification information of each sender in the first acquisition request for off-line data to be obtained, belongs to The initial data mark of each sender and quantity information;Second determining unit according to for each sender identification information, The initial data mark and quantity information of each sender are belonged to, is determined from predetermined storage region and is directed to each sender , identify start, multiple first off-line datas for meeting respective numbers information from the initial data for belonging to the sender.
For example, example is connected, server receives the first acquisition request that terminal device R1 obtains deferred information, such as " SentPCID=terminal device S1-StartID=Data1-NumCount=1;SentPCID=terminal device S2-StartID =Data01-NumCount=1 ", extracts first mark for obtaining the sender in request for off-line data to be obtained and believes Cease for terminal device S1 and terminal device S2, belong to the initial data mark Data1 and quantity letter of sending side terminal equipment S1 Breath 1, belongs to the initial data mark Data01 and quantity information 1 of sending side terminal equipment S2;Subsequently from disk database DB Middle determination sending side terminal equipment S1, from the initial data for belonging to sending side terminal equipment S1 be designated it is that Data1 starts, The first off-line data for meeting 1 quantity information is " hello ", and sending side terminal equipment S2 is determined from disk database DB , from the initial data for belonging to sending side terminal equipment S2 be designated it is that Data01 starts, meet 1 quantity information first Off-line data is " world ".
Preferably, delete and sending module 240 further includes that the 3rd extraction unit and first deletes unit;3rd extracts Unit is used to extract the identification information of each sender in the second acquisition request for off-line data to be obtained, belongs to each The initial data mark of sender;First deletion unit is used for according to the identification information for each sender, belongs to each Sender initial data mark, will belong in predetermined storage region each sender, initial data mark before from Line number evidence is deleted.
For example, in disk database DB, 3 offline numbers that sending side terminal equipment S1 is intended to send to terminal device R1 are stored According to " hello ", " kid " and " apple " to S1R1 tables, the identification information of 3 off-line datas be respectively Data1, Data2 and Data3;And store sending side terminal equipment S2 be intended to send to terminal device R1 2 off-line datas " world " and " phone " extremely S2R1 tables, the identification information of 2 off-line datas is respectively Data01 and Data02;Terminal device R1 sends to server and obtains Second acquisition request Request2 of off-line data, such as " SentPCID=terminal device S1-StartID=Data3- NumCount=1;SentPCID=terminal device S2-StartID=Data02-NumCount=1 ";Subsequently server is extracted Second identification information for obtaining the sender in request Request2 for off-line data to be obtained is terminal device S1, belongs to The initial data of sending side terminal equipment S1 is designated Data3, and extracts the identification information of the sender of off-line data to be obtained Data02 is designated for terminal device S2, the initial data for belonging to sending side terminal equipment S2, disk database is subsequently deleted The whole off-line datas before sending side terminal equipment S1, initial data mark Data3 are belonged in the S1R1 tables of DB " hello " and " kid ", and delete sending side terminal equipment S2, initial data are belonged in the S2R1 tables of disk database DB Whole off-line datas " world " before mark Data02.
By the present embodiment, can off-line data that rapidly and accurately removal request side has been received by such that it is able in time The memory space of ground release predetermined storage area, is effectively improved the storage efficiency of predetermined storage area, it is to avoid because a large amount of superfluous Remaining off-line data causes the situation of predetermined storage area storage collapse to occur.
Preferably, delete and sending module 240 further includes that the 4th extraction unit and second deletes unit;4th extracts Unit is used to extract in the second acquisition request for the correlated identities information of data to be deleted;Second deletes unit is used for according to pin Correlated identities information to data to be deleted, corresponding first off-line data in predetermined storage region is deleted.
Wherein, the correlated identities information of data to be deleted includes the identification information of the sender belonging to off-line data to be deleted And the Data Identification of off-line data to be deleted.
For example, terminal device R1 sends the second acquisition request Request2 for obtaining off-line data to server, such as " SentPCID=terminal device S1-StartID=Data3-NumCount=1-DelID=Data1 ";Server extracts second The identification information for obtaining the affiliated sender of off-line data to be deleted in request Request2 is terminal device S1, offline number to be deleted According to Data Identification be Data1, belong in the S1R1 tables for subsequently deleting disk database DB sending side terminal equipment S1 from Line number is according to " hello ".
Again for example, the correlated identities information of data to be deleted can also include the sender's belonging to off-line data to be deleted The initial data mark of identification information and off-line data to be deleted and quantity information, such as terminal device R1 sends to server and obtains Second acquisition request Request2 of off-line data, such as " SentPCID=terminal device S1-StartID=Data3- NumCount=1-DelStartID=Data1-DelNum=2 ";Server is extracted to be waited to delete in the second acquisition request Request2 Except the affiliated sender of off-line data identification information be terminal device S1, off-line data to be deleted initial data be designated The quantity of Data1 and off-line data to be deleted is 2, and in the S1R1 tables for subsequently deleting disk database DB sender's end is belonged to End equipment S1 from Data1 starting latter two off-line data " hello " and " kid ".
It should be noted that those skilled in the art are it can be appreciated that the correlated identities information of data to be deleted can be wrapped Various identification informations are included, though the present embodiment can illustrate that here is not by taking the correlated identities information of specific data to be deleted as an example Limit.
By the present embodiment, the need according to user can be realized with the relevant information of the self-defined data to be deleted of personalization The corresponding off-line data of deletion, the off-line data needed for so as to remain user is asked further, to improve the use body of user Test.
Preferably, if predetermined storage region includes cache database, first receives and the further bag of determining module 210 Include the 3rd determining unit and searching unit;3rd determining unit is used for according to the first acquisition request for receiving from cache database It is middle to determine corresponding multiple first off-line datas;If searching unit is used to not store corresponding arbitrary the in cache database One off-line data, searches to determine corresponding arbitrary first off-line data from disk database.
For example, also sending side terminal equipment S1 is intended to into 3 off-line datas " hello ", " kid " sending to terminal device R1 " apple " stores the S1R1 tables into cache database CacheDB, and the identification information of 3 off-line datas is respectively Data1, Data2 and Data3;After terminal device R1 reaches the standard grade, terminal device R1 sends acquisition terminal device R1 and exists to server First acquisition request of the off-line data during offline, such as " SentPCID=terminal device S1-StartID=Data3- NumCount=1 ";Server obtains the first acquisition request of off-line data according to the terminal device R1 for receiving, in caching number After making a look up in the CacheDB of storehouse, the corresponding off-line datas of identification information Data3 for determining off-line data to be obtained are “apple”;If after making a look up in cache database CacheDB, not getting the identification information of off-line data to be obtained The corresponding off-line datas of Data3, then search from disk database DB, determines the identification information Data3 of off-line data to be obtained Corresponding off-line data is " apple ".
Preferably, if predetermined storage region includes cache database, delete and sending module 240 further includes the Three delete unit;3rd deletion unit is used to delete in cache database and/or disk database in multiple first off-line datas At least one first off-line datas data record.
For example, server determines according to the first acquisition request for receiving from disk database DB and first obtains request After corresponding first off-line data " apple ", the first off-line data " apple " is sent to terminal device R1, and delete disk The data record of the first off-line data " apple " in database D B, it is first offline when being also stored with cache database CacheDB During the data record of data " apple ", while deleting the data note of cache database the first off-line datas of CacheDB " apple " Record.
Preferably, the device also includes the first setup module and the first monitoring and removing module;First setup module is used for Each off-line data to have stored in predetermined storage region is respectively provided with expired time;First monitoring and removing module are used for When the storage time for monitoring arbitrary off-line data is reached for the expired time of its setting, delete right in predetermined storage region The off-line data answered.
For example, it is that to arrange expired time be " 2016- for the record information of off-line data " happy " in disk database DB 12-22 12:00:00 ", if current time is " 2016-12-22 12:00:When 00 ", then off-line data " happy " record information The record time be reached for the expired time of its setting, subsequently delete corresponding off-line data " happy " in disk database DB Record information, if being also stored with off-line data " happy " in cache database CacheDB, cache database is deleted simultaneously With the record information of off-line data " happy " in CacheDB.
Again for example, it is that the record information of off-line data " happy " in cache database CacheDB arranges expired time and is 4 hours, the storage time that off-line data " happy " is also recorded in disk database DB was " 2016-12-22 12:00:00”;If Current time is " 2016-12-22 16:00:When 00 ", then the record time of off-line data " happy " record information be reached for it The expired time of setting, subsequently deletes the record information of corresponding off-line data " happy " in cache database CacheDB.
It is that each off-line data record information recorded in predetermined storage region was respectively provided with by the present embodiment Time phase, useless off-line data can be in time deleted, increase the memory space of predetermined storage area, further improve predetermined The data storage efficiency of storage region, it is to avoid because bulk redundancy off-line data causes the situation of predetermined storage area storage collapse to send out It is raw.
Preferably, the device also includes signature blocks;Signature blocks are used for according to predetermined data signature generating mode, right Multiple off-line datas are signed successively.
For example, according to predetermined data signature mode, server carries out data for off-line data Data001 and Data002 Signature, such as the data content of off-line data Data001 be " what ", off-line data Data002 data content be " why ", root According to predetermined data signature mode by the data signature of off-line data Data001 be Msg:R, wherein, r represents data content " what ", in the same fashion, the data signature of off-line data Data002 is such as Msg:T, r represent data content " why ", Subsequently, by the data signature Msg of off-line data Data001 and Data002:R and Msg:T is recorded to predetermined storage area, such as slow Position corresponding with off-line data Data001 and Data002 in the CacheDB of deposit data storehouse.
It should be noted that those skilled in the art are it can be appreciated that the mode of data signature has various, the present invention is implemented Off-line data can be illustrated in specific data signature mode as an example in example, but this is not limited;And transmission data row The storage mode of table, can be the mode of tables of data, or chained list mode, understand specifically to send in the embodiment of the present invention Illustrate as a example by the mode of data list, but this is not limited.
Preferably, send to before requesting party in arbitrary first off-line data or the second off-line data, also including second Send module;Second sending module is used to the data signature of arbitrary first off-line data or the second off-line data is recorded to transmission number According in list.
For example, if off-line data Data001 is the first off-line data, off-line data Data001 is being sent to requesting party Before terminal device R1, by the data signature Msg of off-line data Data001:R is recorded to predetermined storage area, such as data cached In the transmission data list ListData of storehouse CacheDB;If off-line data Data002 is the second off-line data, will count offline Send to before requesting party terminal device R1 according to Data002, by the data signature Msg of off-line data Data002:T is recorded to pre- Storage region is determined, in the transmission data list ListData of such as cache database CacheDB.
It should be noted that send data list can store into predetermined cache database, it is also possible to store to pre- In fixed disk database, though embodiments of the invention can illustrate that here is not limited by taking specific storage location as an example.
Preferably, multiple first off-line datas or multiple second off-line datas are sent successively to requesting party specifically for inciting somebody to action Send successively to requesting party including multiple first off-line datas or multiple second off-line datas of its respective data signature.
For example, successively by the data signature Msg of the first off-line data Data001 and Data001:R, and the second off-line data The data signature Msg of Data002 and Data002:T is sent to requesting party terminal device R1.
Preferably, delete and sending module 240 further includes that the 5th extraction unit, judging unit and the 4th delete single Unit;5th extraction unit be used to extracting second obtain in request in multiple first off-line datas data to be deleted it is to be verified Data signature;Whether judging unit is used to judge to send recorded in data list to wait to delete with being directed in multiple first off-line datas Except the data signature of the consistent off-line data of the data signature to be verified of data;4th deletion unit be used for when judge record have with The data signature of the consistent off-line data of the data signature to be verified of data to be deleted, delete send in data list it is corresponding from The data signature of line number evidence and its corresponding first off-line data.
For example, terminal device R1 sends the second acquisition request Request2 for obtaining off-line data to server, such as " SentPCID=terminal device S1-StartID=Data3-NumCount=1-DelSign=Msg:r/Msg:t”;Server Extracting the second data signature to be verified obtained in request Request2 for data to be deleted in multiple first off-line datas is Msg:R and Msg:T, subsequently determines whether whether recorded in transmission data list ListData and in multiple first off-line datas The data signature Msg to be verified of data to be deleted:R and Msg:The data signature of t consistent off-line data, when judge record have with The data signature Msg to be verified of data to be deleted:R and Msg:The data signature of t consistent off-line data, deletes and sends data row The data signature Msg of off-line data in table ListData:R and data signature Msg:The corresponding first off-line data Data001 of r, And delete send data list ListData in off-line data data signature Msg:T and data signature Msg:T corresponding first Off-line data Data002.
By the present embodiment, can quick and precisely delete arbitrary off-line data in predetermined storage area, it is to avoid deletion by mistake is treated The situation for deleting off-line data occurs.
Preferably, the data signature of arbitrary first off-line data or the second off-line data is recorded into transmission data list Afterwards, the device also includes the second setup module and the second monitoring and removing module;Second setup module is used for send data row The data signature of each off-line data recorded in table is respectively provided with expired time;Second monitoring and removing module are used for when prison When the record time for measuring the data signature of arbitrary off-line data is reached for the expired time of its setting, deletes and send data list In corresponding off-line data data signature and its corresponding off-line data.
For example, it is that the data signature for sending the off-line data " happy " in data list ListData arranges expired time For " 2016-12-22 12:00:00 ", if current time is " 2016-12-2212:00:When 00 ", then off-line data " happy " The record time of data signature is reached for the expired time of its setting, subsequently deletes and sends corresponding in data list ListData The record information and its data signature of off-line data " happy ".
Again for example, it is that the data signature of off-line data " happy " in cache database CacheDB arranges expired time and is 4 hours, the storage time that off-line data " happy " data signature is also recorded in transmission data list ListData was " 2016- 12-22 12:00:00”;If current time is " 2016-12-2216:00:When 00 ", then off-line data " happy " data signature The record time be reached for the expired time of its setting, subsequently delete and send corresponding off-line data in data list ListData The record information and its data signature of " happy ".
During those skilled in the art of the present technique are appreciated that the present invention includes being related to for performing operation described herein One or more of equipment.These equipment can be for needed for purpose and specially design and manufacture, or can also include general Known device in computer.These equipment have the computer program being stored in it, and these computer programs are optionally Activation is reconstructed.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or be stored in It is suitable to store and e-command and is coupled to respectively in any kind of medium of bus, the computer-readable medium is included but not Be limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, only Read memory), RAM (Random Access Memory, immediately memory), EPROM (Erasable Programmable Read-Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, EEPROM), flash memory, magnetic card or light line card Piece.It is, computer-readable recording medium include being stored in the form of it can read by equipment (for example, computer) or transmission information any Jie Matter.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or The combination of each frame and these structure charts and/or block diagram and/or the frame in flow graph in block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that can by these computer program instructions be supplied to all-purpose computer, special purpose computer or other The processor of programmable data processing method realizing, so as to pass through the process of computer or other programmable data processing methods Device is come the scheme specified in the frame or multiple frames that perform structure chart disclosed by the invention and/or block diagram and/or flow graph.
Those skilled in the art of the present technique are appreciated that in various operations, method, the flow process discussed in the present invention Step, measure, scheme can be replaced, changed, combined or deleted.Further, it is each with what is discussed in the present invention Other steps, measure in kind operation, method, flow process, scheme can also be replaced, changed, reset, decomposed, combined or deleted. Further, it is of the prior art with various operations, method, the flow process disclosed in the present invention in step, measure, scheme Can also be replaced, changed, reset, decomposed, combined or deleted.
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. it is a kind of send deferred information method, including:
Receive requesting party to obtain the first acquisition request of off-line data and obtain request from predetermined according to receive described first Storage region in determine corresponding multiple first off-line datas;
The plurality of first off-line data is sent successively to the requesting party;
Receive the requesting party obtain off-line data the second acquisition request and according to receive described second obtain request from Corresponding multiple second off-line datas are determined in the predetermined storage region;
Delete the number of the first off-line data of at least one of multiple first off-line datas described in the predetermined storage region According to record, and the plurality of second off-line data is sent successively to the requesting party.
2. method according to claim 1, wherein, what the foundation was received described first obtains request and deposits from predetermined Corresponding multiple first off-line datas are determined in storage area domain, including:
Extract described first to obtain in request for the initial data mark and quantity information of off-line data to be obtained;
According to the initial data mark and quantity information for off-line data to be obtained, determine from predetermined storage region Multiple first off-line datas starting, meeting the quantity information are identified from the initial data.
3. method according to claim 2, wherein, also include:
Receive from multiple senders off-line data and by the off-line data for receiving according to its respective sender mark Information Store is into the predetermined storage region;
Wherein, the foundation receive described first obtain request determine from predetermined storage region it is corresponding multiple First off-line data, including:
Extract described first obtain the identification information of each sender that off-line data to be obtained is directed in request, belong to each The initial data mark of sender and quantity information;
Identify and quantity information according to the identification information for being directed to each sender, the initial data for belonging to each sender, from Determine in predetermined storage region for each sender, identify from the initial data for belonging to the sender it is starting, full Multiple first off-line datas of sufficient respective numbers information.
4. the method according to any one of claim 1-3, wherein, it is described to delete many described in the predetermined storage region The data record of at least one of individual first off-line data the first off-line data, including:
Extract described second obtain the identification information of each sender that off-line data to be obtained is directed in request, belong to each The initial data mark of sender;
According to the identification information for being directed to each sender, the initial data mark for belonging to each sender, will be described predetermined Belong to off-line data before each sender, initial data mark in storage region to be deleted.
5. the method according to any one of claim 1-3, wherein, it is described to delete many described in the predetermined storage region The data record of at least one of individual first off-line data the first off-line data, including:
Extract described second to obtain in request for the correlated identities information of data to be deleted;
According to the correlated identities information for data to be deleted, by corresponding first off-line data in the predetermined storage region Deleted;
Wherein, the correlated identities information of the data to be deleted includes the identification information of the sender belonging to off-line data to be deleted And the Data Identification of off-line data to be deleted.
6. according to the method for any one of claim 1-5, wherein, the predetermined storage region includes cache database and disk Database;
Wherein, the foundation receive described first obtain request determine from predetermined storage region it is corresponding multiple First off-line data, including:
Request is obtained according to receive described first determine that corresponding multiple first are offline from the cache database Data;
If not storing corresponding arbitrary first off-line data in the cache database, search with true from the disk database Fixed corresponding arbitrary first off-line data;
Wherein, at least one of multiple first off-line datas first are offline described in the deletion predetermined storage region The data record of data, including:
Delete at least one of multiple first off-line datas first described in the cache database and/or disk database from The data record of line number evidence.
7. the method according to any one of claim 1-6, it is characterised in that also include:
Each off-line data to have stored in the predetermined storage region is respectively provided with expired time;
When the storage time for monitoring arbitrary off-line data is reached for the expired time of its setting, the predetermined storage is deleted Corresponding off-line data in region.
8. the method according to any one of claim 1-7, wherein, also include:
According to predetermined data signature generating mode, the plurality of off-line data is signed successively;
Wherein, send to before the requesting party in arbitrary first off-line data or the second off-line data, also include:
The data signature of arbitrary first off-line data or the second off-line data is recorded into transmission data list;
Wherein, it is described successively to send the plurality of first off-line data or the plurality of second off-line data to the request Side, including:
To include its respective data signature multiple first off-line datas or multiple second off-line datas send successively to it is described please The side of asking.
9. method according to claim 8, wherein, it is described delete described in the predetermined storage region multiple first from The data record of at least one of line number evidence the first off-line data, including:
Extract described second to obtain in request for the data signature to be verified of data to be deleted in multiple first off-line datas;
Judge whether to be recorded in the transmission data list with multiple first off-line datas data to be deleted it is to be tested The data signature of the consistent off-line data of card data signature;
When judgement record has the data signature of the off-line data consistent with the data signature to be verified of data to be deleted, delete described Send the data signature and its corresponding first off-line data of corresponding off-line data in data list.
10. it is a kind of send deferred information device, including:
First receives and determining module, what the first acquisition request and foundation for receiving requesting party's acquisition off-line data was received Described first obtains request determines corresponding multiple first off-line datas from predetermined storage region;
First sending module, for the plurality of first off-line data to be sent successively to the requesting party;
Second receives and determining module, for receiving the second acquisition request of requesting party's acquisition off-line data simultaneously according to reception To it is described second obtain request corresponding multiple second off-line datas are determined from the predetermined storage region;
Delete and sending module, for deleting described in the predetermined storage region at least in multiple first off-line datas The data record of individual first off-line data, and the plurality of second off-line data is sent successively to the requesting party.
CN201611251536.6A 2016-12-29 2016-12-29 Method and apparatus for transmitting offline messages Pending CN106685804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611251536.6A CN106685804A (en) 2016-12-29 2016-12-29 Method and apparatus for transmitting offline messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611251536.6A CN106685804A (en) 2016-12-29 2016-12-29 Method and apparatus for transmitting offline messages

Publications (1)

Publication Number Publication Date
CN106685804A true CN106685804A (en) 2017-05-17

Family

ID=58873558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611251536.6A Pending CN106685804A (en) 2016-12-29 2016-12-29 Method and apparatus for transmitting offline messages

Country Status (1)

Country Link
CN (1) CN106685804A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462545A (en) * 2018-12-26 2019-03-12 北京云中融信网络科技有限公司 Message delet method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794723A (en) * 2005-10-11 2006-06-28 华为技术有限公司 Processing method of off-line message
CN102355426A (en) * 2011-06-30 2012-02-15 北京神州泰岳软件股份有限公司 Method for transmitting off-line file and system
CN103546437A (en) * 2012-07-16 2014-01-29 中兴通讯股份有限公司 Method, UE (user equipment) and AS (application server) for transceiving offline messages in IMS (IP multimedia system)
JP2014532323A (en) * 2011-09-16 2014-12-04 ▲騰▼▲訊▼科技(深▲セン▼)有限公司 Mobile multimedia real-time transcoding system, apparatus, storage medium, and method
CN104216659A (en) * 2013-05-30 2014-12-17 中兴通讯股份有限公司 Off-line message storage method and servers
CN106254561A (en) * 2016-10-12 2016-12-21 上海安馨信息科技有限公司 The real-time offline download method of a kind of Internet resources file and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1794723A (en) * 2005-10-11 2006-06-28 华为技术有限公司 Processing method of off-line message
CN102355426A (en) * 2011-06-30 2012-02-15 北京神州泰岳软件股份有限公司 Method for transmitting off-line file and system
JP2014532323A (en) * 2011-09-16 2014-12-04 ▲騰▼▲訊▼科技(深▲セン▼)有限公司 Mobile multimedia real-time transcoding system, apparatus, storage medium, and method
CN103546437A (en) * 2012-07-16 2014-01-29 中兴通讯股份有限公司 Method, UE (user equipment) and AS (application server) for transceiving offline messages in IMS (IP multimedia system)
CN104216659A (en) * 2013-05-30 2014-12-17 中兴通讯股份有限公司 Off-line message storage method and servers
CN106254561A (en) * 2016-10-12 2016-12-21 上海安馨信息科技有限公司 The real-time offline download method of a kind of Internet resources file and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462545A (en) * 2018-12-26 2019-03-12 北京云中融信网络科技有限公司 Message delet method and device

Similar Documents

Publication Publication Date Title
CN106033393B (en) A kind of applied program testing method and system and mobile terminal
CN104320325B (en) A kind of information push method and device
CN109842712B (en) Call record generation method and device, computer equipment and storage medium
JP2007028462A5 (en)
CN104301428B (en) Data synchronization method and server
CN104936157B (en) A kind of phone number binding account acquisition methods and system
CN105933723A (en) Video continuous playing method, device and system
CN107391168B (en) animation loading method and device and request processing method and device
CN110166346A (en) A kind of display methods and equipment of chat messages
CN102456130A (en) Method and system for verifying user identity document by face
CN106685640A (en) Generating method of electronic evidence fixed information and electronic evidence fixed server
CN107241417A (en) A kind of method, system, transmitting terminal and the receiving terminal of file transmission
CN109525949A (en) Register method and device, storage medium, server, user terminal
CN106656763A (en) Method and device for sending offline message
CN106685804A (en) Method and apparatus for transmitting offline messages
CN106875968B (en) Information acquisition method, client and system
CN103024136A (en) Mobile phone with short message cancelling function and short message cancelling method thereof
CN112672086B (en) Audio and video equipment data acquisition, analysis, early warning system
CN109189610B (en) Method for processing server monitoring data under linux
CN111198855B (en) Log data processing method and device
CN106790181A (en) The verification method of electronic health record file, server and terminal device
CN113961925A (en) Container escape detection method and device
CN107800521A (en) A kind of data acquisition storage method of highly reliable free of losses
CN114546957A (en) Intelligent centralized data processing service platform
CN104639585B (en) A kind of real-time data transmission system and its method of data synchronization

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170517

RJ01 Rejection of invention patent application after publication