CN108881354A - A kind of pushed information storage method, device, server and computer storage medium - Google Patents

A kind of pushed information storage method, device, server and computer storage medium Download PDF

Info

Publication number
CN108881354A
CN108881354A CN201710365891.4A CN201710365891A CN108881354A CN 108881354 A CN108881354 A CN 108881354A CN 201710365891 A CN201710365891 A CN 201710365891A CN 108881354 A CN108881354 A CN 108881354A
Authority
CN
China
Prior art keywords
information
pushed
mark
terminal
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710365891.4A
Other languages
Chinese (zh)
Other versions
CN108881354B (en
Inventor
阚杰
肖涛
陈路远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710365891.4A priority Critical patent/CN108881354B/en
Publication of CN108881354A publication Critical patent/CN108881354A/en
Application granted granted Critical
Publication of CN108881354B publication Critical patent/CN108881354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/55Push-based network services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement
    • 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]

Abstract

The embodiment of the invention discloses a kind of pushed information storage method, the method includes:It receives and is requested for the push of pushed information at least two terminals;Wherein, the mark of the mark and information to be pushed of the terminal is carried in the push request;The push request is responded, the mark based on the information to be pushed obtains information to be pushed;Based on the mark of the terminal, the index mark of the information to be pushed is generated;The first corresponding relationship between the mark of the terminal and the index mark is established, and stores first corresponding relationship;It determines the storage location of the information to be pushed, and stores the information to be pushed;The second corresponding relationship between the index mark and the storage location of the information to be pushed is established, and stores second corresponding relationship.The embodiment of the present invention also discloses a kind of pushed information storage device, server and computer storage medium simultaneously.

Description

