Summary of the invention
The embodiment of the present application provides a kind of expired processing method and processing device of information, is limited to solve in validity information
Up to when operation is zeroed out and the problem of be unable to complete to information high-volume.
Specific technical solution provided by the embodiments of the present application is as follows:
A kind of expired processing method of information, comprising:
Corresponding visitor information term of validity is configured for each type of service under each user identity;
One visitor of every determination generates the access for meeting preset condition under a user identity for a kind of type of service
When behavior, visitor visitor information of corresponding record under one user identity is updated, updated
Cheng Zhong when determining that renewal time is more than corresponding visitor information term of validity, executes expired processing for the visitor information.
In such manner, it is possible to carry out expired processing to information in time, avoids and made when being handled since bulk information is hoarded
At the wasting of resources, improve the treatment effeciency of system, also ensured the runnability of system.
Optionally, at no point in the update process, when determining that renewal time is more than corresponding visitor information term of validity, for described
Visitor information executes expired processing, specifically includes:
For the visitor information of visitor corresponding record under one user identity, delete corresponding
Visitor information before visitor information term of validity, and record the corresponding visitor information of the access behavior;And
According to the renewal time, for a visitor, reconfigured under one user identity corresponding
Visitor information term of validity.
Optionally, further comprise:
If at no point in the update process, determining, renewal time is less than corresponding visitor information term of validity, then retains described one
The existing visitor information of name visitor's corresponding record under one user identity, and the access behavior pair is added wherein
The visitor information answered.
Optionally, further comprise:
When for a visitor, the visitor information of corresponding record is inquired under one user identity, judgement
Whether query time is more than corresponding visitor information term of validity, if so, returning to query result is zero, the visitor is prompted to believe
It ceases out of date;Otherwise, corresponding visitor information is returned.
Optionally, further comprise:
Set up the update time limit threshold value of visitor information, one user identity of every determination respectively for each user identity
Under a visitor information holding time reach it is default update time limit threshold value when be not updated yet when, to described one
Visitor information is zeroed out operation.
In this way, avoid when access behavior does not occur for a long time and visitor information is caused not update for a long time by visitor, and
Caused by system bulk information the problem of hoarding.
A kind of expired processing unit of information, comprising:
Configuration unit has for configuring corresponding visitor information for each type of service under each user identity
Imitate the time limit;
Processing unit, for meeting under a user identity for a kind of generation of type of service in one visitor of every determination
When the access behavior of preset condition, the visitor information of visitor corresponding record under one user identity is carried out
It updates, at no point in the update process, when determining that renewal time is more than corresponding visitor information term of validity, is held for the visitor information
The expired processing of row.
In such manner, it is possible to carry out expired processing to information in time, avoids and made when being handled since bulk information is hoarded
At the wasting of resources, improve the treatment effeciency of system, also ensured the runnability of system.
Optionally, at no point in the update process, when determining that renewal time is more than corresponding visitor information term of validity, for described
Visitor information executes expired processing, and the processing unit is specifically used for:
For the visitor information of visitor corresponding record under one user identity, delete corresponding
Visitor information before visitor information term of validity, and record the corresponding visitor information of the access behavior;And
According to the renewal time, for a visitor, reconfigured under one user identity corresponding
Visitor information term of validity.
Optionally, the processing unit is further used for:
If at no point in the update process, determining, renewal time is less than corresponding visitor information term of validity, then retains described one
The existing visitor information of name visitor's corresponding record under one user identity, and the access behavior pair is added wherein
The visitor information answered.
Optionally, further comprise:
Query unit, in the visitor information for being directed to visitor corresponding record under one user identity
When being inquired, judge whether query time is more than corresponding visitor information term of validity, if so, return query result is
Zero, prompt the visitor information out of date;Otherwise, corresponding visitor information is returned.
Optionally, the processing unit is further used for:
Set up the update time limit threshold value of visitor information, one user identity of every determination respectively for each user identity
Under a visitor information holding time reach it is default update time limit threshold value when be not updated yet when, to described one
Visitor information is zeroed out operation.
In this way, avoid when access behavior does not occur for a long time and visitor information is caused not update for a long time by visitor, and
Caused by system bulk information the problem of hoarding.
Specific embodiment
The embodiment of the present application designs a kind of expired processing method and processing device of information, is corresponded to by configuring in type of service layer
The visitor information term of validity of user identity can be to remembering when visitor generates access behavior for type of service under user identity
The visitor information of record executes expired processing during being updated, in this way, avoiding validity period corresponding in user identity
When being limited to reach, in the case where synchronization is unified to the user identity, all visitor informations are zeroed out and are unable to complete task, or consumption
When cost source the problem of.
A kind of implementation of the embodiment of the present application is described in detail with reference to the accompanying drawing.
As shown in fig.1, when executing expired processing, calculating equipment (Computing in the embodiment of the present application
Device), such as background service implement body executes following operation:
Step 100: configuring corresponding visitor information validity period for each type of service under each user identity
Limit.
There are many users on an information platform, there are many types of service under each user identity, and each
The information that many visitors register oneself is had under a user identity, is had under each user identity for each visitor is corresponding
One information record can record the information of oneself in this way when visitor carries out qualified access and be updated, or
Person, can at any time to oneself information record consult.
On an information platform, it may include different user identity, such as: doctor, lawyer, trade company, according to difference
The accessible different information of web page interlinkage, there are many types of service under each user identity, for example, this user of doctor
It include different subject: face, internal medicine, surgery etc. under identity, when visitor registers the letter of oneself under this user identity of doctor
After breath, if the access behavior for meeting preset condition for a certain type of service is e.g. hung in ENT dept. now
Number, when or being inquired, or carrying out the behavior such as diagnosing, this visitor corresponding record under this user identity of doctor
Visitor information will be updated accordingly.
Another example is: including different consulting types under this user identity of lawyer: criminal case, civil cases etc. work as visit
After visitor registers the information of oneself under this user identity of lawyer, if meeting preset condition for a certain type of service
Access behavior, e.g., the relevant case of consulting people quotient act on behalf of, etc. alternatively, employing related lawyer, then this visitor exists
The visitor information of corresponding record will be updated accordingly under this user identity of lawyer.
In another example there are a large amount of trade company (such as online quotient on an information platform for this user identity of trade company
Shop, means of payment etc.), there are different types of service (such as to sell product under Online Store, use payment under each trade company
Tool pays the various expenses such as cab fare, telephone expenses), after visitor registers the information of oneself under some trade company, if be directed to
A certain type of service under this trade company meets the access behavior of preset condition, e.g., buys certain production in Online Store
Product, alternatively, then visitor information of this visitor under the trade company of corresponding transaction will obtain more using means of payment payment telephone expenses etc.
Newly, specifically, which can be exists with integrated form, then, this visitor is when trading successfully, in corresponding trade company
The integral of lower record will be increased.
Further, to promote update of the visitor to information, increase the access times of visitor, for each user identity
Visitor information term of validity under one respective doors is set, that is, if visitor term of validity reach when, not yet in corresponding user
Any qualified access behavior is carried out under identity (e.g., to register under this user identity of doctor, in this user of lawyer
Consulting is reserved under identity, buys certain product under this user identity of businessman), then its visitor recorded under the user identity
Information will be expired, correspondingly, the visitor information under the user identity will be cleared, or executes other and reduces operation.
For each type of service under each user identity, the expired rule of configuration service type owning user identity
Then, which includes the term of validity etc. of visitor information under the expired type of the user identity, the user identity.In this way,
When visitor carries out the access behavior for meeting preset condition for type of service, type of service carrying can be read matches confidence
Breath, gets the visitor information term of validity of corresponding visitor, to carry out corresponding expired processing.
Wherein, the expired type of user identity can include: year, the moon, week etc., for example, expired type is year, then user's body
The term of validity of corresponding all visitor informations is the end of the year (i.e. last day) of this year under part;In another example expired type is
Week, then last day (or certain of last day that the term of validity of corresponding all visitor informations is one week under the user identity
One period or time point);Also alternatively, expired type can be with manual setting, i.e., corresponding all visitor's letters under the user identity
The term of validity of breath can be any one day in 1 year, be determined with specific reference to setting.
Step 110: one visitor of every determination meets default item for a kind of generation of type of service under a user identity
When the access behavior of part, visitor visitor information of corresponding record under one user identity is updated,
At no point in the update process, it when determining that renewal time is more than corresponding visitor information term of validity, was executed for the visitor information
Phase processing.
When a visitor under one user identity accesses for a kind of type of service, if the access behavior meet it is pre-
If (for visitor and the type of service affirming conduct can occur condition for preset condition, for example, hanging under this user identity of doctor
Number, consulting is reserved under this user identity of lawyer, buys certain product under this user identity of businessman), then to the visitor
The visitor information recorded under this user identity is updated, specifically, by the corresponding content update generated of the access behavior
Into visitor information record.
During update, first against the type of service of a certain name guest access, type of service carrying is read
Configuration information, gets the visitor information term of validity of this visitor, then by the term of validity of renewal time and visitor information
It is compared, according to comparison result, visitor information is operated, specific there are two types of situations:
If renewal time is less than the term of validity of corresponding visitor information, retain this visitor in this user
The previously stored visitor information of corresponding record under identity, and generated in the access behavior that wherein addition is carried out for type of service
New content, record new visitor information;The term of validity of visitor information before reservation.
If renewal time is more than the term of validity of corresponding visitor information, for this visitor in this user's body
The visitor information of corresponding record, deletes the visitor information before corresponding visitor information term of validity, and record access row under part
For corresponding visitor information, that is, delete previously stored visitor information, the access behavior carried out for type of service is generated
New content increase is come in, and is recorded as new visitor information;
Also, according to renewal time, for this visitor, under this user identity, corresponding visit is reconfigured
Objective validity information limit.That is, determining next validity period of visitor information owning user identity according to renewal time this time
Limit configures new term of validity for the visitor information again.
In addition, for a visitor visitor information of corresponding record is inquired under its owning user identity when, judgement
Whether query time is more than corresponding visitor information term of validity, if so, returning to query result is zero, has prompted visitor information
It is expired;Otherwise, corresponding visitor information is returned.
Specifically, any one visitor can look into for the visitor information of corresponding record under oneself owning user identity
It askes, in query process, if query time, before visitor information term of validity, query result returned before term of validity
All visitor informations;
If query time, after visitor information term of validity, query result returns to zero, indicate that the visitor information is already expired
Phase.In this case, it can select to carry out expired processing to visitor information, that is, be zeroed out according to the wish of visitor oneself;Or
Person, when meeting the access behavior of preset condition for the type of service generation under the user identity next time, to visitor information
Renewal process in, expired processing is carried out to visitor information record;Also alternatively, waiting system carries out expired place to visitor information
Reason.
Wherein, above system carries out expired processing to visitor information, refers to: setting up visit respectively for each user identity
The holding time of the update time limit threshold value of objective information, a visitor information under one user identity of every determination is reaching default
When update time limit threshold value is not updated yet, operation is zeroed out to this visitor information.
In practical application, the visitor information that a corresponding visitor records under a user identity has been more than its corresponding visit
Objective validity information limit, but any one type of service under this user identity is not used always in visitor, it is clear that if this
Situation continues, and visitor information cannot will update always, so that visitor information be caused to accumulate.
In order to avoid this case generation, preferably, corresponding visitor can be set up respectively for each user identity
The update time limit threshold value of information, if there are still part visitors under some user identity when updating the arrival of time limit threshold value
Visitor information do not update, then to this part, visitor information is zeroed out operation.
For example, the expiration rule of some user identity is year, i.e., visitor information all under the user identity has
The last day (such as on December 31st, 2014) that the time limit is the end of the year is imitated, if the update time limit threshold value of the user identity is three
Year, then (such as 2014 on September 25) is started at the time of update from visitor information last time, prescribe a time limit when reaching 3 years (
On September 25th, 2017), which is still not updated, then system will be zeroed out the visitor information.
Based on the above embodiment, as shown in fig.2, in the embodiment of the present application, equipment such as background service implement body is calculated
It include: a kind of expired processing unit of information, comprising: configuration unit 200, processing unit 210 and query unit 220.
Configuration unit 200, for configuring corresponding visitor's letter for each type of service under each user identity
Cease term of validity;
Processing unit 210, for being generated under a user identity for a kind of type of service in one visitor of every determination
When meeting the access behavior of preset condition, the visitor information of this visitor corresponding record under this user identity is carried out
It updates, at no point in the update process, when determining that renewal time is more than corresponding visitor information term of validity, is executed for the visitor information
Expired processing.
In this way, avoid when reaching user identity corresponding term of validity, it is unified to the user identity in synchronization
Under all visitor informations be zeroed out and be unable to complete task, or the problem of time-consuming cost source.
Optionally, at no point in the update process, when determining that renewal time is more than corresponding visitor information term of validity, for visitor
Information executes expired processing, and processing unit 210 is specifically used for:
For the visitor information of this visitor corresponding record under this user identity, corresponding visitor information is deleted
Visitor information before term of validity, and record the corresponding visitor information of access behavior;And
Corresponding visitor information is reconfigured under this user identity for this visitor according to renewal time
Term of validity.
Optionally, processing unit 210 is further used for:
If at no point in the update process, determining, renewal time is less than corresponding visitor information term of validity, then retains this name
The existing visitor information of visitor's corresponding record under this user identity, and the corresponding visit of access behavior is added wherein
Objective information.
Optionally, further comprise:
Query unit 220, in the visitor information for being directed to this visitor corresponding record under this user identity
When being inquired, judge whether query time is more than corresponding visitor information term of validity, if so, return query result is
Zero, prompt the visitor information out of date;Otherwise, corresponding visitor information is returned.
Optionally, processing unit 210 is further used for:
Set up the update time limit threshold value of visitor information, one user identity of every determination respectively for each user identity
Under a visitor information holding time reach it is default update time limit threshold value when be not updated yet when, to this visit
Objective information is zeroed out operation.
In conclusion in the embodiment of the present application, does not use and be uniformly directed to visitor information in specific time to carry out high-volume clear
Z-operation, but when a visitor accesses under any one user identity for a certain type of service, just judge
Whether the visitor information that this corresponding visitor records under a kind of above-mentioned type of service of above-mentioned any one user identity is expired, really
When fixed expired, then expired processing is executed to this part visitor information.Main method are as follows: for each under each user identity
Kind type of service configures corresponding visitor information term of validity, and one visitor of every determination is directed to a kind of industry under a user identity
When service type generation meets the access behavior of preset condition, the visit to this visitor corresponding record under this user identity
Objective information is updated, at no point in the update process, when determining that renewal time is more than corresponding visitor information term of validity, for the visit
Objective information executes expired processing.In such manner, it is possible to carry out expired processing to information in time, avoid due to bulk information is hoarded and into
Row processing when caused by the wasting of resources, improve the treatment effeciency of system, also ensured the runnability of system, avoid with
When family identity corresponding term of validity reaches, in the case where synchronization is unified to the user identity all visitor informations be zeroed out and
It is unable to complete task, or the problem of time-consuming cost source.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
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.
Although the preferred embodiment of the application has been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the application range.
Obviously, those skilled in the art can carry out various modification and variations without departing from this Shen to the embodiment of the present application
Please embodiment spirit and scope.In this way, if these modifications and variations of the embodiment of the present application belong to the claim of this application
And its within the scope of equivalent technologies, then the application is also intended to include these modifications and variations.