CN110209969A - The caching pre-heating mean and device of menu information - Google Patents
The caching pre-heating mean and device of menu information Download PDFInfo
- Publication number
- CN110209969A CN110209969A CN201910381230.XA CN201910381230A CN110209969A CN 110209969 A CN110209969 A CN 110209969A CN 201910381230 A CN201910381230 A CN 201910381230A CN 110209969 A CN110209969 A CN 110209969A
- Authority
- CN
- China
- Prior art keywords
- menu
- menu information
- information
- vegetable
- queried
- 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
- 238000010438 heat treatment Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 23
- 235000013311 vegetables Nutrition 0.000 claims description 137
- 238000012216 screening Methods 0.000 claims description 23
- 238000004891 communication Methods 0.000 claims description 16
- 230000008859 change Effects 0.000 claims description 14
- 238000001228 spectrum Methods 0.000 claims description 11
- 238000000605 extraction Methods 0.000 claims description 3
- 239000000284 extract Substances 0.000 abstract description 8
- 239000002699 waste material Substances 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 240000007594 Oryza sativa Species 0.000 description 2
- 235000007164 Oryza sativa Nutrition 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 235000012054 meals Nutrition 0.000 description 2
- 235000009566 rice Nutrition 0.000 description 2
- 235000001674 Agaricus brunnescens Nutrition 0.000 description 1
- 244000061456 Solanum tuberosum Species 0.000 description 1
- 235000002595 Solanum tuberosum Nutrition 0.000 description 1
- 235000013527 bean curd Nutrition 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 235000013409 condiments Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 235000012055 fruits and vegetables Nutrition 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 235000012149 noodles Nutrition 0.000 description 1
- 235000014347 soups Nutrition 0.000 description 1
- 235000013555 soy sauce Nutrition 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
-
- 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
-
- 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
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/12—Hotels or restaurants
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Databases & Information Systems (AREA)
- Economics (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- General Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Primary Health Care (AREA)
- Cash Registers Or Receiving Machines (AREA)
Abstract
The invention discloses the caching pre-heating means and device of a kind of menu information, this method comprises: when reaching timing, obtain the offline logs data in preset time period, therefrom extract menu query daily record data, according to the menu query daily record data, obtain the menu information being queried, specified menu information is extracted from the menu information being queried, it specifies menu information to screen from the menu information that this is queried according to this and obtains menu information to be preheated, menu information to be preheated is written in corresponding caching.Utilize foregoing invention, only menu information is filtered out from the menu crossed in preset time period by user query to be preheated, that is, the preheating menu being written in caching is the menu crossed within a preset period of time by user query, and it is further screened excessively according to specified menu information, cache hit rate can be greatly improved in this way, shorten the time of preheating, the space resources for saving caching avoids the space resources waste of caching.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of the caching pre-heating mean and device, clothes of menu information
Business device, storage medium.
Background technique
With the continuous development of computer and Internet technology, orders be increasingly becoming the life of the daily selection of people on the net
Mode living, greatly facilitates daily life.
Currently, generated data volume is also increasingly huger as the user volume ordered on the net and businessman measure growing day by day
Greatly, it is continuously increased the operating pressure of server and database, in addition, user is when menu is ordered in online enquiries, if in menu
Vegetable list it is excessive, it may appear that the situation of menu query time-out, therefore, in order to reduce the operation pressure of server and database
Power, and the efficiency of menu query is improved, it needs to carry out caching preheating, that is to say, that predict the dish that user can often be accessed
Spectrum, menu information is added in caching in advance, subsequent, and user can first inquire required menu in caching.
In the prior art, current all menu informations are extracted by offline table, and all menu informations are added
It is added in caching, subsequent, user can first inquire required menu in caching.
But since the prior art is that all menu informations are added in caching, preheated dish can be made
Spectrum information is more, and preheating time is too long, also, the case where be hardly accessed by the user there are some menu informations, therefore, false
Such as these menu informations are all added in caching, will cause the space resources waste of caching.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the caching pre-heating mean and device, server, storage medium of the menu information of problem.
According to an aspect of the present invention, the caching pre-heating mean of a kind of menu information, which comprises
When reaching timing, the offline logs data in preset time period are obtained, from the offline logs data
Extract menu query daily record data;
According to the menu query daily record data, the menu information being queried is obtained;
Specified menu information is extracted from the menu information being queried, and is queried according to the specified menu information from described
Menu information in screening obtain menu information to be preheated;
Menu information to be preheated is written in corresponding caching.
Optionally, the specified menu information includes the one or more of following information: vegetable quantity information in menu,
Information, the vegetable pricing information in menu, the vegetable inventory in menu or the pin of vegetable specification and/or way in menu
Measure the sub- vegetable quantity information in information and menu.
Optionally, it when the specified menu information includes the vegetable quantity information in menu, is queried for any
Menu information counts the vegetable quantity of the menu information, and the menu information that vegetable quantity is more than preset first threshold is determined
For menu information to be preheated.
Optionally, when the specified menu information includes the information of the vegetable specification and/or way in menu, needle
To any menu information being queried, count the vegetable specification of the menu information and/or the quantity of way, by vegetable specification and/
Or the quantity of way is determined as menu information to be preheated more than the menu information of preset second threshold.
Optionally, it when the specified menu information includes the vegetable pricing information in menu, is queried for any
Menu information counts the quantity of the vegetable price of the menu information, is more than preset third threshold value by the quantity of vegetable price
Menu information is determined as menu information to be preheated.
Optionally, when the specified menu information includes vegetable inventory or sales volume information in menu, for any quilt
The menu information of inquiry counts the vegetable inventory change amount or sales volume variable quantity of the menu information, by vegetable inventory change amount or
Sales volume variable quantity is more than that the menu information of preset 4th threshold value is determined as menu information to be preheated.
Optionally, it when the specified menu information includes the sub- vegetable quantity information in menu, is queried for any
Menu information, count the sub- vegetable quantity of the menu information, by sub- vegetable quantity be more than preset 5th threshold value menu believe
Breath is determined as menu information to be preheated.
Optionally, further includes:
After the storage time of the preheating menu information in the caching exceeds preset effective period of time, delete in caching
Preheating menu information, and re-start caching preheating.
According to another aspect of the present invention, a kind of caching preheating device of menu information is provided, described device includes:
Extraction module, for when reaching timing, offline logs data in acquisition preset time period, from it is described from
Menu query daily record data is extracted in line daily record data;
Module is obtained, for obtaining the menu information being queried according to the menu query daily record data;
Screening module is believed for extracting specified menu information from the menu information being queried according to the specified menu
Breath screening from the menu information being queried obtains menu information to be preheated;
Writing module, for will be to be preheated menu information be written in corresponding caching.
Optionally, the specified menu information includes the one or more of following information: vegetable quantity information in menu,
Information, the vegetable pricing information in menu, the vegetable inventory in menu or the pin of vegetable specification and/or way in menu
Measure the sub- vegetable quantity information in information and menu.
Optionally, when the specified menu information includes the vegetable quantity information in menu, the screening module is specific
For for any menu information being queried, counting the vegetable quantity of the menu information, being more than preset the by vegetable quantity
The menu information of one threshold value is determined as menu information to be preheated.
Optionally, when the specified menu information includes the information of the vegetable specification and/or way in menu, institute
It states screening module to be specifically used for, for any menu information being queried, counts the vegetable specification and/or way of the menu information
Quantity, by the quantity of vegetable specification and/or way be more than preset second threshold menu information be determined as dish to be preheated
Spectrum information.
Optionally, when the specified menu information includes the vegetable pricing information in menu, the screening module is specific
For for any menu information being queried, the quantity of the vegetable price of the menu information being counted, by the quantity of vegetable price
Menu information more than preset third threshold value is determined as menu information to be preheated.
Optionally, when the specified menu information includes vegetable inventory or sales volume information in menu, the screening mould
Block is specifically used for, and for any menu information being queried, counts the vegetable inventory change amount or sales volume variation of the menu information
The menu information that vegetable inventory change amount or sales volume variable quantity are more than preset 4th threshold value is determined as menu to be preheated by amount
Information.
Optionally, when the specified menu information includes the sub- vegetable quantity information in menu, the screening module tool
Body is used for, and for any menu information being queried, counts the sub- vegetable quantity of the menu information, is more than pre- by sub- vegetable quantity
If the menu information of the 5th threshold value be determined as menu information to be preheated.
Optionally, further includes:
Again warm-up block, for when the storage time of the preheating menu information in the caching exceeds preset effective
Between after section, delete the preheating menu information in caching, and re-start caching preheating.
According to another aspect of the present invention, a kind of server is provided, comprising: processor, memory, communication interface and logical
Believe bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor
Operation:
When reaching timing, the offline logs data in preset time period are obtained, from the offline logs data
Extract menu query daily record data;
According to the menu query daily record data, the menu information being queried is obtained;
Specified menu information is extracted from the menu information being queried, and is queried according to the specified menu information from described
Menu information in screening obtain menu information to be preheated;
Menu information to be preheated is written in corresponding caching.
According to another aspect of the invention, a kind of storage medium is provided, at least one is stored in the storage medium can
It executes instruction, the executable instruction makes processor execute following operation:
When reaching timing, the offline logs data in preset time period are obtained, from the offline logs data
Extract menu query daily record data;
According to the menu query daily record data, the menu information being queried is obtained;
Specified menu information is extracted from the menu information being queried, and is queried according to the specified menu information from described
Menu information in screening obtain menu information to be preheated;
Menu information to be preheated is written in corresponding caching.
The caching pre-heating mean and device of the menu information provided according to the present invention, this method comprises: when reaching timing
Between when, obtain preset time period in offline logs data, extract menu query daily record data from the offline logs data,
According to the menu query daily record data, the menu information being queried is obtained, specified menu is extracted from the menu information being queried
Information specifies menu information to screen from the menu information that this is queried and obtains menu information to be preheated according to this, will be to pre-
The menu information of heat is written in corresponding caching.Using foregoing invention, the dish only crossed out of preset time period by user query
It filters out menu information in spectrum to be preheated, that is to say, that the preheating menu being written in caching is within a preset period of time
The menu crossed by user query, and further screened excessively according to specified menu information, rather than all menus are believed
Breath requires to be written in caching, can greatly shorten the time of preheating in this way, save the space resources of caching.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the caching pre-heating mean of menu information according to an embodiment of the invention;
Fig. 2 shows the interaction schematic diagrames of the implementation process of menu query according to an embodiment of the invention;
Fig. 3 shows the schematic diagram of the caching preheating device of menu information according to an embodiment of the invention;
Fig. 4 shows a kind of structural schematic diagram of server according to an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Fig. 1 shows the flow chart of the caching pre-heating mean of menu information according to an embodiment of the invention.Such as Fig. 1 institute
Show, this method comprises the following steps:
S101: when reaching timing, the offline logs data in preset time period are obtained, from the offline logs number
Menu query daily record data is extracted in.
In practical applications, with growing day by day, the generated data volume that the user volume ordered on the net and businessman measure
It is more and more huger, it is continuously increased the operating pressure of server and database, in addition, user is when menu is ordered in online enquiries, such as
Vegetable list in fruit and vegetable spectrum is excessive, it may appear that the situation of menu query time-out, therefore, in order to reduce server and database
Operating pressure, and the efficiency of menu query is improved, it needs to carry out caching preheating.
Further, due to need to know during real cache preheats menu cache at which moment it is pre-
Therefore heat in the embodiment of the present application, needs to preset a timing, subsequent, just right when reaching timing
Menu carries out caching preheating, wherein and set timing can be disposably, e.g., and 6 o'clock sharps of on January 8th, 2018, institute
The timing of setting is also possible to periodically, e.g., daily 6 o'clock sharp, in addition, set timing may be selected in business
Low peak period, such as 6 points of every morning reduce the influence to the business of ordering as far as possible.
Caching preheating is carried out since the present invention is the menu that is queried based on past history, in the application
In embodiment, need to obtain the menu being queried in preset time period.
It should be noted that preset time period refers to the period before current time, preset time period can be with
It is one hour, is also possible to one day, can also be one week, the range of preset time period can be set according to actual needs.
In addition, in the embodiment of the present application, since the menu crossed by user query can be recorded in offline logs, because
This, it is desirable to know which menu by user query mistake, can be determined by offline logs.
In conclusion the embodiment of the present application is during carrying out caching preheating, it is necessary first to obtain in preset time period
Offline logs data, and menu query daily record data is extracted from offline logs data.
It should be noted that in order to reduce the amount of storage of daily record data, usually only by the mark for the menu being queried
Know the necessary informations such as information and query time to be recorded in daily record data, therefore, in the embodiment of the present application, from offline logs
In the menu query daily record data that extracts include the necessary informations such as identification information and the query time of menu.
S102: according to the menu query daily record data, the menu information being queried is obtained.
Due in offline logs data and not including and be queried all menu informations of menu, and caching preheating is by menu
All information be written in caching, therefore, in the embodiment of the present application, extracting menu query from offline logs data
After daily record data, need to inquire out of offline table according to menu query daily record data and obtain the menu information being queried.
It should be noted that including at least the identification information of menu, e.g., menu ID in menu query daily record data.
In addition, inquiring out of offline table and obtaining the menu information being queried includes all information in a menu,
Such as, vegetable pricing information, vegetable pictorial information, vendor location information, businessman's brief introduction and contact method etc..
S103: extracting specified menu information from the menu information being queried, according to the specified menu information from described
Screening obtains menu information to be preheated in the menu information being queried.
It is that will easily cause request timed out (that is, user sends out since the embodiment of the present application is during caching preheats menu
Send inquiry menu request after, menu information is not returned to user within a certain period of time by server) menu add in advance
Into caching, therefore, the embodiment of the present application is after getting the menu information being queried, it is thus necessary to determine that goes out which menu is easy to draw
The phenomenon that playing request timed out.
Due to the phenomenon that easily causing request timed out it is usually because server is looked into the menu query request for user
The menu data inquired during asking menu is too many, causes query time too long, thus the phenomenon that causing request timed out, because
This can inquire the process of menu according to server in the embodiment of the present application to determine the menu data of server inquiry all
Which has, it is subsequent, then using the menu more than menu data as menu to be preheated.
It should be noted that Fig. 2 is a kind of interaction of the implementation process of menu query provided by the embodiments of the present application
Schematic diagram, specific as follows:
S201: order shops.
S202: the menu query sent for the shops is requested.
S203: the dish information in the menu of the shops is inquired.
S204: vegetable specification and the way in the menu of the shops are inquired.
S205: the vegetable pricing information in the menu of the shops is inquired.
S206: the vegetable inventory information in the menu of the shops is inquired.
S207: the vegetable sales volume information in the menu of the shops is inquired.
S208: the sub- dish information in the menu of the shops is inquired.
S209: menu details are returned to.
S210: the menu page is rendered to user.
It can be seen that can be executed after the menu query for the shops that server-side receives client transmission again is requested
Step S203~step S208 inquires the menu information of the shops, each query steps of server-side are it is possible that inquired
Menu data it is too many, cause query time too long, thus the case where the phenomenon that causing request timed out, therefore, in the application reality
It applies in example, needs to determine each query steps whether the menu data to be inquired under the step is excessive.
And want whether the menu data to be inquired under the step is excessive to be determined to each query steps, it needs
Specified menu information is extracted from the menu information being queried, it is subsequent, believe further according to specified menu information from the menu being queried
Screening obtains menu information to be preheated (menu information to be preheated is dish the phenomenon that easily causing request timed out in breath
Spectrum).
It should be noted that specified menu information includes the one or more of following information: the vegetable number in menu
Measure information, the vegetable specification in menu and/or the information of way, the vegetable pricing information in menu, the sub- dish in menu
Vegetable inventory or sales volume information in product quantity information and menu.
Further, the embodiment of the present application be based on it is above-mentioned provide several specified menu informations give five kinds according to specify dish
Spectrum information screens from the menu information being queried and obtains the embodiment of menu information to be preheated, specific as follows:
The first embodiment: it when specified menu information includes the vegetable quantity information in menu, is looked into for any
The menu information of inquiry counts the vegetable quantity of the menu information, is more than the menu information of preset first threshold by vegetable quantity
It is determined as menu information to be preheated.
Second of embodiment: when specified menu information includes the information of vegetable specification and/or way in menu
When, for any menu information being queried, the vegetable specification of the menu information and/or the quantity of way are counted, vegetable is advised
The quantity of lattice and/or way is more than that the menu information of preset second threshold is determined as menu information to be preheated.
It should be noted that the specification of vegetable refers to the size of vegetable, e.g., big bottle can happy bottle it is laughable, dish
The way of product refers to how vegetable is cooked, e.g., braise in soy sauce, is steamed etc., furthermore it is possible to only count the number of vegetable specification in menu
Amount can also only count the quantity of vegetable way in menu, can also count the total quantity of vegetable specification and way in menu.
The third embodiment: it when specified menu information includes the vegetable pricing information in menu, is looked into for any
The menu information of inquiry counts the quantity of the vegetable price of the menu information, is more than preset third threshold by the quantity of vegetable price
The menu information of value is determined as menu information to be preheated.
4th kind of embodiment: when specified menu information includes vegetable inventory or the sales volume information in menu, for appoint
One menu information being queried counts the vegetable inventory change amount or sales volume variable quantity of the menu information, by vegetable inventory change
Amount or sales volume variable quantity are more than that the menu information of preset 4th threshold value is determined as menu information to be preheated.
It should be noted that the inventory change amount and sales volume variable quantity in preset time period are able to reflect out menu
Whether there is within a preset period of time the case where dynamic pin, that is, whether sold.
5th kind of embodiment: when specified menu information includes the sub- vegetable quantity information in menu, for any quilt
The menu information of inquiry counts the sub- vegetable quantity of the menu information, is more than the dish of preset 5th threshold value by sub- vegetable quantity
Spectrum information is determined as menu information to be preheated.
It should be noted that sub- dish refers to the dish for including in vegetable, e.g., a set meal (that is, vegetable) includes rice
Meal, four seed dish of dish, soup and condiment, for another example a vegetable includes rice noodles, four seed dish of bean curd stick, potato and mushroom.
Herein it should also be noted that, first threshold, second threshold, third threshold involved in above-mentioned five kinds of embodiments
Value, the 4th threshold value and the 5th threshold value may be the same or different, and the setting of each threshold value is set all in accordance with actual conditions
It is fixed.
S104: menu information to be preheated is written in corresponding caching.
Further, the embodiment of the present application is being determined after the menu information preheated, the menu letter for needing talent to preheat
Breath is written in corresponding caching.
By the above method, only the menu crossed in preset time period by user query is preheated, that is to say, that write
The preheating menu entered into caching is the menu crossed within a preset period of time by user query, rather than all menus are believed
Breath requires to be written in caching, can greatly shorten the time of preheating in this way, save the space resources of caching, avoid slow
The space resources waste deposited, improves cache hit rate, user experience is optimized, in addition, the present invention is to during menu query
Each query node (that is, step S203~step S208) analyzed, the various scenes of easy time-out are all covered
Lid covers hot spot menu and extreme menu (that is, many menus of sub- dish quantity in menu), and the menu preheated is few, institute
It takes time and does not grow, hit rate is higher, it can be achieved that precisely preheating.
In practical applications, since the preheating menu having been written into caching can only reflect user when presetting in the past
Between menu query habit in section, and under normal conditions, menu query habit of this user in past preset time period is only
The menu that user may inquire in the following certain time can be predicted, therefore, in the embodiment of the present application, needing to set one has
(that is, caching validity period) is imitated the period, e.g., effective period of time is one day, whole day can be made all to come into force in the phase in caching in this way,
After the storage time of the preheating menu information in caching exceeds preset effective period of time, the preheating menu letter in caching is deleted
Breath, and re-start caching preheating.
In the embodiment of the present application, a shops may have a menu, it is also possible to have multiple menus (e.g., morning menu,
Noon menu and dinner menu), and the menu finally preheated may include a menu of a shops, it is also possible to it include one
Whether multiple menus of shops belong to same shops without the menu for considering preheated, only focus on whether menu easily causes
Time-out.
It is the method for the caching preheating of menu information provided by the embodiments of the present application above, is based on this, the embodiment of the present application
A kind of device of the caching preheating of menu information is provided, as shown in figure 3, the device includes:
Extraction module 301, for the offline logs data in preset time period being obtained, from institute when reaching timing
It states and extracts menu query daily record data in offline logs data;
Module 302 is obtained, for obtaining the menu information being queried according to the menu query daily record data;
Screening module 303, for extracting specified menu information from the menu information being queried, according to the specified menu
Information screens from the menu information being queried and obtains menu information to be preheated;
Writing module 304, for will be to be preheated menu information be written in corresponding caching.
The specified menu information includes the one or more of following information: in the vegetable quantity information, menu in menu
Vegetable specification and/or way information, the vegetable pricing information in menu, the vegetable inventory in menu or sales volume information
And the sub- vegetable quantity information in menu.
When the specified menu information includes the vegetable quantity information in menu, the screening module 303 is specifically used for,
When the specified menu information includes the vegetable quantity information in menu, the screening module is specifically used for, for any quilt
The menu information of inquiry counts the vegetable quantity of the menu information, and the menu that vegetable quantity is more than preset first threshold is believed
Breath is determined as menu information to be preheated.
When the specified menu information includes the information of the vegetable specification and/or way in menu, the screening
Module 303 is specifically used for, and for any menu information being queried, counts the vegetable specification and/or way of the menu information
The menu information that the quantity of vegetable specification and/or way is more than preset second threshold is determined as menu to be preheated by quantity
Information.
When the specified menu information includes the vegetable pricing information in menu, the screening module 303 is specifically used for,
For any menu information being queried, the quantity of the vegetable price of the menu information is counted, the quantity by vegetable price is more than
The menu information of preset third threshold value is determined as menu information to be preheated.
When the specified menu information includes vegetable inventory or sales volume information in menu, the screening module 303 has
Body is used for, and for any menu information being queried, counts the vegetable inventory change amount or sales volume variable quantity of the menu information, will
Vegetable inventory change amount or sales volume variable quantity are more than that the menu information of preset 4th threshold value is determined as menu information to be preheated.
When the specified menu information includes the sub- vegetable quantity information in menu, the screening module 303 is specifically used
In, for any menu information being queried, count the sub- vegetable quantity of the menu information, by sub- vegetable quantity be more than it is preset
The menu information of 5th threshold value is determined as menu information to be preheated.
Further include:
Again warm-up block 305 have for the storage time when the preheating menu information in the caching beyond preset
After imitating the period, the preheating menu information in caching is deleted, and re-starts caching preheating.
The embodiment of the present application also provides a kind of nonvolatile computer storage media, the computer storage medium storage
There is an at least executable instruction, which can be performed the slow of the menu information in above-mentioned any means embodiment
Deposit pre-heating mean.
Fig. 4 shows a kind of structural schematic diagram of server according to an embodiment of the present invention, and the specific embodiment of the invention is simultaneously
The specific implementation of server is not limited.
As shown in figure 4, the server may include: processor (processor) 402, communication interface
(Communications Interface) 404, memory (memory) 406 and communication bus 408.
Wherein:
Processor 402, communication interface 404 and memory 406 complete mutual communication by communication bus 408.
Communication interface 404, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 402, for executing program 410, the caching pre-heating mean that can specifically execute above-mentioned menu information is implemented
Correlation step in example.
Specifically, program 410 may include program code, which includes computer operation instruction.
Processor 402 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that server includes can be same type of processor, such as one or more CPU;It can also be with
It is different types of processor, such as one or more CPU and one or more ASIC.
Memory 406, for storing program 410.Memory 406 may include high speed RAM memory, it is also possible to further include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 410 specifically can be used for so that processor 402 executes following operation:
When reaching timing, the offline logs data in preset time period are obtained, from the offline logs data
Extract menu query daily record data;
According to the menu query daily record data, the menu information being queried is obtained;
Specified menu information is extracted from the menu information being queried, and is queried according to the specified menu information from described
Menu information in screening obtain menu information to be preheated;
Menu information to be preheated is written in corresponding caching.
Optionally, program 410 can be also used for so that processor 402 executes following operation:
The specified menu information includes the one or more of following information: in the vegetable quantity information, menu in menu
Vegetable specification and/or way information, the vegetable pricing information in menu, the vegetable inventory in menu or sales volume information
And the sub- vegetable quantity information in menu.
Optionally, program 410 can be also used for so that processor 402 executes following operation:
When the specified menu information includes the vegetable quantity information in menu, believe for any menu being queried
Breath, counts the vegetable quantity of the menu information, and the menu information that vegetable quantity is more than preset first threshold is determined as to pre-
The menu information of heat.
Optionally, program 410 can be also used for so that processor 402 executes following operation:
When the specified menu information includes the information of the vegetable specification and/or way in menu, for any
The menu information being queried counts the vegetable specification of the menu information and/or the quantity of way, by vegetable specification and/or way
Quantity be more than preset second threshold menu information be determined as menu information to be preheated.
Optionally, program 410 can be also used for so that processor 402 executes following operation:
When the specified menu information includes the vegetable pricing information in menu, believe for any menu being queried
Breath, counts the quantity of the vegetable price of the menu information, and the menu that the quantity of vegetable price is more than preset third threshold value is believed
Breath is determined as menu information to be preheated.
Optionally, program 410 can be also used for so that processor 402 executes following operation:
When the specified menu information includes vegetable inventory or sales volume information in menu, for any dish being queried
Spectrum information counts the vegetable inventory change amount or sales volume variable quantity of the menu information, and vegetable inventory change amount or sales volume are changed
Amount is more than that the menu information of preset 4th threshold value is determined as menu information to be preheated.
Optionally, program 410 can be also used for so that processor 402 executes following operation:
When the specified menu information includes the sub- vegetable quantity information in menu, believe for any menu being queried
Breath, counts the sub- vegetable quantity of the menu information, and the menu information that sub- vegetable quantity is more than preset 5th threshold value is determined as
Menu information to be preheated.
Optionally, program 410 can be also used for so that processor 402 executes following operation:
After the storage time of the preheating menu information in the caching exceeds preset effective period of time, delete in caching
Preheating menu information, and re-start caching preheating.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Microprocessor or digital signal processor (DSP) realize the caching pre-heating device of menu information according to an embodiment of the present invention
In some or all components some or all functions.The present invention is also implemented as described herein for executing
Some or all device or device programs (for example, computer program and computer program product) of method.In this way
Realization program of the invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or with any other shape
Formula provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
Claims (10)
1. a kind of caching pre-heating mean of menu information, comprising:
When reaching timing, the offline logs data in preset time period are obtained, are extracted from the offline logs data
Menu inquiry log data out;
According to the menu query daily record data, the menu information being queried is obtained;
Specified menu information is extracted from the menu information being queried, according to the specified menu information from the dish being queried
Screening obtains menu information to be preheated in spectrum information;
Menu information to be preheated is written in corresponding caching.
2. according to the method described in claim 1, the specified menu information includes the one or more of following information: in menu
Vegetable quantity information, the information of the vegetable specification in menu and/or way, the vegetable pricing information in menu, menu
Sub- vegetable quantity information in interior vegetable inventory or sales volume information and menu.
3. according to the method described in claim 2, when the specified menu information includes the vegetable quantity information in menu, root
It is screened from the menu information being queried according to the specified menu information and obtains menu information to be preheated, specifically included:
For any menu information being queried, the vegetable quantity of the menu information is counted;
The menu information that vegetable quantity is more than preset first threshold is determined as menu information to be preheated.
4. according to the method described in claim 2, when the specified menu information includes vegetable specification and/or way in menu
Information when, screened from the menu information being queried according to the specified menu information and obtain menu to be preheated
Information specifically includes:
For any menu information being queried, the vegetable specification of the menu information and/or the quantity of way are counted;
The menu information that the quantity of vegetable specification and/or way is more than preset second threshold is determined as to menu letter to be preheated
Breath.
5. according to the method described in claim 2, when the specified menu information includes the vegetable pricing information in menu, root
It is screened from the menu information being queried according to the specified menu information and obtains menu information to be preheated, specifically included:
For any menu information being queried, the quantity of the vegetable price of the menu information is counted;
The menu information that the quantity of vegetable price is more than preset third threshold value is determined as menu information to be preheated.
6. according to the method described in claim 2, when the specified menu information includes vegetable inventory or sales volume letter in menu
It when breath, is screened from the menu information being queried according to the specified menu information and obtains menu information to be preheated, had
Body includes:
For any menu information being queried, the vegetable inventory change amount or sales volume variable quantity of the menu information are counted;
The menu information that vegetable inventory change amount or sales volume variable quantity are more than preset 4th threshold value is determined as dish to be preheated
Spectrum information.
7. according to the method described in claim 2, when the specified menu information includes the sub- vegetable quantity information in menu,
It is screened from the menu information being queried according to the specified menu information and obtains menu information to be preheated, it is specific to wrap
It includes:
For any menu information being queried, the sub- vegetable quantity of the menu information is counted;
The menu information that sub- vegetable quantity is more than preset 5th threshold value is determined as menu information to be preheated.
8. a kind of caching preheating device of menu information, comprising:
Extraction module, for the offline logs data in preset time period being obtained, from the offline day when reaching timing
Menu query daily record data is extracted in will data;
Module is obtained, for obtaining the menu information being queried according to the menu query daily record data;
Screening module, for extracting specified menu information from the menu information being queried, according to the specified menu information from
Screening obtains menu information to be preheated in the menu information being queried;
Writing module, for will be to be preheated menu information be written in corresponding caching.
9. a kind of server, comprising: processor, memory, communication interface and communication bus, the processor, the memory
Mutual communication is completed by the communication bus with the communication interface;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction
Ask the corresponding operation of caching pre-heating mean of menu information described in any one of 1-7.
10. a kind of storage medium, it is stored with an at least executable instruction in the storage medium, the executable instruction makes to handle
Device executes the corresponding operation of caching pre-heating mean such as menu information of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910381230.XA CN110209969A (en) | 2019-05-08 | 2019-05-08 | The caching pre-heating mean and device of menu information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910381230.XA CN110209969A (en) | 2019-05-08 | 2019-05-08 | The caching pre-heating mean and device of menu information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110209969A true CN110209969A (en) | 2019-09-06 |
Family
ID=67785682
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910381230.XA Pending CN110209969A (en) | 2019-05-08 | 2019-05-08 | The caching pre-heating mean and device of menu information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209969A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104834648A (en) * | 2014-02-12 | 2015-08-12 | 华为技术有限公司 | Log query method and device |
WO2016095329A1 (en) * | 2014-12-18 | 2016-06-23 | 中兴通讯股份有限公司 | Log recording system and log recording operating method |
CN105760541A (en) * | 2016-03-15 | 2016-07-13 | 传成文化传媒(上海)有限公司 | Video food ordering recommendation method and system |
CN107220287A (en) * | 2017-04-24 | 2017-09-29 | 东软集团股份有限公司 | For the index managing method of log query, device, storage medium and equipment |
CN107577722A (en) * | 2017-08-18 | 2018-01-12 | 北京金山安全软件有限公司 | Menu display method and device, electronic equipment and storage medium |
CN108763453A (en) * | 2018-05-28 | 2018-11-06 | 浙江口碑网络技术有限公司 | The page data processing method and device of Behavior-based control prediction |
-
2019
- 2019-05-08 CN CN201910381230.XA patent/CN110209969A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104834648A (en) * | 2014-02-12 | 2015-08-12 | 华为技术有限公司 | Log query method and device |
WO2016095329A1 (en) * | 2014-12-18 | 2016-06-23 | 中兴通讯股份有限公司 | Log recording system and log recording operating method |
CN105760541A (en) * | 2016-03-15 | 2016-07-13 | 传成文化传媒(上海)有限公司 | Video food ordering recommendation method and system |
CN107220287A (en) * | 2017-04-24 | 2017-09-29 | 东软集团股份有限公司 | For the index managing method of log query, device, storage medium and equipment |
CN107577722A (en) * | 2017-08-18 | 2018-01-12 | 北京金山安全软件有限公司 | Menu display method and device, electronic equipment and storage medium |
CN108763453A (en) * | 2018-05-28 | 2018-11-06 | 浙江口碑网络技术有限公司 | The page data processing method and device of Behavior-based control prediction |
Non-Patent Citations (1)
Title |
---|
郭凯振: "基于Hadoop的分布式计算系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10146887B2 (en) | Providing separate views for items | |
CN104348919B (en) | Carry out the method, apparatus and browser of file download | |
CN105718516B (en) | Graphical interface interaction method and device for data analysis and network system | |
CN109145212A (en) | A kind of providing method and device of recommendation | |
CN109544285A (en) | The vegetable recommended method and device for process of ordering | |
CN105528218B (en) | Data drawing list Cascading Methods and data drawing list cascade system | |
CN105183895A (en) | Virtual resource pushing method and device | |
CN108399260A (en) | Commodity information management method, server and commodity information management system | |
CN109447749A (en) | Merchandise news input method and device | |
CN109300059A (en) | Vegetable recommended method and device | |
CN110111132A (en) | Method and device is checked and write off based on the exchange ticket ordered | |
CN110111133A (en) | Exchange ticket distribution method and device for ordering | |
CN104142972A (en) | Equipment restriction based search server and method for intelligent cooking product | |
CN110347946A (en) | A kind of page display method, device, computer equipment and storage medium | |
CN108009147A (en) | Electronics book cover generation method, electronic equipment and computer-readable storage medium | |
CN108520440A (en) | Determination method, electronic equipment and the computer storage media of e-book consumption demand | |
CN108537725A (en) | A kind of method for processing video frequency and device | |
CN110209798A (en) | A kind of method for exhibiting data and device of redis database | |
CN110209969A (en) | The caching pre-heating mean and device of menu information | |
US7685256B2 (en) | Actual cooking result management method, content management method, server, and cooking apparatus | |
CN110209961A (en) | It is a kind of based on sharing the method and device of service of being applied | |
CN107908775B (en) | The dynamic of merchandise news shows method, electronic equipment, storage medium | |
CN110490769A (en) | The processing method of menu information, apparatus and system | |
CN109684545A (en) | For the content delivery method and electronic equipment of the user that is called back | |
CN111179380A (en) | Method and device for acquiring electronic menu, storage medium and terminal |
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: 20190906 |
|
RJ01 | Rejection of invention patent application after publication |