A kind of pushed information storage method, device, server and computer storage medium
Technical field
The present invention relates in the communications field information advancing technique more particularly to a kind of pushed information storage method, device, Server and computer storage medium.
Background technique
With the development of internet (especially mobile Internet) and social networks, the application layer with social attribute It is not poor out.The application of social attribute can not only reinforce user's viscosity, additionally aid business side and carry out business promotion.For having The application of social functions, a kind of important scenes are would generally be based on certain marketing purpose (such as sweepstake) for complete using side Portion user carries out information push, increases user's activity;Also, this crew's pushed information is characterized in each user information entity It is identical.
In the prior art, the sender of crew's push is each connect by reading current all user lists, and independently Debit sends the pushed information with identical information body.When carrying out information transmission, if recipient is not currently in Line, sender just need to store information;If largely recipient is not online, transmission hair needs to store multiple wait push away It delivers letters breath, needs memory space larger at this time, cause the significant wastage of memory space.
Summary of the invention
In order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of pushed information storage methods, device, service Device and computer storage medium solve the problems, such as to need to store multiple information to be pushed, pole in existing information push scheme Big saves memory space, avoids the waste of resource.
What the technical solution of the embodiment of the present invention was realized in:
In a first aspect, the embodiment of the present invention provides a kind of pushed information storage method, the method includes:
It receives and is requested for the push of pushed information at least two terminals;Wherein, it is carried in the push request State the mark of terminal and the mark of information to be pushed;
The push request is responded, the mark based on the information to be pushed obtains information to be pushed;
Based on the mark of the terminal, the index mark of the information to be pushed is generated;
The first corresponding relationship between the mark of the terminal and the index mark is established, and it is corresponding to store described first Relationship;
It determines the storage location of the information to be pushed, and stores the information to be pushed;
The second corresponding relationship between the index mark and the storage location of the information to be pushed is established, and stores institute State the second corresponding relationship.
Second aspect, the embodiment of the present invention provide a kind of pushed information storage device, and described device includes:First receives list Member, first acquisition unit, first establishing unit, first processing units and second establish unit, wherein:
First receiving unit is used for the push request of pushed information at least two terminals for receiving;Wherein, institute It states in push request and carries the mark of the terminal and the mark of information to be pushed;
The first acquisition unit, for responding push request, the mark based on the information to be pushed obtain to Pushed information;
The first acquisition unit is also used to the mark based on the terminal, generates the index mark of the information to be pushed Know;
The first establishing unit, the first corresponding pass for establishing between the mark of the terminal and the index mark System, and store first corresponding relationship;
The first processing units for determining the storage location of the information to be pushed, and store the letter to be pushed Breath;
Described second establishes unit, for establishing between the index mark and the storage location of the information to be pushed Second corresponding relationship, and store second corresponding relationship.
The third aspect, the embodiment of the present invention provide a kind of server, and the server includes:Processor and communication interface, Wherein:
The processor is asked for being received by the communication interface for the push of pushed information at least two terminals It asks;The mark of the mark and information to be pushed of the terminal is carried in the push request;The push request is responded, is based on The mark of the information to be pushed obtains information to be pushed;Based on the mark of the terminal, the rope of the information to be pushed is generated Tendering is known;The first corresponding relationship between the mark of the terminal and the index mark is established, and it is corresponding to store described first Relationship;It determines the storage location of the information to be pushed, and stores the information to be pushed;Establish index mark with it is described The second corresponding relationship between the storage location of information to be pushed, and store second corresponding relationship.
Fourth aspect, the embodiment of the present invention provide a kind of computer storage medium, store in the computer storage medium There are computer executable instructions, the computer executable instructions are for executing pushed information storage method described in first aspect.
Pushed information storage method, device, server and computer storage medium, connect provided by the embodiment of the present invention It receives push request and the mark based on information to be pushed obtains information to be pushed, the mark based on terminal generates information to be pushed Index mark, the first corresponding relationship established between the mark of terminal and index mark simultaneously store the first corresponding relationship, terminal Mark and the mark of information to be pushed carry in push request, determine the storage location of information to be pushed and store letter to be pushed Breath, the second corresponding relationship established between index mark and the storage location of information to be pushed simultaneously store the second corresponding relationship, this Sample can identify close corresponding with the mark of terminal when pushing information to be pushed according to the index of the information to be pushed of storage System, index mark and the storage location corresponding relationship of information to be pushed get the information to be pushed, therefore do not need repeatedly to deposit Information to be pushed is stored up, solves the problems, such as to need to store multiple information to be pushed in existing information push scheme, is greatly saved Memory space has been saved, the waste of resource is avoided.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for pushed information storage method that the embodiment of the present invention provides;
Fig. 2 is the flow diagram for another pushed information storage method that the embodiment of the present invention provides;
Fig. 3 is the flow diagram for another pushed information storage method that the embodiment of the present invention provides;
Fig. 4 is the signal of the number aggregation module in a kind of pushed information storage method that the embodiment of the present invention provides Figure;
Fig. 5 is showing for the public message memory module in a kind of pushed information storage method that the embodiment of the present invention provides It is intended to;
Fig. 6 is the schematic diagram that the message in a kind of pushed information storage method that the embodiment of the present invention provides pulls;
Fig. 7 is the schematic diagram that the embodiment of the present invention shares that storage server stores the first information and the first mapping relations;
Fig. 8 is the process flow signal that user of group of the embodiment of the present invention message distribution services device into group distributes information Figure;
Fig. 9 is the processing flow schematic diagram that a terminal provided in an embodiment of the present invention obtains information off-line;
Figure 10 is a kind of structural schematic diagram for pushed information storage device that the embodiment of the present invention provides;
Figure 11 is a kind of structural schematic diagram for server that the embodiment of the present invention provides;
Figure 12 is a kind of structural schematic diagram for system that the embodiment of the present invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description.
The embodiment of the present invention provides a kind of pushed information storage method, and shown referring to Fig.1, this method includes following step Suddenly:
Step 101 is received and is requested for the push of pushed information at least two terminals.
Wherein, the mark of terminal and the mark of information to be pushed are carried in push request.
In other embodiments of the invention, step 101 is received asks for the push of pushed information at least two terminals It asks to can be by server and realize;The server can be the server that same information can be sent to multiple terminals, i.e., The server of crew's transmission service can be carried out, crew's push refers to can be to total user (i.e. terminal) PUSH message;When So, the server and at least two terminals have communication connection.
Push request is that the operator (administrator) of server front end needs for some information to be pushed to total user terminal When active transmission to server;Certainly, push request can be life after some function in operator's trigger the server At.
Step 102, response push request, the mark based on information to be pushed obtain information to be pushed.
Wherein, step 102 response push request, the mark based on information to be pushed obtain information to be pushed and can be by taking Device is engaged in realize;When operator sends push request to server, the mark of information to be pushed can be server and need Which type of information is pushed, or, information to be pushed is what information etc.;Therefore, server receives push request The information to be pushed for needing to send can be obtained according to the type information in push request afterwards.
Step 103, the mark based on terminal generate the index mark of information to be pushed.
In other embodiments of the invention, mark of the step 103 based on terminal generates the index mark of information to be pushed It can be by server and to realize;The index mark of information to be pushed is a globally unique mark, and indexes mark It is to obtain information to be pushed for indexing (there is corresponding relationship i.e. between the storage location of information to be pushed).
The first corresponding relationship between step 104, the mark for establishing terminal and index mark, and storage first is corresponded to and is closed System.
In other embodiments of the invention, it is corresponding indexing first between identifying to establish identifying for terminal for step 104 Relationship, and store the first corresponding relationship and can be by server and realize;First corresponding relationship can store works as in server In preceding local storage, it is also possible to be extended the memory of server in rear local storage and newly-increased memory It is stored with first corresponding relationship.That is, the server is the side with cluster for the server for needing extended menory Formula provides service, then is required to store first corresponding relationship in each memory in cluster.
Step 105, the storage location for determining information to be pushed, and store information to be pushed.
In other embodiments of the invention, step 105 determines the storage location of information to be pushed and stores letter to be pushed Breath, which can be by server, to be realized;It determines that the storage location of information to be pushed can be to deposit information to be pushed by determining Storage, come what is realized, after obtaining the storage location of information to be pushed, which can be stored in pair where server At the storage location answered.
Information to be pushed can store in the current local storage of server, be also possible to the memory to server It is extended in rear local storage and newly-increased memory and is stored with the information to be pushed.That is, for needing extension storage For the server of device, which is that service is provided in a manner of cluster, then is required to deposit in each memory in cluster Store up the information to be pushed.
Step 106 establishes the second corresponding relationship between index mark and the storage location of information to be pushed, and stores the Two corresponding relationships.
In other embodiments of the invention, step 106 is established between index mark and the storage location of information to be pushed The second corresponding relationship, and store the second corresponding relationship and can be by server and realize;Second corresponding relationship can store In the current local storage of server, it is also possible to be extended the memory of server rear local storage and increases newly Memory in be stored with second corresponding relationship.That is, for the server for needing extended menory, which is Service is provided in a manner of cluster, then storage is required in each memory in cluster should be to the second corresponding relationship.
Pushed information storage method provided by the embodiment of the present invention receives push request and based on information to be pushed Mark obtains information to be pushed, and the mark based on terminal generates the index mark of information to be pushed, establishes the mark and rope of terminal The first corresponding relationship and the first corresponding relationship of storage between tendering knowledge, the mark of terminal and the mark of information to be pushed carry and exist It in push request, determines the storage location of information to be pushed and stores information to be pushed, establish index mark and information to be pushed Storage location between the second corresponding relationship and store the second corresponding relationship, in this way, when pushing information to be pushed, Ke Yigen According to the index mark and the storage of the corresponding relationship, index mark and information to be pushed of the mark of terminal of the information to be pushed of storage Position corresponding relationship gets the information to be pushed, therefore does not need repeatedly to store information to be pushed, solves existing information The problem of storing multiple information to be pushed is needed in push scheme, is greatly saved memory space, avoids the waste of resource.
The embodiment of the present invention provides a kind of pushed information storage method, and this approach includes the following steps:
Step 201, server are received requests for the push of pushed information at least two terminals.
Wherein, the mark of terminal is carried in push request.
Step 202, server response push request, the mark based on information to be pushed obtain information to be pushed.
Illustratively, obtaining information to be pushed can be accomplished by the following way:One is other terminals or services Information to be pushed actively can be sent to current server by device;Another kind is the cloud that information to be pushed is stored in server In memory, server, which receives to download directly from the memory of cloud after push is requested, obtains information to be pushed.
The mark of step 203, server based on terminal, obtains the attribute information of terminal.
Illustratively, the attribute information of terminal may include the mark of terminal, send pushed information to terminal time, terminal The information that can be used in indexing information to be pushed relevant to terminal such as service identification.
The attribute information of step 204, server based on terminal generates the index mark of information to be pushed using preset algorithm Know.
Illustratively, preset algorithm may include:Hash algorithm, cyclic redundancy check (Cyclic Redundancy Check, CRC) algorithm, message digest algorithm the 5th edition (Message-Digest Algorithm 5, MD5), secure hash calculation Method 2 (Secure Hash Algorithm 2, SHA-2) etc. can generate the algorithm of index.Index mark can be and will obtain The attribute information of terminal is substituted into above-mentioned any one of them algorithm and is obtained, in this way, obtained index mark is unique, the rope It is the unique foundation for reading information to be pushed that tendering, which is known,.
Step 205, server establish the first corresponding relationship between the mark of terminal and index mark, and corresponding by first Relationship is stored in the memory of server.
Illustratively, the memory in the present embodiment is that the local storage of server, the i.e. mark of terminal and index are marked The first corresponding relationship between knowledge is only stored in the local storage of server.Wherein, the first corresponding relationship of storage can be with Be it is existing in table form, can store the mark and index mark of terminal in the table, and indicate the mark of terminal Relationship between index mark.
Step 206, server judge whether be stored with information to be pushed in the memory of itself.
Wherein, whether server need in the local storage of first detection service device before storing information to be pushed It is stored with the information to be pushed.
If not stored information to be pushed in step 207, server, server determines the storage location of information to be pushed and deposits Store up information to be pushed.
Illustratively, the position of the storage information to be pushed determined in the present embodiment is the local storage of server. The information to be pushed can be stored in the sheet of server if not having the information to be pushed in the local storage of server In ground memory;If being stored with the information to be pushed in the local storage of server, no longer needing to storage should be wait push Information, it is only necessary to corresponding relationship between the mark and index mark of storage terminal corresponding with the information to be pushed.In this way, can be with It avoids repeating to store, ensure that the effective use of storage resource.
Step 208, server establish the second corresponding relationship between index mark and the storage location of information to be pushed, and Store the second corresponding relationship.
Wherein, the second corresponding relationship of storage can be existing in table form, can store rope in the table The storage location of tendering knowledge and information to be pushed, and indicate the relationship between index mark and the storage location of information to be pushed.
It should be pointed out that the first corresponding relationship, the second corresponding relationship and information to be pushed in the present embodiment all store In the same memory of server.
After step 209, interval preset time, server deletes the first corresponding relationship stored in the memory of itself, the Two corresponding relationships and information to be pushed.
Wherein, the first corresponding relationship, the second corresponding relationship and the information to be pushed stored in server is that all crews push away Send user sharing, thus remove message it is expired it is automatic eliminate other than, the shared message entity cannot be deleted in any way.It is default Time is arranged previously according to practically application scenarios and implementation result, and first stored in server memory is periodically deleted Corresponding relationship, the second corresponding relationship and information to be pushed can to avoid information it is expired after, server is still stored in these information Memory in, avoid the waste of storage resource.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or related notion is referred to Description in other embodiments, details are not described herein again.
Pushed information storage method provided by the embodiment of the present invention receives push request and based on information to be pushed Mark obtains information to be pushed, and the mark based on terminal generates the index mark of information to be pushed, establishes the mark and rope of terminal The first corresponding relationship and the first corresponding relationship of storage between tendering knowledge, the mark of terminal and the mark of information to be pushed carry and exist It in push request, determines the storage location of information to be pushed and stores information to be pushed, establish index mark and information to be pushed Storage location between the second corresponding relationship and store the second corresponding relationship, in this way, when pushing information to be pushed, Ke Yigen According to the index mark and the storage of the corresponding relationship, index mark and information to be pushed of the mark of terminal of the information to be pushed of storage Position corresponding relationship gets the information to be pushed, therefore does not need repeatedly to store information to be pushed, solves existing information The problem of storing multiple information to be pushed is needed in push scheme, is greatly saved memory space, avoids the waste of resource.
The embodiment of the present invention provides a kind of pushed information storage method, and this approach includes the following steps:
Step 301, server are received requests for the push of pushed information at least two terminals.
Step 302, server response push request, the mark based on information to be pushed obtain information to be pushed.
The mark of step 303, server based on terminal, obtains the attribute information of terminal.
The attribute information of step 304, server based on terminal generates the index mark of information to be pushed using preset algorithm Know.
Step 305, server obtain the memory space of the memory current residual of itself.
Wherein, the memory space of the memory of server is that the server has just been set when leaving the factory.
Step 306, server obtain the total of the memory space that the mark of terminal, index mark and information to be pushed need to occupy With.
Illustratively, the memory space that server can need to be occupied according to the mark for pre-estimating terminal, index mark need The memory space that the memory space and information to be pushed of occupancy need to occupy, and these memory spaces that need to be occupied are added are needed The summation of the memory space of occupancy.
If the summation of memory space that step 307, the mark of terminal, index mark and information to be pushed need to occupy be less than or Equal to the memory space of the memory current residual of server, server establishes the first corresponding relationship, and by the first corresponding relationship It is stored in the memory of server.
Server can compare memory current residual memory space and the memory space that need to be occupied summation it Between size relation, if the memory space of memory current residual is less than or equal to and the memory space that need to occupy Summation illustrates that the memory space of server current residual stores above- mentioned information enough, can be directly by the first corresponding relationship, second Corresponding relationship and information to be pushed are stored in the memory of server itself.
It is deposited if the summation for the memory space that step 308, the mark of terminal, index mark and information to be pushed need to occupy is greater than The memory space of reservoir, server add first memory, obtain second memory.
It wherein, include at least two memories in second memory;First memory belongs to second memory.
Illustratively, if the memory space of server memory current residual is less than or equal to and need to occupy The summation of memory space illustrates the insufficient memory storage above- mentioned information of server current residual, just needs to expand volume at this time Outer memory, the mode for forming cluster provide service.The i.e. newly-increased first memory of the memory space of server, and and server The memory pool of itself obtains second memory.It wherein, may include having at least one processor in first memory.
Step 309, server classify terminal according to default classifying rules.
Wherein, default classifying rules can be determined according to different row business scenarios, and the size of each classification can also be with It is adjusted according to different row business scenarios;Illustratively, a kind of feasible principle of classification is average principle of classification when classification.
Step 310, server establish the corresponding relationship between the mark and second memory of the terminal in each classification.
It illustratively, can be unit according to classification, respectively by the terminal iidentification and finally obtained the in each classification Mapping relations are established between two memories, and then determine that the mark of the terminal of each classification should be corresponding with which memory.When So, same category of terminal, the corresponding mark of terminal is same memory.
Corresponding relationship between step 311, server mark and second memory based on the terminal in each classification, will Corresponding relationship between the mark of terminal in each classification and index mark is stored in the corresponding memory in second memory In.
It illustratively, can be according to the corresponding relationship between the mark and second memory of the terminal in each classification, really The specific location that the corresponding relationship of the mark of terminal in fixed each classification and index mark should store, and store.If the Only one memory in one memory, it can terminal is divided into two classes, according to the mark of terminal and second memory Mapping relations can determine that mapping relations that a kind of mark of the terminal in classification is identified with index are stored in server itself and deposit In reservoir, the mapping relations storage of mark and index mark of the terminal in another kind classification is determined in the first memory.When So, same category of terminal, the corresponding relationship between the mark and index mark of terminal are stored in a memory.
Step 312, server judge whether be stored with information to be pushed in the memory of itself.
If not stored information to be pushed in step 313, server, server determines that the storage location of information to be pushed is the Position in two memories where the mark of the corresponding terminal of information to be pushed, and store information to be pushed.
Wherein, the storage location of information to be pushed is the mark place for the terminal for having corresponding relationship with the information to be pushed Position;For example, the corresponding information to be pushed of the terminal must also store if the mark of terminal stores in the first memory In the first memory.
Step 314, server establish the second corresponding relationship between index mark and the storage location of information to be pushed, and Second corresponding relationship is stored in second memory the position where information to be pushed.
It should be pointed out that in the present embodiment belong to same category of first corresponding relationship, the second corresponding relationship and to Pushed information is stored in same memory.
Certainly, in the present embodiment, after being spaced preset time, server can delete memory (memory and the One memory) in store the first corresponding relationship, the second corresponding relationship and information to be pushed.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or related notion is referred to Description in other embodiments, details are not described herein again.
Pushed information storage method provided by the embodiment of the present invention receives push request and based on information to be pushed Mark obtains information to be pushed, and the mark based on terminal generates the index mark of information to be pushed, establishes the mark and rope of terminal The first corresponding relationship and the first corresponding relationship of storage between tendering knowledge, the mark of terminal and the mark of information to be pushed carry and exist It in push request, determines the storage location of information to be pushed and stores information to be pushed, establish index mark and information to be pushed Storage location between the second corresponding relationship and store the second corresponding relationship, in this way, when pushing information to be pushed, Ke Yigen According to the index mark and the storage of the corresponding relationship, index mark and information to be pushed of the mark of terminal of the information to be pushed of storage Position corresponding relationship gets the information to be pushed, therefore does not need repeatedly to store information to be pushed, solves existing information The problem of storing multiple information to be pushed is needed in push scheme, is greatly saved memory space, avoids the waste of resource.
Based on previous embodiment, referring to shown in Fig. 2, the pushed information storage method that the embodiment of the present invention provides also is wrapped Include following steps:
Step 401, server are received requests for the push of pushed information at least two terminals.
Wherein, the mark of terminal is carried in push request.
Wherein, the mark of terminal can be an information for capableing of the unique identification terminal, such as can be and use the end End carries out the number etc. of some application.
Step 402, server response push request, the mark based on information to be pushed obtain information to be pushed.
The mark of step 403, server based on terminal, obtains the attribute information of terminal.
The attribute information of step 404, server based on terminal generates the index mark of information to be pushed using preset algorithm Know.
Step 405, server obtain the memory space of the memory current residual of itself.
Step 406, server obtain the total of the memory space that the mark of terminal, index mark and information to be pushed need to occupy With.
If the summation of memory space that step 407, the mark of terminal, index mark and information to be pushed need to occupy be less than or Equal to the memory space of the memory current residual of server, server establishes the first corresponding relationship, and by the first corresponding relationship It is stored in the memory of server.
It is deposited if the summation for the memory space that step 408, the mark of terminal, index mark and information to be pushed need to occupy is greater than The memory space of reservoir current residual, server add first memory, obtain second memory.
It wherein, include at least two memories in second memory;First memory belongs to second memory.
Step 409, server classify terminal according to default classifying rules.
Step 410, server establish the corresponding relationship between the mark and second memory of the terminal in each classification.
Corresponding relationship between step 411, server mark and second memory based on the terminal in each classification, will Corresponding relationship between the mark of terminal in each classification and index mark is stored in the corresponding memory in second memory In.
Step 412, server judge whether be stored with information to be pushed in the memory of itself.
If not stored information to be pushed in step 413, server, server determines that the storage location of information to be pushed is the Position in two memories where the mark of the corresponding terminal of information to be pushed, and store information to be pushed.
Step 414, server establish the second corresponding relationship between index mark and the storage location of information to be pushed, will Second corresponding relationship is stored in second memory the position where information to be pushed.
Step 415, target terminal, which are sent, downloads request to server for download information to be pushed.
Wherein, the mark of target terminal is carried in downloading request.
Wherein, target terminal, which can be, needs downloading to store in the server in the terminal for having communication connection with server The terminal of information to be pushed.For example, the mark of target terminal can be the user account of certain APP application.
It should be pointed out that in the present embodiment belong to same category of first corresponding relationship, the second corresponding relationship and to Pushed information is stored in same memory.
Step 416, server receive the downloading request that target terminal is sent.
Step 417, server response downloading request search mesh based on the mark of target terminal in the first corresponding relationship Mark the corresponding target index mark of mark of terminal.
Wherein, target index mark be the mark of target terminal corresponding index mark.
Step 418, server are based on target index mark, search target storage position in the second corresponding relationship.
Wherein, target storage position is the storage location for the information to be pushed that terminal need to be downloaded.
Step 419, server obtain information to be pushed in target storage position, and are sent to target terminal.
It, can be from corresponding after server gets the target storage position of information to be pushed that target terminal needs to download Information to be pushed is obtained in memory, and obtained information to be pushed is pushed to target terminal.It should be noted that sending This pushed information corresponding index mark can be sent while information to be pushed, in this way, target terminal can be according to reception The index mark arrived determines whether the information to be pushed received is correct using hash algorithm identical with server-side.
It is further comprising the steps of based on the pushed information storage method that previous embodiment, the embodiment of the present invention provide:
Step 420, target terminal receive the information to be pushed that server is sent.
Illustratively, target terminal determine receive server transmission information to be pushed after, can be generated read confirmation disappear Breath, and this has been read into confirmation message and has been sent to server, so that tell the server target terminal has had received letter to be pushed Breath.
Step 421, target terminal transmission have read to confirm message to server.
Step 422, server receive the reading confirmation message that target terminal is sent.
Step 423, server respond this and have read confirmation message, delete the mark of the target terminal of storage.
In other embodiments of the invention, server can determine target terminal after receiving and having read confirmation message Through having received information to be pushed, in order to avoid message repeats reading and the waste of memory space, the target terminal can be deleted Corresponding mark deletes the corresponding relationship of the mark and index mark of the target terminal in the first corresponding relationship.
Certainly, in the present embodiment, after being spaced preset time, server can delete memory (memory and the One memory) in store the first corresponding relationship, the second corresponding relationship and information to be pushed.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or related notion is referred to Description in other embodiments, details are not described herein again.
Pushed information storage method provided by the embodiment of the present invention receives push request and based on information to be pushed Mark obtains information to be pushed, and the mark based on terminal generates the index mark of information to be pushed, establishes the mark and rope of terminal The first corresponding relationship and the first corresponding relationship of storage between tendering knowledge, the mark of terminal and the mark of information to be pushed carry and exist It in push request, determines the storage location of information to be pushed and stores information to be pushed, establish index mark and information to be pushed Storage location between the second corresponding relationship and store the second corresponding relationship, in this way, when pushing information to be pushed, Ke Yigen According to the index mark and the storage of the corresponding relationship, index mark and information to be pushed of the mark of terminal of the information to be pushed of storage Position corresponding relationship gets the information to be pushed, therefore does not need repeatedly to store information to be pushed, solves existing information The problem of storing multiple information to be pushed is needed in push scheme, is greatly saved memory space, avoids the waste of resource.
Based on previous embodiment, the embodiment of the present invention provides a kind of pushed information storage method, should referring to shown in Fig. 3 Method includes the following steps:
Step 501, server are received requests for the push of pushed information at least two terminals.
Step 502, server response push request, the mark based on information to be pushed obtain information to be pushed.
The mark of step 503, server based on terminal, obtains the attribute information of terminal.
The attribute information of step 504, server based on terminal generates the index mark of information to be pushed using preset algorithm Know.
Step 505, server establish the first corresponding relationship, and the first corresponding relationship is stored in the memory of server In.
Step 506, server judge whether be stored with information to be pushed in the memory of itself.
If not stored information to be pushed in step 507, server, server determines the storage location of information to be pushed and deposits Store up information to be pushed.
Step 508, server establish the second corresponding relationship between index mark and the storage location of information to be pushed, and Store the second corresponding relationship.
After step 509, interval preset time, server deletes the first corresponding relationship stored in the memory of itself, the Two corresponding relationships and information to be pushed.
It should be pointed out that the first corresponding relationship, the second corresponding relationship and information to be pushed in the present embodiment all store In the same memory of server.
Step 510, receive that target terminal sends download request to server for download information to be pushed.
Step 511, server receive the downloading request that target terminal is sent.
Step 512, server response downloading request search mesh based on the mark of target terminal in the first corresponding relationship Mark the corresponding target index mark of mark of terminal.
Step 513, server are based on target index mark, search target storage position in the second corresponding relationship.
Wherein, target storage position is the storage location for the information to be pushed that terminal need to be downloaded.
Step 514, server obtain information to be pushed in target storage position, and are sent to target terminal.
It is further comprising the steps of based on the pushed information storage method that previous embodiment, the embodiment of the present invention provide:
Step 515, target terminal receive the information to be pushed that server is sent.
Step 516, target terminal transmission have read to confirm message to server.
Step 517, server receive the reading confirmation message that target terminal is sent.
Step 518, server respond this and have read confirmation message, delete the mark of the target terminal of storage.
It should be noted that the explanation in the present embodiment with same steps in other embodiments or related notion is referred to Description in other embodiments, details are not described herein again.
Pushed information storage method provided by the embodiment of the present invention receives push request and based on information to be pushed Mark obtains information to be pushed, and the mark based on terminal generates the index mark of information to be pushed, establishes the mark and rope of terminal The first corresponding relationship and the first corresponding relationship of storage between tendering knowledge, the mark of terminal and the mark of information to be pushed carry and exist It in push request, determines the storage location of information to be pushed and stores information to be pushed, establish index mark and information to be pushed Storage location between the second corresponding relationship and store the second corresponding relationship, in this way, when pushing information to be pushed, Ke Yigen According to the index mark and the storage of the corresponding relationship, index mark and information to be pushed of the mark of terminal of the information to be pushed of storage Position corresponding relationship gets the information to be pushed, therefore does not need repeatedly to store information to be pushed, solves existing information The problem of storing multiple information to be pushed is needed in push scheme, is greatly saved memory space, avoids the waste of resource.
Based on previous embodiment, it is applied to pass through instant messaging with the information-pushing method provided in the embodiment of the present invention Using the crew's push for carrying out information, terminal is mobile device C, and server is the service for having communication connection with mobile device C Device A, target terminal B, being identified as the number that each terminal is applied using the instant messaging for terminal are illustrated:
After receiving the push request of administrator's transmission, the user if necessary to push is more, and mobile device C is currently remained When remaining insufficient memory stores the number, information to be pushed and index mark of all terminals, it will first can be gathered by number Molding block divides crew's push number packet, and identifies MSGID using the index that hash algorithm generates information to be pushed, In, it includes termination number UIN of all mobile device C using application that crew, which pushes in number packet,;As shown in Figure 4, it receives After crew pushes request, index mark MSGID is can be generated in number aggregation module 11, and divides number packet from number pond, There is the corresponding pushed information MSG of these numbers in each class number after division.Such as can be UIN1 by number, The number of UIN4, UIN7 are classified as one kind, the number of UIN2, UIN6, UIN8 are classified as one kind, but the number of each classification is corresponding MSGID and MSG it is identical.
Then, after classifying and establishing the corresponding relationship of UIN, MSG and MSGID, as shown in Figure 5, public message stores mould Block 12 can store these information, include number message list and public message storage two in public message memory module A module.It is stored when storage according to the form of table, and number is the corresponding first corresponding pass UIN1, UIN4, UIN7 System, the second corresponding relationship and MSG are stored in same memory, the corresponding first corresponding pass number UIN2, UIN6, UIN8 System, the second corresponding relationship and MSG are stored in another memory.
Finally, as shown in Figure 6, it is public to disappear when target terminal B needs to download information to be pushed (client pulls message) Breath reads all message that aggregation module 13 traverses number UIN from number message list first, if the message of traversal is complete Member's PUSH message is then that major key exchanges message entity for into public message memory module 14, and waits pushing letter with this according to MSGID It ceases corresponding index mark and is issued to client together.
The embodiment of the invention also provides a kind of pushed information storage methods, and this approach includes the following steps:
Step a1, the first information of first terminal transmission is received.
Server receives the first information of first terminal transmission, the first information be first terminal be sent at least one the The information of two terminals;First terminal and at least one second terminal are in the first group.
Here, the first group is the group being made of in instant messaging at least two terminals, and the member in group shares group The information that any member is sent in group in group.
Information includes content of text, rich-media content etc..
Step a2, the first index mark corresponding with the content of the first information is generated based on the first information, establishes the first letter First mapping relations of breath and the first index mark.
Illustratively, server generates the first index mark corresponding with the content of the first information based on the first information, builds First mapping relations of the vertical first information and the first index mark.
Wherein, the first index mark is to the description of the uniqueness of the first information, with the sender number of the first information, first The sequence number of information, the information such as length, random value of the information type of the first information, the information content are related.
Here, when the first group is QQ group, the sender number of the first information is to send the terminal pair of the first information The QQ number code answered;The information type of the first information includes:Text information, rich media information etc..
Step a3, the first information and the first mapping relations to the first storage region are stored.
Server sends the first information and the first mapping relations to the first storage region of first memory, so that first The first storage region storage first information of memory and the first mapping relations.
Wherein, first memory is shared storage server corresponding with server, and first memory is mutual with server It is independent.
Step a4, storage the first index mark to first terminal corresponding at least one second terminal second stores Region.
Second storage region of the server to first terminal second memory corresponding at least one second terminal Send the first index mark;That is the second storage region of second memory only stores the first index mark, does not store the first letter Breath.
Here, each terminal can have unique corresponding second memory therewith, i.e., personal storage server;Individual deposits Storage server is independent from each other with terminal, and shared storage server is also independent from each other with personal storage server.
The operation that information processing method executes in the embodiment of the present invention one can be as above-mentioned by an independent server reality It is existing;It can also be as realized jointly in the embodiment of the present invention by multiple mutually independent servers.
The embodiment of the invention also provides a kind of pushed information storage methods, and this approach includes the following steps:
Step b1, group's message distribution services device receives the first information of first terminal transmission.
Illustratively, the first information is the information that first terminal is sent at least one second terminal;First terminal and extremely A few second terminal is in the first group.
Here, the first group is the group being made of in instant messaging at least two terminals, and the member in group shares group The information that any member is sent in group in group.
Information includes content of text, rich-media content etc..
Step b2, group's message distribution services device generates the first index corresponding with the content of the first information based on the first information Mark establishes the first mapping relations of the first information and the first index mark.
Wherein, the first index mark is to the description of the uniqueness of the first information, with the sender number of the first information, first The sequence number of information, the information such as length, random value of the information type of the first information, the information content are related.
Step b3, the first information and the first mapping relations are distributed to the first storage region by group's message distribution services device.
Illustratively, group's message distribution services device sends the first information and the to the first storage region of first memory One mapping relations, so that the first storage region storage first information of first memory and the first mapping relations;
Wherein, first memory is shared storage server, first memory and transfer server, group's message distribution services Device is mutually indepedent.
Step b4, the first index mark is sent to first terminal by transfer server and at least one second terminal is right respectively The second storage region answered.
Wherein, transfer server to first terminal second memory corresponding at least one second terminal second Storage region sends the first index mark;That is the second storage region of second memory only stores the first index mark, does not deposit Store up the first information.
Here, each terminal can have unique corresponding second memory therewith, i.e., personal storage server;Individual deposits Storage server is independent from each other with terminal, and shared storage server is also independent from each other with personal storage server.
Group's message distribution services device and transfer server can be understood as the clothes in previous embodiment in the embodiment of the present invention Business device.
The embodiment of the invention also provides a kind of pushed information storage methods, and this approach includes the following steps:
Step c1, group's message distribution services device receives the first information of first terminal transmission.
In other embodiments of the invention, the first information is the letter that first terminal is sent at least one second terminal Breath;First terminal and at least one second terminal are in the first group.
Here, the first group is the group being made of in instant messaging at least two terminals, and the member in group shares group The information that any member is sent in group in group.
Information includes content of text, rich-media content etc..
Step c2, group's message distribution services device generates the first index corresponding with the content of the first information based on the first information Mark establishes the first mapping relations of the first information and the first index mark.
Wherein, the first index mark is to the description of the uniqueness of the first information, with the sender number of the first information, first The sequence number of information, the information such as length, random value of the information type of the first information, the information content are related.
Step c3, the first information and the first mapping relations are distributed to shared information storage clothes by group's message distribution services device Business device.
Step c4, the shared storage server storage first information and the first mapping relations, and to group's message distribution services Device, which is sent, stores successful message.
In other embodiments of the invention, as shown in fig. 7, being the QQ group of groupCode1 by group number of the first group For, terminal is the terminal in the QQ group that group number is groupCode1, has been stored with group number in shared storage server The mapping relations of 1 with the information content 1 are identified for index mark 1, the information content 1 and the index in the QQ group of groupCode1; Index mark 3, the information content 3 and the index being also stored in shared storage server in the QQ group that group number is groupCode2 The mapping relations of mark 3 and the information content 3, index mark 4, the information content 4 and index mark 4 and the mapping of the information content 4 are closed System.
Shared storage server storage group number is index mark 2, the information content 2 and rope in the QQ group of groupCode1 When 2 mapping relations with the information content 2 are known in tendering, group's message distribution services device sends group to shared storage server first first It number is closed for index mark 2, the information content 2 and the index mark 2 in the QQ group of groupCode1 with the mapping of the information content 2 System;The group number that shared storage server sends the group's message distribution services device received is in the QQ group of groupCode1 The mapping relations of index mark 2, the information content 2 and index mark 2 and the information content 2 store the QQ for being groupCode1 to group number The corresponding storage region of group, and sent to group's message distribution services device and store successful message.
Step c5, the first index mark is distributed to transfer server by group's message distribution services device.
Step c6, transfer server is to first terminal personal storage server corresponding at least one second terminal Send the first index mark.
Here, each terminal has a unique corresponding personal storage server therewith.
It by group number is index the mark 2 and information content 2 in the QQ group of groupCode1 with group's message distribution services device It is sent to for the user in the QQ group that group number is groupCode1, user distribution of group's message distribution services device into group The treatment process of information, as shown in figure 8, group's message distribution services device obtains the use for the QQ group that group number is groupCode1 first Family information, user information include at least the termination number of user in group;Group's message distribution services device is based on each of in group Index mark 2 and the information content 2 are sent to transfer server or group's message distribution services device and will used in QQ group by user respectively Termination number, index mark 2 and the information content 2 at family are sent to transfer server together.Here, group's message distribution services device base Index mark 2 and the information content 2 are sent to transfer server respectively in each user in QQ group, referred to for QQ group The index of user mark 2 and the information content 2 can be sent to transfer service by interior each user, group's message distribution services device Device, to request transfer server to carry out information transmission to the user;If there is N number of user in QQ group, group's message distribution services device N times index mark 2 and the information content 2 are sent to transfer server, is sent every time for a user in QQ group.
It is each in the network connection state of user in the QQ group of groupCode1 and group that transfer server, which obtains group number, The corresponding personal control information of user, individual's control information include:The effective time and read and write access permission of information storage Deng;It is foundation that the information content 2 is sent to network connection state in the QQ group that group number is groupCode1 again by transfer server First terminal and second terminal,;Individual's control information and index mark 2 are stored each terminal to QQ group and respectively corresponded Personal storage server;Here, each of in QQ group with there is corresponding personal control information per family.Therefore, pass through by It is that the 5th terminal disconnected and the 6th are whole that index mark 2, which is sent to network connection state in the QQ group that group number is groupCode1, Corresponding personal memory is held, the offline storage to the information content 2 is realized.
The embodiment of the invention also provides a kind of pushed information storage methods, and this approach includes the following steps:
Step d1, network connection is switched to by being connected to the network the state of not setting up when the SOT state of termination of third terminal establish state When, the second index mark is obtained from corresponding second storage region of third terminal.
In other embodiments of the invention, third terminal sends request third end to corresponding second storage region When the SOT state of termination at end is that network connection is not set up, the index identification request message of the second storage region storage.
Second storage region is based on request message and sends the second index mark to third terminal.
Here, the second storage region is and the unique corresponding personal storage server of third terminal.
Wherein, third terminal is any terminal in the first group of multiple terminals formation;Second index is identified as third The information corresponding index mark of third terminal is sent to when terminal does not set up state in network connection, in the first group; The mapping relations of multipacket message and index mark are stored in first storage region;Multiple indexes are stored in second storage region Mark.
Step d2, corresponding second information is obtained from the first storage region based on the second index mark.
In other embodiments of the invention, third terminal, which is sent, carries the request message of the second index mark and deposits to first Storage area domain, with request the second information corresponding with the second index mark;It receives the second storage region and is based on the second index mark Know matched second information in the index mark of itself storage and the mapping relations of information.
Here, the second storage region is shared storage server.
When the network connection state of terminal is switched to connection by disconnecting in this implementation, terminal obtains the processing stream of information off-line Journey schematic diagram, as shown in figure 9, when the network connection state of third terminal is switched to connection by disconnecting, first to unique with itself Corresponding individual's storage server pulls information off-line, and the network connection state for obtaining third terminal from personal storage server is When offline, the index mark 1 and index mark 2 of personal storage server storage are sent to third terminal;Third terminal is based on rope Tendering, which knows 1 and indexes mark 2, sends request message to shared storage server, and request and index identify 1 and index mark 2 The corresponding information content 1 and the information content 2;Mapping of the shared storage server in the index mark and the information content that itself store Searched in relationship with the index 1 corresponding information content 1 of mark and with the index 2 corresponding information contents 2 of mark, and be sent to the Three terminals, so that the session window output information content 1 and the information content 2 for corresponding to correspondingly group that third terminal is formed.
In above process, a message content is stored by shared storage server, is not necessarily to the corresponding individual of each terminal Storage server stores the information content of transfer server transmission respectively, it is only necessary to which personal storage server storage and the information content are only One corresponding index mark;It, can be corresponding by terminal when the network connection state of terminal switches to connection by disconnecting Index in people's storage server identifies to shared storage server and obtains the corresponding information content of index mark;In this way, saving Personal memory stores the information content occupied resource, avoids the waste of storage resource.
The embodiment of the present invention provides a kind of pushed information storage device 6, and it is corresponding which can be applied to Fig. 1~3 In a kind of pushed information storage method that embodiment provides, referring to Fig.1 shown in 0, which includes:First receiving unit 61, One acquiring unit 62, first establishing unit 63, first processing units 64 and second establish unit 65, wherein:
First receiving unit 61 is used for the push request of pushed information at least two terminals for receiving.
Wherein, the mark of terminal and the mark of information to be pushed are carried in push request.
First acquisition unit 62, for responding push request, the mark based on information to be pushed obtains information to be pushed.
First acquisition unit 62 is also used to the mark based on terminal, generates the index mark of information to be pushed.
First establishing unit 63, the first corresponding relationship for establishing between the mark of terminal and index mark, and store First corresponding relationship.
First processing units 64 for determining the storage location of information to be pushed, and store information to be pushed.
Second establishes unit 65, and second for establishing between index mark and the storage location of information to be pushed is corresponding to close System, and store the second corresponding relationship.
Pushed information storage device provided by the embodiment of the present invention receives push request and based on information to be pushed Mark obtains information to be pushed, and the mark based on terminal generates the index mark of information to be pushed, establishes the mark and rope of terminal The first corresponding relationship and the first corresponding relationship of storage between tendering knowledge, the mark of terminal and the mark of information to be pushed carry and exist It in push request, determines the storage location of information to be pushed and stores information to be pushed, establish index mark and information to be pushed Storage location between the second corresponding relationship and store the second corresponding relationship, in this way, when pushing information to be pushed, Ke Yigen According to the index mark and the storage of the corresponding relationship, index mark and information to be pushed of the mark of terminal of the information to be pushed of storage Position corresponding relationship gets the information to be pushed, therefore does not need repeatedly to store information to be pushed, solves existing information The problem of storing multiple information to be pushed is needed in push scheme, is greatly saved memory space, avoids the waste of resource.
In other embodiments of the invention, first acquisition unit includes:First obtains module and first processing module, In:
First acquisition module obtains the attribute information of terminal for the mark based on terminal.
Wherein, attribute information is information relevant to terminal.
First processing module generates the index of information to be pushed using preset algorithm for the attribute information based on terminal Mark.
In other embodiments of the invention, first establishing unit includes:Second obtains module and Second processing module, In:
Second obtains module, the remaining memory space of memory for obtaining server.
Second obtains module, is also used to obtain the storage sky that the mark, index mark and information to be pushed of terminal need to occupy Between summation.
Second processing module, if the memory space that the mark, index mark and information to be pushed for terminal need to occupy Summation is less than or equal to the remaining memory space of memory of server, establishes the first corresponding relationship, and by the first corresponding relationship It is stored in the memory of server.
Further, Second processing module is also used to execute following steps:
It is deposited if the summation for the memory space that the mark of at least two terminals, index mark and information to be pushed need to occupy is greater than The remaining memory space of reservoir adds first memory, obtains second memory.
It wherein, include at least two memories in second memory;First memory belongs to second memory.
Terminal is classified according to default classifying rules.
Establish the corresponding relationship between the mark and second memory of the terminal in each classification.
Establish the corresponding relationship between the mark of the terminal in each classification and index mark.
Corresponding relationship between mark and second memory based on the terminal in each classification, by the end in each classification Corresponding relationship between the mark at end and index mark is stored in the corresponding memory in second memory.
Correspondingly, first processing units are also used to execute following steps:
The storage location for determining information to be pushed is the mark place of the corresponding terminal of information to be pushed in second memory Position, and store information to be pushed.
In other embodiments of the invention, first processing units include:Judgment module and memory module, wherein:
Whether judgment module is stored with information to be pushed in the memory for judging server.
Memory module, if determining the storage location of information to be pushed for not stored information to be pushed in server and depositing Store up information to be pushed.
Further, which further includes:Unit is deleted, wherein:
Unit is deleted, after being spaced preset time, deletes the first corresponding relationship stored in the memory of server, the Two corresponding relationships and information to be pushed.
Further, which further includes:Second receiving unit, second acquisition unit and transmission unit, wherein:
Second receiving unit, for receiving the downloading request for downloading information to be pushed of target terminal transmission.
Wherein, the mark of target terminal is carried in downloading request.
Second acquisition unit based on the mark of target terminal in the first corresponding relationship, is searched for responding downloading request The corresponding target index mark of the mark of target terminal.
Second acquisition unit is also used to search target storage position in the second corresponding relationship based on target index mark.
Wherein, target storage position is the storage location for the information to be pushed that terminal need to be downloaded.
Transmission unit for obtaining information to be pushed in target storage position, and is sent to target terminal.
In other embodiments of the invention, the second receiving unit is also used to receive the confirmation of reading of target terminal transmission Message.
Wherein, having read confirmation message is sent after target terminal determination receives information to be pushed.
Unit is deleted, is also used to respond and has read confirmation message, delete the mark of the target terminal of storage.
It should be noted that the interactive process in the present embodiment between each unit and module, is referred to Fig. 1~3 pair The interactive process in a kind of pushed information storage method that the embodiment answered provides, details are not described herein again.
Pushed information storage device provided by the embodiment of the present invention receives push request and based on information to be pushed Mark obtains information to be pushed, and the mark based on terminal generates the index mark of information to be pushed, establishes the mark and rope of terminal The first corresponding relationship and the first corresponding relationship of storage between tendering knowledge, the mark of terminal and the mark of information to be pushed carry and exist It in push request, determines the storage location of information to be pushed and stores information to be pushed, establish index mark and information to be pushed Storage location between the second corresponding relationship and store the second corresponding relationship, in this way, when pushing information to be pushed, Ke Yigen According to the index mark and the storage of the corresponding relationship, index mark and information to be pushed of the mark of terminal of the information to be pushed of storage Position corresponding relationship gets the information to be pushed, therefore does not need repeatedly to store information to be pushed, solves existing information The problem of storing multiple information to be pushed is needed in push scheme, is greatly saved memory space, avoids the waste of resource.
The embodiment of the present invention provides a kind of server 7, which can be applied to the corresponding embodiment in Fig. 1~3 and mention In a kind of pushed information storage method supplied, referring to Fig.1 shown in 1, which includes:Processor 71 and communication interface 72, In:
Processor 71 is requested for being received by communication interface 72 for the push of pushed information at least two terminals; The identification information of terminal and the mark of information to be pushed are carried in push request;Response push request, is based on information to be pushed Mark obtain information to be pushed;Mark based on terminal generates the index mark of information to be pushed;Establish the mark of terminal with The first corresponding relationship between index mark, and store the first corresponding relationship;It determines the storage location of information to be pushed, and stores Information to be pushed;The second corresponding relationship between index mark and the storage location of information to be pushed is established, and stores second pair It should be related to.
It should be noted that the interactive process in the present embodiment between processor and communication interface, is referred to Fig. 1~3 The interactive process in a kind of pushed information storage method that corresponding embodiment provides, details are not described herein again.
Server provided by the embodiment of the present invention receives push request, and obtains information to be pushed, generates wait push The index of information identifies, and the first corresponding relationship established between the mark of terminal and index mark simultaneously stores the first corresponding relationship, The mark of terminal carries in push request, determines the storage location of information to be pushed and stores information to be pushed, establishes index Identify the storage location of information to be pushed between the second corresponding relationship and store the second corresponding relationship, in this way, push to When pushed information, it can be identified according to the index mark of the information to be pushed of storage and corresponding relationship, the index of the mark of terminal The information to be pushed is got with the storage location corresponding relationship of information to be pushed, therefore does not need repeatedly to store letter to be pushed Breath, solves the problems, such as to need to store multiple information to be pushed in existing information push scheme, and it is empty to be greatly saved storage Between, avoid the waste of resource.
The pushed information storage method that the embodiment of the present invention provides can be applied in the corresponding system of Figure 12, the system Including:Terminal and server c, wherein server c can be communicated with multiple terminals, to include that there are two terminal, terminals in Figure 12 It is illustrated for a and terminal b;Terminal a is target terminal, and server is the server that the corresponding embodiment of Figure 11 provides.
The embodiment of the present invention provides a kind of computer storage medium, and being stored with computer in the computer storage medium can It executes instruction, the pushed information storage method which provides for the corresponding embodiment in Fig. 1~3.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (17)

