CN109284304A - A kind of electronics based on caching technology goes out folk prescription method and terminal device - Google Patents
A kind of electronics based on caching technology goes out folk prescription method and terminal device Download PDFInfo
- Publication number
- CN109284304A CN109284304A CN201810918157.0A CN201810918157A CN109284304A CN 109284304 A CN109284304 A CN 109284304A CN 201810918157 A CN201810918157 A CN 201810918157A CN 109284304 A CN109284304 A CN 109284304A
- Authority
- CN
- China
- Prior art keywords
- caching
- data
- forms data
- priority
- forms
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000005516 engineering process Methods 0.000 title claims abstract description 24
- 238000004364 calculation method Methods 0.000 claims abstract description 13
- 230000005484 gravity Effects 0.000 claims description 20
- 238000003860 storage Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 13
- 239000000872 buffer Substances 0.000 claims description 10
- 238000012545 processing Methods 0.000 abstract description 8
- 238000012384 transportation and delivery Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 9
- 238000007726 management method Methods 0.000 description 5
- 238000000151 deposition Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013481 data capture Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 102100037060 Forkhead box protein D3 Human genes 0.000 description 1
- 101001029308 Homo sapiens Forkhead box protein D3 Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 238000013524 data verification Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- PCHJSUWPFVWCPO-UHFFFAOYSA-N gold Chemical compound [Au] PCHJSUWPFVWCPO-UHFFFAOYSA-N 0.000 description 1
- 239000010931 gold Substances 0.000 description 1
- 229910052737 gold Inorganic materials 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000013439 planning Methods 0.000 description 1
- 238000007639 printing Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 210000000352 storage cell Anatomy 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/08—Insurance
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention is suitable for data processing field, it provides a kind of electronics based on caching technology and goes out folk prescription method and terminal device, it include: by presetting the memory of a part in the server as memory space, obtain forms data and its data type out that electronics goes out single process, and forms data will be gone out and stored into caching, determine that this goes out the priority of forms data by preset priority calculation method, the customer data in caching is discharged according to the sequence of forms data priority from high to low out, and it carries out electronics and goes out list, it ensure that out the orderly release of the corresponding forms data out of single request, the delivery efficiency and electronics for improving out forms data go out single efficiency.
Description
Technical field
The invention belongs to data processing field more particularly to a kind of electronics based on caching technology goes out folk prescription method and terminal is set
It is standby.
Background technique
With the raising of people's insurance awareness, present more and more people are added in the ranks insured, while also having
More and more insurance businesses and insurance type.During electronics goes out list, business personnel is needed to obtain out forms data, and by its
Electronics list out could be completed by being uploaded to progress corresponding operation in insurance system.And electronics goes out information type required for list and compares
Numerous and jumbled, the step in single process also compares more out.Illustratively, it includes single information management, data verification, record that vehicle insurance, which goes out single,
Single, document printing, intermediate flow turns that data volume is larger, type is more in the whole process, such as motor vehicle type, label
Model, cognizance code, license number, character of use, and with driving license, vehicle registration card, motor vehicle owner or administrator
Name (title), gender, age, address, identity card or drivers license number, business sources title and channel code etc.
Information, this causes very big data pressure to entire process single out.
It is managed into database by the way that electronics to be gone out to the intermediate flow revolution during list according to storing in the prior art, but
When being that more data type and data volume are easy to increase input/output (Input/Output, I/O) of the database to data
Between, and it is delayed the timely output of forms data out, it reduces electronics and goes out single operating efficiency.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of electronics based on caching technology to go out folk prescription method and terminal device,
It is easy to increase database to data processing time to solve more in the prior art data type and data volume, and is delayed out
The timely output of forms data reduces the problem of vehicle insurance goes out single operating efficiency.
The first aspect of the embodiment of the present invention provides a kind of electronics based on caching technology based on data priority and goes out
Folk prescription method, comprising:
It obtains electronics and goes out single forms data and its data type out, and the forms data out is stored into caching;
When getting out single request, according to the impact factor of the data type and the preset data type,
Pass through the determining priority for requesting corresponding forms data out single out of preset data priority calculation method;
According to it is described go out forms data priority sequence from high to low will it is described go out single request it is corresponding go out forms data from
It discharges, and carries out out single in the caching.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It performs the steps of
It obtains electronics and goes out single forms data and its data type out, and the forms data out is stored into caching;
When getting out single request, according to the impact factor of the data type and the preset data type,
Pass through the determining priority for requesting corresponding forms data out single out of preset data priority calculation method;
According to it is described go out forms data priority sequence from high to low will it is described go out single request it is corresponding go out forms data from
It discharges, and carries out out single in the caching.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer storage medium
It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor
State the method that processor executes above-mentioned first aspect.
Implement the electronics provided in an embodiment of the present invention based on caching technology and goes out folk prescription method and terminal device and have following to have
Beneficial effect:
Memory by presetting a part in the server obtains electronics and goes out the single out of single process as memory space
Data and its data type, and forms data will be gone out and stored into caching, being determined by preset priority calculation method should be single out
Customer data in caching is discharged according to the sequence of forms data priority from high to low out, and carries out electricity by the priority of data
It is sub single out, it ensure that out the orderly release of the corresponding forms data out of single request, improve out the delivery efficiency and electronics of forms data
Single efficiency out.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is that the electronics based on caching technology based on data priority that the embodiment of the present invention one provides goes out folk prescription method
Flow chart;
Fig. 2 is that the electronics based on caching technology provided by Embodiment 2 of the present invention based on data priority goes out folk prescription method
The specific execution flow chart of S102;
Fig. 3 is that the electronics based on caching technology based on data priority that the embodiment of the present invention three provides goes out folk prescription method
The specific execution flow chart of S103;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention four provides;
Fig. 5 is the schematic diagram for the terminal device that the embodiment of the present invention five provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
It is that a kind of electronics based on caching technology that one embodiment of the invention provides goes out the process of folk prescription method referring to Fig. 1, Fig. 1
Figure.The executing subject that electronics in the present embodiment based on caching technology goes out folk prescription method includes but is not limited to computer, server etc.
Terminal device, these terminal devices all have the function of that electronics goes out list.Electronics based on caching technology as shown in Figure 1 goes out folk prescription
Method may comprise steps of:
In S101, obtains electronics and go out single forms data and its data type out, and the forms data out is stored to slow
In depositing.
Insurance be intended that safe reliable guarantee, after extend into a kind of security mechanism, be one kind for planning life finance
Tool is the basic means of risk management under condition of market economy, is the important pillar of financial system and social security system.
Insurance refers to based on contract insurer arranges, and to insurer's premium payment, the possibility of contract engagement occurs for the insurer
Accident because its occur caused by property loss undertake compensation insurance gold responsibility or insurant's die, injured or disabled, suffer diseases or
The business insurance behavior of payment insurance money responsibility is undertaken when reaching the conditions such as age, the time limit of contract engagement.Economically see,
Insurance is to share a kind of financial arrangement of accident damage;In terms of law angle, it is that a side is same that insurance, which is a kind of contract behavior,
A kind of contractual arrangement of meaning compensation another party's loss;In terms of social perspective, insurance is the important composition of social economy's safeguards system
Part;In terms of risk management angle, insurance is a kind of method of risk management.
Go out in single process in entire electronics, typically obtains out forms data from customers' place by business personnel, such as insurance application,
The data such as identity card, driving license, last year declaration form, then after the accurate input system of information of insuring to client offer.Client is same
Core can be submitted to protect after meaning, due to the hilllock company He Bao vouching, give vouching if there is no problem if declaration form and pass through, so that it may receive
Declaration form and invoice are printed after the expense of going bail for.If the information of typing is problematic, the hilllock He Bao can issue modification and provide Dan Yuan, want for single Yuan out
Core is submitted to protect again after modifying aiming at the problem that issuing.
It wherein, can be real by the scene where going client when business personnel obtains electronics and goes out the required forms data out of list
When the mode that acquires, computer network can also be passed through or mobile communications network obtains the electronic information such as image, video, file
Mode obtain, herein without limitation.Meanwhile the data type of forms data can be the specific name of forms data out out, for example,
Trade connection phone, contact address, identity card picture etc., herein without limitation.
It may be that whole data have been got in the same time due to obtaining electronics to go out single required forms data that goes out, these
Data have met electronics and have gone out single condition, in this case, then can directly carry out electronics and go out list.To guarantee data processing
Go out single efficiency with electronics.
In the present embodiment, go out in single device in electronics and preset the caching with certain storage region, this caching
Go out data required for list for caching electronic.When obtaining out forms data it could also be possible that in different time, intermittent acquisition
To forms data out, in this case, the forms data that goes out that interruption is got is stored into the caching, for until other numbers
After all storages to the space, electronics is carried out in time and goes out single process.It can be according to the data type of forms data out and corresponding
Number of policy stores these data into caching as the mark that should currently go out forms data, to carry out unified management and calling,
Improve the efficiency of data management.
Further, forms data out can be cached by redis storage system.Redis is a key-value
Storage system, it supports the value type of storage relatively more, including character string, chained list, set, ordered set or Hash
The data of type, these data types, which are all propped up, captures intersection union and difference set and richer operation, and these operations are all
Atomicity.On this basis, redis supports the sequence of various different modes, and for guaranteed efficiency, data are all in being buffered in
In depositing.The data of update periodically can be written disk or modification is operated the additional record file of write-in by redis, and
Master-slave synchronisation is realized on this basis, data pipe can be improved according to the modification of the needs of client and business personnel and storing data
The hommization of reason.
Further, step S101 may include:
The setting caching spare area in the caching;The caching spare area is greater than for memory buffers occupied space
Preset first threshold, caching call frequency to go out forms data less than preset second threshold;
It obtains electronics and goes out to go out forms data and its data type needed for single process;
According to the data type prediction caching occupied space of forms data out and call frequency;
According to preset cache threshold and call frequency threshold, by the caching occupied space greater than the cache threshold,
And the corresponding forms data out of the data type for calling frequency to be less than the calling frequency threshold is stored to pre-
If caching spare area in.
Specifically, presetting the caching spare area in smaller space in the buffer, for caching, occupied space is larger, adjusts
With the lower forms data out of frequency.Meanwhile preset cache threshold value is first threshold, it is occupied for measuring each forms data out
It is larger then to illustrate that this goes out the required memory space of forms data if more than the first threshold for the size of memory space;It presets simultaneously
Calling frequency threshold is second threshold, for measuring some call number for going out forms data, if call number is greater than second threshold
Value, then it is more frequent to illustrate that this goes out the calling of forms data.Go out to go out forms data and its number needed for single process getting electronics
After type, determine that this goes out the caching occupied space of forms data and calling frequency according to the data type for going out forms data, and
The corresponding threshold value of the two data is compared, caching occupied space is greater than first threshold and calls frequency small
It stores in the corresponding forms data out of the data type of second threshold into preset caching spare area.Sky is occupied by that will cache
Between it is larger, call less frequently to go out forms data and store into caching spare area, and be isolated, improve the data in caching
The efficiency of storage and release.
In S102, when getting out single request, according to the data type and the preset data type
Impact factor passes through the determining priority for requesting corresponding forms data out single out of preset data priority calculation method.
When getting out single request, according to the impact factor of data type and preset data type, odd number is determined
According to priority.Wherein, the data that the impact factor of data type is used to measure the type go out the weight in list in corresponding electronics
Want degree.For example, ID card No. and going out in single process in electronics for bank's card number are necessary data, going out for these types is single
Data then impact factor with higher.
It further include many elements in addition to impact factor, for measuring the attribute for going out forms data in caching.For example, passing through
Caching duration can determine that this goes out the length of time that forms data is stored in the buffer, if the time is longer, illustrate that this goes out odd number
It is suffered according to caching is stored in front of very early, needs timely basis that should go out forms data and carry out electronics list out, it is otherwise more and more
The too long data of storage time are stored in caching, will cause the unlimited occupancy and waste of caching.
Further, the maximum storage time of data can also be set, this time is used to measure to have been stored in caching
In go out forms data storage duration, when store duration be greater than the maximum storage time when, it is direct this can be gone out into forms data
It deletes, guarantees to have enough spaces in caching to store new forms data out.At the same time it can also according to different data class
Type determines different maximum storage times, is targetedly managed for the forms data that goes out to different types of data.
In S103, according to it is described go out forms data priority sequence from high to low will it is described go out single request it is corresponding go out
Forms data is discharged from the caching, and is carried out out single.
Be calculated out single request it is corresponding go out forms data priority after, go out in single request according to this and go out odd number
According to priority data from high to low discharged from the caching, and carry out electronics go out it is single.Each go out forms data by calculating
Priority, determine that this goes out the attribute of forms data in the buffer, enable priority it is higher go out forms data first discharged from caching,
And carry out electronics and go out list, using forms data effectively can be discharged and be managed.
It should be noted that the terminal in the present embodiment can be the equipment such as mobile phone, computer, tablet computer, for
Electronics goes out single device and sends out single request, herein without limitation to the type of terminal.
Above scheme, the memory by presetting a part in the server obtain electronics and go out list as memory space
Process goes out forms data and its data type, and will go out forms data and store into caching, passes through preset priority calculation method
It determines that this goes out the priority of forms data, releases the customer data in caching according to the sequence of forms data priority from high to low out
It puts, and carries out electronics and go out list, ensure that out the orderly release of the corresponding forms data out of single request, improve out the output of forms data
Efficiency and electronics go out single efficiency.
Referring to fig. 2, Fig. 2 is that a kind of electronics based on caching technology that one embodiment of the invention provides goes out folk prescription method S102
Specific execution flow chart.Electronics based on caching technology as shown in Figure 2, which goes out folk prescription method, may comprise steps of:
In S201, when getting out single request, according to it is described go out forms data and the data type, determine it is described go out
The declaration form of the corresponding declaration form of forms data identifies.
When getting out single request, is determined according to forms data out and each go out the corresponding data type of forms data.Wherein, really
Fixed number can be according to type fashion according to the function or attribute for going out forms data, the mode being directly named to forms data out;
It can also be the data type that forms data is determined according to the data transmission interface for receiving out forms data.
After determining the data type of forms data, each data type has its corresponding declaration form mark, according to this
Declaration form mark will go out forms data and store into caching.Wherein declaration form mark can be the number of declaration form, can also be the throwing of declaration form
Guarantor's title etc., herein without limitation.
In S202, go out caching of the forms data in the caching needed for determining the declaration form according to declaration form mark
Specific gravity.
After determining that this goes out the declaration form of the corresponding declaration form of forms data mark, the declaration form is determined according to identifying according to the declaration form
The data type of required forms data out, and predict the total amount of data for going out forms data corresponding to these data types.Slow
Middle lookup data type and the corresponding forms data out of Data Identification are deposited, the required forms data out of declaration form mark in statistics caching
Total amount of data, according to needed for the total amount definite policy go out caching specific gravity of the forms data in the caching.
Illustratively, it is assumed that declaration form, which is identified as data required for the declaration form of " Zhang_20180614 ", to be had: motor-driven car type
Class, factory plate model, cognizance code, license number, character of use, and with driving license, vehicle registration card, motor vehicle owner or
Name (title), gender, age, address, identity card or the drivers license number of administrator, business sources title and channel
The information such as code, the data volume for predicting to go out forms data required for the declaration form is 50MB, and is identified by declaration form, in detection caching
The declaration form identifies corresponding forms data out, and determines that these total amount of data for going out forms data in caching are 40MB, then declaration form institute
Caching specific gravity of the forms data in the caching that go out needed is 0.8.
In S203, according to the caching specific gravity, the impact factor and the forms data out in the caching
Duration is cached, the priority of the forms data out is calculated.
After determining and caching specific gravity, according to preset impact factor and out caching of the forms data in the caching when
It is long, the priority of the forms data out is calculated, the release sequence of forms data is determined by the priority.
Further, step S203 can be specifically included:
Pass through formula: Pr (Packet i)=Influ (Packet i) T (Packet i)/TM·Weight(Issue
I), the priority of the forms data out is calculated;
Wherein, Influ (Packet i) is for indicating that the corresponding forms data out of the data type goes out list in entire electronics
Impact factor in process;T (Packet i) is for indicating the caching duration of the forms data in the caching out;TMFor
Indicate the preset data type corresponding maximum keep alive time of the forms data in the caching out;Weight(Issue
I) for indicating the caching specific gravity.
The corresponding declaration form mark of forms data should be gone out by determining according to the data type for going out forms data, further according to the list mark
Know data type and data volume needed for predicting the list, while calculating the caching specific gravity of these data in the buffer, according to institute
Caching specific gravity, the impact factor and the caching duration of the forms data in the caching out are stated, the odd number out is calculated
According to priority, integrate by will affect the factor, cache-time and caching duration and calculate the priority of forms data, come comprehensive
The various types of forms datas out of evaluation are closed, guarantee the priority orders and declaration form genesis sequence of caching release.
It is that a kind of electronics based on caching technology that one embodiment of the invention provides goes out folk prescription method S103 referring to Fig. 3, Fig. 3
Specific execution flow chart.Electronics based on caching technology as shown in Figure 3, which goes out folk prescription method, may comprise steps of:
In S301, if going out list request described in getting at least two simultaneously, according in each request single out
Out the priority of forms data and it is described go out caching duration of the forms data in the caching, determine described at least two it is described go out
Single priority for requesting corresponding declaration form.
When going out single request of terminal transmission goes out list request according to this, and release is corresponding with single request is gone out single out from caching
Data.Wherein, it out may include the declaration form mark of declaration form in single request, identified in determining caching according to the declaration form and go out odd number
According to, and it is somebody's turn to do the priority of forms data out and caching duration in the buffer.
But in many cases, electronics goes out single device can all get singly asking out for two or more simultaneously
Ask, then need according to priority, the caching duration in the caching for going out forms data that should go out in single request, determine it is described extremely
Go out single priority for requesting corresponding declaration form described in two few, to determine single sequence according to the priority.
In the case where needing while establishing there are many declaration forms, need to be read out or adjust to data cached simultaneously
With being easy to appear data congestion or system Caton in this case.In order to avoid this phenomenon, go out odd number according in caching
According to remaining time and data cached release priority definite policy priority:
Pr (Issue i)=Pr (Packet i)/[TM-T(Packet i)];
Wherein, TM-T (Packet i) is used to indicate the remaining time for going out forms data in caching;TMFor indicating default
Data type it is corresponding go out the maximum keep alive time of forms data in the buffer;T (Packet i) exists for representing forms data
Caching duration in caching;Pr (Packet i) is used to represent the priority of forms data.By according to the residue for going out forms data
Time and priority determine the priority of corresponding declaration form, make in the case where having multiple declaration forms needs while list out, can basis
The priority of declaration form exports corresponding forms data out and carries out out single.
In S302, electronics is carried out according to the priority sequence from high to low of the declaration form and goes out single, and is discharged described slow
The corresponding whole of the declaration form in depositing goes out forms data.
After the priority of definite policy, electronics is carried out according to the priority sequence from high to low of the declaration form and is gone out
It is single, and discharge the corresponding whole of the declaration form in the caching and go out forms data, to reduce the data occupancy in caching.
Further, after the priority of definite policy, the identical declaration form of priority, then first discharge in caching if it exists
The biggish declaration form data of the storage data quantity of the declaration form stored can delete corresponding in time after discharging data in this way
Declaration form data, and the data volume deleted is opposite more with other declaration form data volumes, is dropped as early as possible by this release sequence with reaching
The technical effect of low cache occupation amount.
Above scheme, when receiving at least two single requests out, according to the priority for going out forms data gone out in single request
And the caching duration of the forms data in the caching out, determine that described at least two lists out request corresponding declaration form
Priority, then carry out electronics according to the priority of declaration form sequence from high to low and go out single, and discharge the institute in the caching
It states the corresponding whole of declaration form and goes out forms data, ensure that out that forms data release and electronics go out single sequence, improve data processing
Efficiency and Buffer Utilization.
Referring to fig. 4, Fig. 4 is a kind of schematic diagram for terminal device that one embodiment of the invention provides.The terminal of the present embodiment
The each unit that equipment 400 includes is used to execute each step in the corresponding embodiment of Fig. 1, corresponding referring specifically to Fig. 1 and Fig. 1
Associated description in embodiment, does not repeat herein.The terminal device 400 of the present embodiment include: out forms data acquiring unit 401,
Data priority determination unit 402 and electronics go out single unit 403.
Data capture unit 401 goes out single forms data and its data type out for obtaining electronics, and goes out odd number by described in
According to storing into caching;
Priority determining unit 402, for when getting out single request, according to the data type and preset institute
The impact factor for stating data type requests corresponding odd number out by the determining list out of preset data priority calculation method
According to priority;
Electronics goes out single unit 403, will be described single out for the sequence of the priority according to the forms data out from high to low
It requests corresponding forms data out to discharge from the caching, and carries out out single.
Further, the data priority determination unit 402 may include:
Declaration form identifies determination unit, for when getting out single request, according to it is described go out forms data and the data class
Type determines the declaration form mark for requesting corresponding declaration form single out;
Specific gravity determination unit is cached, for determining the corresponding forms data out of the declaration form described according to declaration form mark
Caching specific gravity in caching;
Data priority determination unit, for according to the caching specific gravity, the impact factor and the forms data out
Caching duration in the caching, the calculating priority for requesting corresponding forms data out single out.
Further, the data priority determination unit can be used for:
Pass through formula: Pr (Packet i)=Influ (Packet i) T (Packet i)/TM·Weight(Issue
I), the priority of the forms data out is calculated;
Wherein, Influ (Packet i) is for indicating that the corresponding forms data out of the data type goes out list in entire electronics
Impact factor in process;T (Packet i) is for indicating the caching duration of the forms data in the caching out;TMFor
Indicate the preset data type corresponding maximum keep alive time of the forms data in the caching out, Weight (Issue
I) for indicating the caching specific gravity.
Further, the terminal device can also include:
Declaration form priority determining unit, if for going out single request described in getting at least two simultaneously, according to each institute
State out the priority for going out forms data in single request and it is described go out caching duration of the forms data in the caching, determine described in
At least two priority for requesting corresponding declaration form single out;
Successively go out single unit, carries out electronics for the sequence of the priority according to the declaration form from high to low and go out list, and release
The corresponding whole of the declaration form put in the caching goes out forms data.
Further, the data capture unit 401 can also include:
Stand-by unit is cached, for the setting caching spare area in the caching;The caching spare area is for depositing
Storage caches the forms data out that occupied space is greater than preset first threshold, caching calls frequency to be less than preset second threshold;
Data receipt unit goes out to go out forms data and its data type needed for single process for obtaining electronics;
Attribute forecast unit, for the caching occupied space and calling according to the data type prediction forms data out
Frequency;
Data storage cell is used for according to preset cache threshold and calls frequency threshold, by the caching occupied space
It is corresponding described greater than the cache threshold and the data type for calling frequency to be less than the calling frequency threshold
Forms data is stored into preset caching spare area out.
Above scheme, the memory by presetting a part in the server obtain electronics and go out list as memory space
Process goes out forms data and its data type, and will go out forms data and store into caching, passes through preset priority calculation method
It determines that this goes out the priority of forms data, releases the customer data in caching according to the sequence of forms data priority from high to low out
It puts, and carries out electronics and go out list, ensure that out the orderly release of the corresponding forms data out of single request, improve out the output of forms data
Efficiency and electronics go out single efficiency.
Fig. 5 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 5, the terminal of the embodiment is set
Standby 5 include: processor 50, memory 51 and are stored in the meter that can be run in the memory 51 and on the processor 50
Calculation machine program 52.The processor 50 realizes that the above-mentioned electronics based on caching technology goes out folk prescription when executing the computer program 52
Step in method embodiment, such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 50 executes the computer journey
The function of each module/unit in above-mentioned each Installation practice, such as the function of unit 401 to 403 shown in Fig. 4 are realized when sequence 52.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the terminal device 5 is described.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5
The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5
It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card, FC) etc..Further, the memory 51 can also have been deposited both the inside including the terminal device 5
Storage unit also includes External memory equipment.The memory 51 is for storing the computer program and terminal device institute
Other programs and data needed.The memory 51 can be also used for temporarily storing the number that has exported or will export
According to.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of electronics based on caching technology goes out folk prescription method characterized by comprising
It obtains electronics and goes out single forms data and its data type out, and the forms data out is stored into caching;
When getting out single request, according to the impact factor of the data type and the preset data type, pass through
The determining priority for requesting corresponding forms data out single out of preset data priority calculation method;
According to it is described go out forms data priority sequence from high to low will it is described go out single request it is corresponding go out forms data from described
It discharges, and carries out out single in caching.
2. the electronics based on caching technology goes out folk prescription method as described in claim 1, which is characterized in that described to get out list
When request, according to the impact factor of the data type and the preset data type, pass through preset data priority
The determining priority for requesting corresponding forms data out single out of calculation method, comprising:
When getting out single request, according to it is described go out forms data and the data type, determine it is described go out single request it is corresponding
The declaration form of declaration form identifies;
Corresponding caching specific gravity of the forms data in the caching out of the declaration form is determined according to declaration form mark;
According to the caching specific gravity, the impact factor and the caching duration of the forms data in the caching out, calculate
The priority for requesting corresponding forms data out single out.
3. the electronics based on caching technology goes out folk prescription method as claimed in claim 2, which is characterized in that described according to the caching
Specific gravity, the impact factor and the caching duration of the forms data in the caching out calculate the list out and request to correspond to
Go out forms data priority, comprising:
Pass through formula: Pr (Packet i)=Influ (Packet i) T (Packet i)/TMWeight (Issue i), meter
Calculate the priority of the forms data out;
Wherein, Influ (Packet i) is for indicating that the corresponding forms data out of the data type goes out single process in entire electronics
In impact factor;T (Packet i) is for indicating the caching duration of the forms data in the caching out;TMFor indicating
The preset data type corresponding maximum keep alive time of the forms data in the caching out, Weight (Issue i) are used
In the expression caching specific gravity.
4. the electronics based on caching technology goes out folk prescription method as described in claim 1, which is characterized in that the method also includes:
If going out list request described in getting at least two simultaneously, according to the preferential of the forms data out in each request single out
Grade and the caching duration of the forms data in the caching out determine that described at least two lists out request corresponding guarantor
Single priority;
Electronics is carried out according to the priority sequence from high to low of the declaration form and goes out single, and discharges the declaration form in the caching
Corresponding whole goes out forms data.
5. the electronics according to any one of claims 1-4 based on caching technology goes out folk prescription method, which is characterized in that the acquisition
Electronics goes out single forms data and its data type out, and the forms data out is stored into caching, comprising:
The setting caching spare area in the caching;The caching spare area is greater than default for memory buffers occupied space
First threshold, caching call frequency be less than preset second threshold go out forms data;
It obtains electronics and goes out to go out forms data and its data type needed for single process;
According to the data type prediction caching occupied space of forms data out and call frequency;
According to preset cache threshold and call frequency threshold, by the caching occupied space greater than the cache threshold and
The corresponding forms data out of the data type for calling frequency to be less than the calling frequency threshold is stored to preset
It caches in spare area.
6. a kind of terminal device, which is characterized in that including memory and processor, being stored in the memory can be described
The computer program run on processor, which is characterized in that when the processor executes the computer program, realize following step
It is rapid:
It obtains electronics and goes out single forms data and its data type out, and the forms data out is stored into caching;
When getting out single request, according to the impact factor of the data type and the preset data type, pass through
The determining priority for requesting corresponding forms data out single out of preset data priority calculation method;
According to it is described go out forms data priority sequence from high to low will it is described go out single request it is corresponding go out forms data from described
It discharges, and carries out out single in caching.
7. terminal device as claimed in claim 6, which is characterized in that it is described when getting out single request, according to the number
It is described out by the determination of preset data priority calculation method according to the impact factor of type and the preset data type
The priority of the corresponding forms data out of single request, comprising:
When getting out single request, according to it is described go out forms data and the data type, determine it is described go out single request it is corresponding
The declaration form of declaration form identifies;
Corresponding caching specific gravity of the forms data in the caching out of the declaration form is determined according to declaration form mark;
According to the caching specific gravity, the impact factor and the caching duration of the forms data in the caching out, calculate
The priority for requesting corresponding forms data out single out.
8. terminal device as claimed in claim 7, which is characterized in that described according to the caching specific gravity, the impact factor
And the caching duration of the forms data in the caching out, the calculating list out request the preferential of corresponding forms data out
Grade, comprising:
Pass through formula: Pr (Packet i)=Influ (Packet i) T (Packet i)/TMWeight (Issue i), meter
Calculate the priority of the forms data out;
Wherein, Influ (Packet i) is for indicating that the corresponding forms data out of the data type goes out single process in entire electronics
In impact factor;T (Packet i) is for indicating the caching duration of the forms data in the caching out;TMFor indicating
The preset data type corresponding maximum keep alive time of the forms data in the caching out, Weight (Issue i) are used
In the expression caching specific gravity.
9. such as the described in any item terminal devices of claim 6-8, which is characterized in that the electronics that obtains goes out single forms data out
And its data type, and the forms data out is stored into caching, comprising:
The setting caching spare area in the caching;The caching spare area is greater than default for memory buffers occupied space
First threshold, caching call frequency be less than preset second threshold go out forms data;
It obtains electronics and goes out to go out forms data and its data type needed for single process;
According to the data type prediction caching occupied space of forms data out and call frequency;
According to preset cache threshold and call frequency threshold, by the caching occupied space greater than the cache threshold and
The corresponding forms data out of the data type for calling frequency to be less than the calling frequency threshold is stored to preset
It caches in spare area.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810918157.0A CN109284304A (en) | 2018-08-13 | 2018-08-13 | A kind of electronics based on caching technology goes out folk prescription method and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810918157.0A CN109284304A (en) | 2018-08-13 | 2018-08-13 | A kind of electronics based on caching technology goes out folk prescription method and terminal device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109284304A true CN109284304A (en) | 2019-01-29 |
Family
ID=65183212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810918157.0A Pending CN109284304A (en) | 2018-08-13 | 2018-08-13 | A kind of electronics based on caching technology goes out folk prescription method and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109284304A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117201603A (en) * | 2023-11-06 | 2023-12-08 | 苔花科迈(西安)信息技术有限公司 | Coal mine underground data handover method and system based on two-dimension code |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5943687A (en) * | 1997-03-14 | 1999-08-24 | Telefonakiebolaget Lm Ericsson | Penalty-based cache storage and replacement techniques |
CN103841432A (en) * | 2012-11-26 | 2014-06-04 | 浙江大华技术股份有限公司 | Transmission method and equipment of composite video data |
CN106453667A (en) * | 2016-12-20 | 2017-02-22 | 北京小米移动软件有限公司 | Method and device for updating cached data |
US20170185619A1 (en) * | 2015-12-28 | 2017-06-29 | Facebook, Inc. | Data caching based on requestor identity |
CN107333296A (en) * | 2017-06-22 | 2017-11-07 | 北京佰才邦技术有限公司 | A kind of data transmission method, device and base station |
CN107516277A (en) * | 2016-06-15 | 2017-12-26 | 平安科技(深圳)有限公司 | Control single method and apparatus of insuring out |
-
2018
- 2018-08-13 CN CN201810918157.0A patent/CN109284304A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5943687A (en) * | 1997-03-14 | 1999-08-24 | Telefonakiebolaget Lm Ericsson | Penalty-based cache storage and replacement techniques |
CN103841432A (en) * | 2012-11-26 | 2014-06-04 | 浙江大华技术股份有限公司 | Transmission method and equipment of composite video data |
US20170185619A1 (en) * | 2015-12-28 | 2017-06-29 | Facebook, Inc. | Data caching based on requestor identity |
CN107516277A (en) * | 2016-06-15 | 2017-12-26 | 平安科技(深圳)有限公司 | Control single method and apparatus of insuring out |
CN106453667A (en) * | 2016-12-20 | 2017-02-22 | 北京小米移动软件有限公司 | Method and device for updating cached data |
CN107333296A (en) * | 2017-06-22 | 2017-11-07 | 北京佰才邦技术有限公司 | A kind of data transmission method, device and base station |
Non-Patent Citations (1)
Title |
---|
陈维兴 等: "基于移动agent 的机坪机会传输控制方法", 《江苏大学学报(自然科学版)》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117201603A (en) * | 2023-11-06 | 2023-12-08 | 苔花科迈(西安)信息技术有限公司 | Coal mine underground data handover method and system based on two-dimension code |
CN117201603B (en) * | 2023-11-06 | 2024-02-06 | 苔花科迈(西安)信息技术有限公司 | Coal mine underground data handover method and system based on two-dimension code |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7028532B2 (en) | Methods, equipment and computer programs for managing the blockchain life cycle | |
US10496548B2 (en) | Method and system for user-space storage I/O stack with user-space flash translation layer | |
CN104133780B (en) | A kind of cross-page forecasting method, apparatus and system | |
CN107395665A (en) | A kind of block chain service handling and business common recognition method and device | |
US20140278575A1 (en) | Systems And Methods Of Processing Insurance Data Using A Web-Scale Data Fabric | |
CN103368867B (en) | The method and system for the object that cache communicates through network with secondary site | |
CN109240946A (en) | The multi-level buffer method and terminal device of data | |
CN103577333B (en) | For automatically using the method and apparatus of the big page | |
CN104850510A (en) | Method and system for inserting cache blocks | |
JP2010518487A (en) | Apparatus and method for reducing castout in a multi-level cache hierarchy | |
CN110473113B (en) | Method, device and medium for improving throughput of service system based on disraptor and server | |
CN107493329A (en) | A kind of remote document access method of distributed memory file system | |
CN106484330A (en) | A kind of hybrid magnetic disc individual-layer data optimization method and device | |
CN104375954B (en) | The method and computer system for based on workload implementing that the dynamic of cache is enabled and disabled | |
CN109002543A (en) | A kind of method and apparatus of file storage | |
US20160306665A1 (en) | Managing resources based on an application's historic information | |
CN109767274B (en) | Method and system for carrying out associated storage on massive invoice data | |
CN109086141A (en) | EMS memory management process and device and computer readable storage medium | |
CN115543938A (en) | Data processing method and device, electronic equipment and storage medium | |
US20230075676A1 (en) | Generation of user-specific time-to-live values using machine learning | |
CN103345429A (en) | High-concurrency access and storage accelerating method and accelerator based on on-chip RAM, and CPU | |
CN111198883B (en) | Real-time vehicle control information processing method, system and storage medium | |
CN113298408A (en) | Enterprise tax risk monitoring and analyzing system and method | |
CN115794945A (en) | Block chain data storage method and device, readable storage medium and computer equipment | |
US9380126B2 (en) | Data collection and distribution management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190129 |
|
RJ01 | Rejection of invention patent application after publication |