Summary of the invention
The embodiment of the present application provides expired treatment process and the device of a kind of information, in order to solve the problem big batch of information being carried out clear operation and cannot complete when validity information is limited to and reaches.
The concrete technical scheme that the embodiment of the present application provides is as follows:
An expired treatment process for information, comprising:
For each the business type configuration corresponding visitor information valid period under each user's identity;
When often determining that a visitor produces to meet pre-conditioned access behavior for a kind of business type under user's identity, the visitor information of described visitor corresponding record under described user's identity is upgraded, at no point in the update process, when determining that the renewal time exceedes corresponding visitor information valid period, perform expired process for described visitor information.
Like this, it is possible in time information is carried out expired process, avoid the wasting of resources owing to causing when a large amount of information is hoarded and process, it is to increase the processing efficiency of system, the operating performance of system has also been ensured.
Can selection of land, at no point in the update process, it is determined that when the renewal time exceedes corresponding visitor information valid period, perform expired process for described visitor information, specifically comprise:
For the visitor information of described visitor corresponding record under described user's identity, delete the visitor information before described corresponding visitor information valid period, and record the visitor information that described access behavior is corresponding; And,
According to the described renewal time, for a described visitor, under described user's identity, reconfigure corresponding visitor information valid period.
Can selection of land, comprise further:
If at no point in the update process, it is determined that the renewal time does not exceed corresponding visitor information valid period, then retain the existing visitor information of described visitor corresponding record under described user's identity, and add the visitor information that described access behavior is corresponding wherein.
Can selection of land, comprise further:
When inquiring about for the visitor information of described visitor corresponding record under described user's identity, judge whether the inquiry time exceedes corresponding visitor information valid period, if then returning Query Result is zero, point out described visitor information out of date; Otherwise, return corresponding visitor information.
Can selection of land, comprise further:
The renewal time limit threshold value of visitor information is set up respectively for each user's identity, when often determining that the shelf time of a visitor information under user's identity upgrades not yet when reaching and preset and upgrade time limit threshold value, a described visitor information is carried out clear operation.
Like this, avoid when visitor access behavior does not occur for a long time and causes visitor information not upgrade for a long time, and the problem that a large amount of information of the system caused is hoarded.
An expired treatment unit for information, comprising:
Arrangement unit, for for each the business type configuration corresponding visitor information valid period under each user's identity;
Processing unit, for when often determining that a visitor produces to meet pre-conditioned access behavior for a kind of business type under user's identity, the visitor information of described visitor corresponding record under described user's identity is upgraded, at no point in the update process, when determining that the renewal time exceedes corresponding visitor information valid period, perform expired process for described visitor information.
Like this, it is possible in time information is carried out expired process, avoid the wasting of resources owing to causing when a large amount of information is hoarded and process, it is to increase the processing efficiency of system, the operating performance of system has also been ensured.
Can selection of land, at no point in the update process, it is determined that when the renewal time exceedes corresponding visitor information valid period, perform expired process for described visitor information, described processing unit specifically for:
For the visitor information of described visitor corresponding record under described user's identity, delete the visitor information before described corresponding visitor information valid period, and record the visitor information that described access behavior is corresponding;And,
According to the described renewal time, for a described visitor, under described user's identity, reconfigure corresponding visitor information valid period.
Can selection of land, described processing unit is further used for:
If at no point in the update process, it is determined that the renewal time does not exceed corresponding visitor information valid period, then retain the existing visitor information of described visitor corresponding record under described user's identity, and add the visitor information that described access behavior is corresponding wherein.
Can selection of land, comprise further:
Query unit, for when the visitor information for described visitor corresponding record under described user's identity is inquired about, judging whether the inquiry time exceedes corresponding visitor information valid period, if, then returning Query Result is zero, points out described visitor information out of date; Otherwise, return corresponding visitor information.
Can selection of land, described processing unit is further used for:
The renewal time limit threshold value of visitor information is set up respectively for each user's identity, when often determining that the shelf time of a visitor information under user's identity upgrades not yet when reaching and preset and upgrade time limit threshold value, a described visitor information is carried out clear operation.
Like this, avoid when visitor access behavior does not occur for a long time and causes visitor information not upgrade for a long time, and the problem that a large amount of information of the system caused is hoarded.
Embodiment
The embodiment of the present application designs expired treatment process and the device of a kind of information, by configuring the visitor information valid period of respective user identity in business type layer, when visitor produces access behavior for business type, expired process can be performed in the process that this visitor information of record under user's identity upgrades, like this, avoid when the valid period that user's identity is corresponding arrives, under in the same moment, unification is to this user's identity, all visitor informations reset and cannot finish the work, or the problem in cost source consuming time.
Below in conjunction with accompanying drawing, a kind of implementation of the embodiment of the present application is described in detail.
Consulting shown in Fig. 1, in the embodiment of the present application, when performing expired process, calculate equipment (ComputingDevice), such as background service implement body performs following operation:
Step 100: for each the business type configuration corresponding visitor information valid period under each user's identity.
There is a lot of user in an information platform, very multi-service type is had under each user's identity, and have the information that a lot of visitor registers oneself under each user's identity, under each user's identity for each visitor corresponding have an information record, like this when visitor carries out qualified access, the information record of oneself can be upgraded, or, it is possible at any time the information record of oneself is consulted.
On an information platform, different user's identity can be comprised, as: doctor, lawyer, trade company etc., different information can be accessed according to the link of different webpages, multiple business type is had under each user's identity, such as, different subjects is comprised: face under this user's identity of doctor, internal medicine, surgery etc., after visitor registers the information of oneself under this user's identity of doctor, if meeting pre-conditioned access behavior for a certain business type, as, now register in department of eye, or inquire, or when carrying out the behaviors such as diagnosis, the visitor information of this visitor corresponding record under this user's identity of doctor will upgrade accordingly.
Again such as: comprise different consulting types under this user's identity of lawyer: criminal case, civil cases etc., after visitor registers the information of oneself under this user's identity of lawyer, if meeting pre-conditioned access behavior for a certain business type, as, the case that consulting people business is correlated with, or, employ relevant lawyer and act on behalf of, etc., then the visitor information of this visitor corresponding record under this user's identity of lawyer will be upgraded accordingly.
Again such as, for this user's identity of trade company, there is a large amount of trade companies (such as Online Store in an information platform, payment instrument etc.), different business types is there is (as sold product under Online Store under each trade company, payment instrument is used to pay cab fare, the various expense such as telephone expenses), after visitor registers the information of oneself under a certain trade company, if meeting pre-conditioned access behavior for a certain business type under this trade company, as, certain product is bought in Online Store, or, payment instrument is used to pay telephone expenses etc., then the visitor information of this visitor under the trade company that correspondence is concluded the business will be upgraded, specifically, this visitor information can be exist with integrated form, so, this visitor is when concluding the business successfully, under corresponding trade company, the integration of record will be increased.
Further, for promoting that visitor is to the renewal of information, increase the access times of visitor, visitor information valid period under a respective doors is set for each user's identity, namely, if visitor is when valid period arrives, do not carry out under corresponding user's identity yet any qualified access behavior (as, register under this user's identity of doctor, reservation consulting under this user's identity of lawyer, certain product is bought) under this user's identity of businessman, then its visitor information recorded under this user's identity will be expired, accordingly, this visitor information under this user's identity will be cleared, or perform other and reduce operation.
For each the business type under each user's identity, the expiration rule of configuration business type owning user identity, this expiration rule comprises the valid period etc. of visitor information under the expired type of this user's identity, this user's identity. Like this, when visitor carries out meeting pre-conditioned access behavior for business type, can read the configuration information that this business type is carried, get the visitor information valid period of corresponding visitor, thus carry out corresponding expired process.
Wherein, the expired type of user's identity can comprise: year, the moon, week etc., such as, expired type is year, then the valid period of corresponding under this user's identity all visitor informations is the end of the year (i.e. the last day) of this year; Again such as, expired type is week, then the valid period of corresponding under this user's identity all visitor informations is the last day (or a certain time period of the last day or time point) of one week; Also or, expired type can manually be arranged, and the valid period of namely corresponding under this user's identity all visitor informations can be in 1 year any one day, specifically determines according to setting.
Step 110: when often determining that a visitor produces to meet pre-conditioned access behavior for a kind of business type under user's identity, the visitor information of described visitor corresponding record under described user's identity is upgraded, at no point in the update process, when determining that the renewal time exceedes corresponding visitor information valid period, perform expired process for described visitor information.
When a visitor under user's identity conducts interviews for a kind of business type, if this access behavior meet pre-conditioned (pre-conditioned can for visitor and this business type generation affirming conduct, such as, register under this user's identity of doctor, reservation consulting under this user's identity of lawyer, certain product is bought) under this user's identity of businessman, then the visitor information that this visitor records under this user's identity is upgraded, specifically, the content update this access behavior correspondence produced is in visitor information record.
In the process upgraded, first for the business type of a certain name visitor access, read the configuration information that this business type is carried, get the visitor information valid period of this visitor, again the valid period of renewal time and visitor information is compared, according to comparative result, visitor information is operated, specifically has two kinds of situations:
If the renewal time does not exceed the valid period of corresponding visitor information, then retain the visitor information that this visitor preserves before corresponding record under this user's identity, and add the fresh content of the access behavior generation carried out for business type wherein, record new visitor information; The valid period of the visitor information before reservation.
If the renewal time exceedes the valid period of corresponding visitor information, then for the visitor information of this visitor corresponding record under this user's identity, delete the visitor information before corresponding visitor information valid period, and the visitor information that record access behavior is corresponding, namely, the visitor information preserved before deletion, comes in the fresh content increase that the access behavior carried out for business type produces, as new visitor information record;
Further, according to the renewal time, for this visitor, under this user's identity, corresponding visitor information valid period is reconfigured. That is, according to the renewal time this time, it is determined that the next valid period of visitor information owning user identity, again configure new valid period for this visitor information.
In addition, when inquiring about for the visitor information of visitor corresponding record under its owning user identity, judging whether the inquiry time exceedes corresponding visitor information valid period, if then returning Query Result is zero, prompting visitor information is out of date; Otherwise, return corresponding visitor information.
Specifically, any visitor can inquire about for the visitor information of corresponding record under oneself owning user identity, in query script, if the inquiry time is before visitor information valid period, then Query Result returns all visitor informations before valid period;
If the inquiry time, then Query Result returned zero, represents that this visitor information is out of date after visitor information valid period. In this kind of situation, according to the wish of visitor oneself, can select visitor information is carried out expired process, namely reset; Or, in time producing to meet pre-conditioned access behavior for the business type under this user's identity next time, to, in the renewal process of visitor information, visitor information record being carried out expired process; Also or, visitor information is carried out expired process by waiting system.
Wherein, visitor information is carried out expired process by said system, refer to: the renewal time limit threshold value setting up visitor information for each user's identity respectively, often determine that the shelf time of a visitor information under user's identity is when reaching default renewal time limit threshold value and upgrade not yet, carries out clear operation to this visitor information.
In practical application, the visitor information that a corresponding visitor records under user's identity has exceeded its corresponding visitor information valid period, but visitor does not use any one business type under this user's identity always, obviously, if this situation continues, its visitor information will can not get upgrading always, thus cause visitor information to pile up.
In order to avoid this situation to occur, preferably, the renewal time limit threshold value of corresponding visitor information can be set up respectively for each user's identity, if when upgrading time limit threshold value and arrive, the visitor information that still there is part visitor under a certain user's identity does not upgrade, then this part visitor information is carried out clear operation.
Such as, the expiration rule of a certain user's identity is year, the valid period of namely all under this user's identity visitor informations is the last day (such as on December 31st, 2014) in the end of the year, if the renewal time limit threshold value of this user's identity is 3 years, the moment then upgraded for the last time from visitor information starts at (such as on September 25th, 2014), when arriving 3 years in limited time (on September 25th, 2017), this visitor information is upgraded not yet, then this visitor information will be reset by system.
Based on above-described embodiment, consulting shown in Fig. 2, in the embodiment of the present application, calculating equipment such as background service implement body comprises: the expired treatment unit of a kind of information, comprising: arrangement unit 200, processing unit 210 and query unit 220.
Arrangement unit 200, for for each the business type configuration corresponding visitor information valid period under each user's identity;
Processing unit 210, for when often determining that a visitor produces to meet pre-conditioned access behavior for a kind of business type under user's identity, the visitor information of this visitor corresponding record under this user's identity is upgraded, at no point in the update process, when determining that the renewal time exceedes corresponding visitor information valid period, perform expired process for this visitor information.
Like this, avoiding when the valid period that user's identity is corresponding arrives, under in the same moment, unification is to this user's identity, all visitor informations reset and cannot finish the work, or the problem in cost source consuming time.
Can selection of land, at no point in the update process, it is determined that when the renewal time exceedes corresponding visitor information valid period, perform expired process for visitor information, processing unit 210 specifically for:
For the visitor information of this visitor corresponding record under this user's identity, delete the visitor information before corresponding visitor information valid period, and record the visitor information that this access behavior is corresponding; And,
According to the renewal time, for this visitor, under this user's identity, reconfigure corresponding visitor information valid period.
Can selection of land, processing unit 210 is further used for:
If at no point in the update process, it is determined that the renewal time does not exceed corresponding visitor information valid period, then retain the existing visitor information of this visitor corresponding record under this user's identity, and add the visitor information that this access behavior is corresponding wherein.
Can selection of land, comprise further:
Query unit 220, for when the visitor information for this visitor corresponding record under this user's identity is inquired about, judging whether the inquiry time exceedes corresponding visitor information valid period, if, then returning Query Result is zero, points out this visitor information out of date; Otherwise, return corresponding visitor information.
Can selection of land, processing unit 210 is further used for:
The renewal time limit threshold value of visitor information is set up respectively for each user's identity, when often determining that the shelf time of a visitor information under user's identity upgrades not yet when reaching and preset and upgrade time limit threshold value, this visitor information is carried out clear operation.
In sum, in the embodiment of the present application, do not adopt and carry out the clear operation of big batch in specified time unification for visitor information, but when a visitor conducts interviews for a certain business type under any user's identity, just can judge that whether the visitor information that this visitor corresponding records under above-mentioned a kind of business type of above-mentioned any user's identity is expired, when determining expired, then this part visitor information is performed expired process. Main method is: for each the business type configuration corresponding visitor information valid period under each user's identity, when often determining that a visitor produces to meet pre-conditioned access behavior for a kind of business type under user's identity, the visitor information of this visitor corresponding record under this user's identity is upgraded, at no point in the update process, when determining that the renewal time exceedes corresponding visitor information valid period, perform expired process for this visitor information. Like this, in time information can be carried out expired process, avoid the wasting of resources owing to causing when a large amount of information is hoarded and process, improve the processing efficiency of system, also the operating performance of system has been ensured, avoiding when the valid period that user's identity is corresponding arrives, under in the same moment, unification is to this user's identity, all visitor informations reset and cannot finish the work, or the problem in cost source consuming time.
Those skilled in the art are it should be appreciated that the embodiment of the application can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect. And, the application can adopt the form at one or more upper computer program implemented of computer-usable storage medium (including but not limited to multiple head unit, CD-ROM, optical memory etc.) wherein including computer usable program code.
The application is that schema and/or skeleton diagram with reference to the method according to the embodiment of the present application, equipment (system) and computer program describe. Should understand can by the combination of the flow process in each flow process in computer program instructions flowchart and/or skeleton diagram and/or square frame and schema and/or skeleton diagram and/or square frame. These computer program instructions can be provided to the treater of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine so that the instruction performed by the treater of computer or other programmable data processing device is produced for realizing the device of function specified in schema flow process or multiple flow process and/or skeleton diagram square frame or multiple square frame.
These computer program instructions also can be stored in and can guide in computer-readable memory that computer or other programmable data processing device work in a specific way, making the instruction that is stored in this computer-readable memory produce the manufacture comprising instruction device, this instruction device realizes the function specified in schema flow process or multiple flow process and/or skeleton diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform a series of operation steps to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for realizing the step of the function specified in schema flow process or multiple flow process and/or skeleton diagram square frame or multiple square frame.
Although having described the preferred embodiment of the application, but those skilled in the art once the substantially creative concept of cicada, then these embodiments can be made other change and amendment. Therefore, it is intended that the appended claims shall be construed comprise preferred embodiment and fall into all changes and the amendment of the application's scope.
Obviously, the embodiment of the present application can be carried out various change and modification and not depart from the spirit and scope of the embodiment of the present application by the technician of this area. Like this, if these amendments of the embodiment of the present application and modification belong within the scope of the application's claim and equivalent technologies thereof, then the application also is intended to comprise these change and modification.