1. a kind of pushed information storage method, which is characterized in that the method includes:
It receives and is requested for the push of pushed information at least two terminals;Wherein, the end is carried in the push request The mark at end and the mark of information to be pushed;
The push request is responded, the mark based on the information to be pushed obtains information to be pushed;
Based on the mark of the terminal, the index mark of the information to be pushed is generated;
The first corresponding relationship between the mark of the terminal and the index mark is established, and stores the described first corresponding pass System;
It determines the storage location of the information to be pushed, and stores the information to be pushed;
The second corresponding relationship between the index mark and the storage location of the information to be pushed is established, and stores described the Two corresponding relationships.
2. the method according to claim 1, wherein the mark based on the terminal, generates described wait push away Deliver letters breath index mark, including:
Based on the mark of the terminal, the attribute information of the terminal is obtained;
Based on the attribute information of the terminal, identified using the index that preset algorithm generates the information to be pushed.
3. the method according to claim 1, wherein the mark for establishing the terminal and the index identify Between the first corresponding relationship, and store first corresponding relationship, including:
Obtain the memory space of the memory current residual of server;
Obtain the mark of the terminal, the summation for the memory space that index identifies and the information to be pushed need to occupy;
If the summation for the memory space that the mark of the terminal, index mark and the information to be pushed need to occupy is less than or equal to The memory space of the memory current residual of the server establishes first corresponding relationship, and described first is corresponded to and is closed System is stored in the memory of the server.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If the summation for the memory space that the mark of the terminal, index mark and the information to be pushed need to occupy is greater than described deposit The memory space of reservoir current residual adds first memory, obtains second memory;Wherein, it is wrapped in the second memory At least two memories are included;The first memory belongs to the second memory;
The terminal is classified according to default classifying rules;
Establish the corresponding relationship between the mark of the terminal in each classification and the second memory;
Corresponding relationship between mark and second memory based on the terminal in each classification, by the end in each classification Corresponding relationship between the mark at end and the index mark is stored in the corresponding memory in the second memory;
The storage location of the determination information to be pushed, and the information to be pushed is stored, including:
The storage location for determining the information to be pushed is the corresponding terminal of information to be pushed described in the second memory Position where identifying, and store the information to be pushed.
5. the method according to claim 1, wherein the storage location of the determination information to be pushed, and The information to be pushed is stored, including:
Judge the information to be pushed whether is stored in the memory of the server;
If the not stored information to be pushed, determines described in the storage location of the information to be pushed and storage in the server Information to be pushed.
6. the method according to claim 1, wherein described establish the index mark and the information to be pushed Storage location between the second corresponding relationship, and store second corresponding relationship, further include later:
After being spaced preset time, first corresponding relationship stored in the memory of the server, second pair described is deleted It should be related to and the information to be pushed.
7. the method according to claim 1, wherein described establish the index mark and the information to be pushed Storage location between the second corresponding relationship, and store second corresponding relationship, further include later:
Receive the downloading request for downloading the information to be pushed that target terminal is sent;Wherein, it is taken in the downloading request Mark with the target terminal;
The downloading request is responded, the mark based on the target terminal searches the target in first corresponding relationship The corresponding target index mark of the mark of terminal;
It is indexed and is identified based on the target, search target storage position in second corresponding relationship;Wherein, the target is deposited Storage space is set to the storage location for the information to be pushed that the terminal need to be downloaded;
The information to be pushed is obtained in the target storage position, and is sent to the target terminal.
8. the method according to the description of claim 7 is characterized in that the acquisition in the target storage position is described wait push away It delivers letters breath, and is sent to the target terminal, further include later:
Receive the reading confirmation message that the target terminal is sent;Wherein, the confirmation message of having read is that the target terminal is true Surely it receives and sends after the information to be pushed;
Response is described to have read confirmation message, deletes the mark of the target terminal of storage.
9. a kind of pushed information storage device, which is characterized in that described device includes:First receiving unit, first acquisition unit, First establishing unit, first processing units and second establish unit, wherein:
First receiving unit is used for the push request of pushed information at least two terminals for receiving;Wherein, described to push away It send in request and carries the mark of the terminal and the mark of information to be pushed;
The first acquisition unit, for responding the push request, the mark based on the information to be pushed is obtained wait push Information;
The first acquisition unit is also used to the mark based on the terminal, generates the index mark of the information to be pushed;
The first establishing unit, the first corresponding relationship for establishing between the mark of the terminal and the index mark, And store first corresponding relationship;
The first processing units for determining the storage location of the information to be pushed, and store the information to be pushed;
Described second establishes unit, second for establishing between the index mark and the storage location of the information to be pushed Corresponding relationship, and store second corresponding relationship.
10. device according to claim 9, which is characterized in that the first acquisition unit includes:First obtain module and First processing module, wherein:
The first acquisition module obtains the attribute information of the terminal for the mark based on the terminal;Wherein, described Attribute information is information relevant to the terminal;
The first processing module generates the letter to be pushed using preset algorithm for the attribute information based on the terminal The index of breath identifies.
11. device according to claim 9, which is characterized in that the first establishing unit includes:Second obtain module and Second processing module, wherein:
Described second obtains module, the remaining memory space of memory for obtaining server;
Described second obtains module, and the mark, index mark and the information to be pushed for being also used to obtain the terminal need to occupy Memory space summation;
The Second processing module, if mark, index mark and depositing of need to occupying of the information to be pushed for the terminal The summation for storing up space is less than or equal to the memory space of the remaining memory of the server, establishes first corresponding relationship, And first corresponding relationship is stored in the memory of the server.
12. device according to claim 11, which is characterized in that the Second processing module is also used to:
If the summation for the memory space that the mark of the terminal, index mark and the information to be pushed need to occupy is greater than described deposit The remaining memory space of reservoir adds first memory, obtains second memory;Wherein, include in the second memory At least two memories;The first memory belongs to the second memory;
The terminal is classified according to default classifying rules;
Establish the corresponding relationship between the mark of the terminal in each classification and the second memory;
Corresponding relationship between mark and second memory based on the terminal in each classification, by the end in each classification Corresponding relationship between the mark at end and the index mark is stored in the corresponding memory in the second memory;
The first processing units are also used to:
The storage location for determining the information to be pushed is the corresponding terminal of information to be pushed described in the second memory Position where identifying, and store the information to be pushed.
13. device according to claim 9, which is characterized in that the first processing units include:Judgment module and storage Module, wherein:
Whether the judgment module is stored with the information to be pushed in the memory for judging the server;
The memory module, if determining the information to be pushed for the not stored information to be pushed in the server Storage location simultaneously stores the information to be pushed.
14. device according to claim 9, which is characterized in that described device further includes:Unit is deleted, wherein:
The deletion unit deletes described first pair stored in the memory of the server after being spaced preset time It should be related to, second corresponding relationship and the information to be pushed.
15. device according to claim 9, which is characterized in that described device further includes:Second receiving unit, second are obtained Unit and transmission unit are taken, wherein:
Second receiving unit, for receiving the downloading request for downloading the information to be pushed of target terminal transmission; Wherein, the mark of the target terminal is carried in the downloading request;
The second acquisition unit, for responding the downloading request, the mark based on the target terminal is at described first pair In should being related to, the corresponding target index mark of mark of the target terminal is searched;
The second acquisition unit is also used to search target in second corresponding relationship based on target index mark Storage location;Wherein, the target storage position is the storage location for the information to be pushed that the terminal need to be downloaded;
The transmission unit for obtaining the information to be pushed in the target storage position, and is sent to the target Terminal.
16. a kind of server, which is characterized in that the server includes:Processor and communication interface, wherein:
The processor is requested for being received by the communication interface for the push of pushed information at least two terminals; The mark of the mark and information to be pushed of the terminal is carried in the push request;The push request is responded, institute is based on The mark for stating information to be pushed obtains information to be pushed;Based on the mark of the terminal, the index of the information to be pushed is generated Mark;The first corresponding relationship between the mark of the terminal and the index mark is established, and stores the described first corresponding pass System;It determines the storage location of the information to be pushed, and stores the information to be pushed;Establish index mark with it is described to The second corresponding relationship between the storage location of pushed information, and store second corresponding relationship.
17. a kind of computer storage medium, computer executable instructions are stored in the computer storage medium, the computer Executable instruction requires 1 to 8 described in any item pushed information storage methods for perform claim.
CN201710365891.4A 2017-05-09 2017-05-09 Push information storage method and device, server and computer storage medium Active CN108881354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710365891.4A CN108881354B (en) 2017-05-09 2017-05-09 Push information storage method and device, server and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710365891.4A CN108881354B (en) 2017-05-09 2017-05-09 Push information storage method and device, server and computer storage medium

Publications (2)

Publication Number Publication Date
CN108881354A true CN108881354A (en) 2018-11-23
CN108881354B CN108881354B (en) 2021-11-09

Family

ID=64320948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710365891.4A Active CN108881354B (en) 2017-05-09 2017-05-09 Push information storage method and device, server and computer storage medium

Country Status (1)

Country Link
CN (1) CN108881354B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109600240A (en) * 2018-12-21 2019-04-09 北京云中融信网络科技有限公司 Group Communications method and device
CN109617787A (en) * 2018-12-17 2019-04-12 上海点融信息科技有限责任公司 For the message method of sending and receiving of block chain network, storage medium, calculate equipment
CN110035002A (en) * 2019-04-01 2019-07-19 深圳前海达闼云端智能科技有限公司 Method for implementing instant messaging, terminal equipment and storage medium
CN110691143A (en) * 2019-10-21 2020-01-14 北京奇艺世纪科技有限公司 File pushing method and device, electronic equipment and medium
CN111131277A (en) * 2019-12-27 2020-05-08 深圳市速易宝智能科技有限公司 Data pushing method and system
CN112632375A (en) * 2020-12-18 2021-04-09 深圳市和讯华谷信息技术有限公司 Session information processing method, server and storage medium
CN112671636A (en) * 2020-12-25 2021-04-16 深圳云之家网络有限公司 Group message pushing method and device, computer equipment and storage medium
CN112788128A (en) * 2020-12-31 2021-05-11 青岛海尔科技有限公司 Business information pushing method and device, storage medium and electronic device
CN112954018A (en) * 2021-01-28 2021-06-11 北京奇艺世纪科技有限公司 Information processing method and device, electronic equipment and readable storage medium
CN113176951A (en) * 2021-04-20 2021-07-27 京东数字科技控股股份有限公司 Message copying method, device, equipment and computer readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102056079A (en) * 2009-10-30 2011-05-11 中国移动通信集团上海有限公司 Method, device and system for determining information to be pushed
US20130144954A1 (en) * 2010-07-30 2013-06-06 Huawei Technologies Co., Ltd. Method and Apparatus for Cooperation Between Push Devices
CN103973737A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Method, server and browser for actively pushing messages
CN104796322A (en) * 2015-03-25 2015-07-22 腾讯科技(深圳)有限公司 Message processing method and equipment
CN104811482A (en) * 2015-04-01 2015-07-29 广东小天才科技有限公司 Classifying storing method and system for terminal data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102056079A (en) * 2009-10-30 2011-05-11 中国移动通信集团上海有限公司 Method, device and system for determining information to be pushed
US20130144954A1 (en) * 2010-07-30 2013-06-06 Huawei Technologies Co., Ltd. Method and Apparatus for Cooperation Between Push Devices
CN103973737A (en) * 2013-01-30 2014-08-06 腾讯科技(深圳)有限公司 Method, server and browser for actively pushing messages
CN104796322A (en) * 2015-03-25 2015-07-22 腾讯科技(深圳)有限公司 Message processing method and equipment
CN104811482A (en) * 2015-04-01 2015-07-29 广东小天才科技有限公司 Classifying storing method and system for terminal data

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109617787A (en) * 2018-12-17 2019-04-12 上海点融信息科技有限责任公司 For the message method of sending and receiving of block chain network, storage medium, calculate equipment
CN109600240A (en) * 2018-12-21 2019-04-09 北京云中融信网络科技有限公司 Group Communications method and device
CN110035002B (en) * 2019-04-01 2021-09-10 达闼机器人有限公司 Method for implementing instant messaging, terminal equipment and storage medium
CN110035002A (en) * 2019-04-01 2019-07-19 深圳前海达闼云端智能科技有限公司 Method for implementing instant messaging, terminal equipment and storage medium
CN110691143A (en) * 2019-10-21 2020-01-14 北京奇艺世纪科技有限公司 File pushing method and device, electronic equipment and medium
CN110691143B (en) * 2019-10-21 2022-03-04 北京奇艺世纪科技有限公司 File pushing method and device, electronic equipment and medium
CN111131277A (en) * 2019-12-27 2020-05-08 深圳市速易宝智能科技有限公司 Data pushing method and system
CN111131277B (en) * 2019-12-27 2022-07-05 深圳市速易宝智能科技有限公司 Data pushing method and system
CN112632375A (en) * 2020-12-18 2021-04-09 深圳市和讯华谷信息技术有限公司 Session information processing method, server and storage medium
CN112671636A (en) * 2020-12-25 2021-04-16 深圳云之家网络有限公司 Group message pushing method and device, computer equipment and storage medium
CN112671636B (en) * 2020-12-25 2023-03-03 深圳云之家网络有限公司 Group message pushing method and device, computer equipment and storage medium
CN112788128A (en) * 2020-12-31 2021-05-11 青岛海尔科技有限公司 Business information pushing method and device, storage medium and electronic device
CN112954018A (en) * 2021-01-28 2021-06-11 北京奇艺世纪科技有限公司 Information processing method and device, electronic equipment and readable storage medium
CN113176951A (en) * 2021-04-20 2021-07-27 京东数字科技控股股份有限公司 Message copying method, device, equipment and computer readable medium

Also Published As

Publication number Publication date
CN108881354B (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN108881354A (en) A kind of pushed information storage method, device, server and computer storage medium
CN107332876B (en) Method and device for synchronizing block chain state
CN110048927B (en) Communication method and communication device
CN101163117B (en) Packet management method, packet resource sharing method and instant communication equipment
CN104618312B (en) A kind of remote login methods, devices and systems of M2M application
CN104144098B (en) Information push method, system and push server equipment
CN104796326A (en) Group creating method, data loading method and device for enterprise IM
CN105991412B (en) Information push method and device
JP6624619B2 (en) Resource subscription method, resource subscription device, and resource subscription system
CN105868231A (en) Cache data updating method and device
CN104038917B (en) The method and device of terminal roaming certification
CN109981751A (en) A kind of document transmission method and system, computer equipment and storage medium
CN109756453A (en) Acquisition methods, the apparatus and system of group membership's information in a kind of group system
CN103326925B (en) A kind of information push method and device
CN109561100B (en) Method and system for duplex energized network attack and defense based on distributed and artificial intelligence
CN108880972A (en) A kind of information processing method, server and terminal
CN102404387A (en) Method, device and equipment for information synchronization with other nodes
JP2015522879A (en) Service device, method and storage medium for providing offline message
CN109150936A (en) The sharing method and device of session object Session in a kind of distributed type assemblies
CN102857547B (en) The method and apparatus of distributed caching
US20140156809A1 (en) Data downloading method, terminal, server, and system
CN111935242A (en) Data transmission method, device, server and storage medium
CN108777664A (en) A kind of data package processing method and its equipment, system, storage medium
CN109525633B (en) Block chain network, message sending method and message receiving method based on block chain network
US20180081746A1 (en) Application message processing system, method, and application device

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
GR01 Patent grant
GR01 Patent grant