CN106776698A - Ticket information method for refreshing and system based on optimization caching - Google Patents
Ticket information method for refreshing and system based on optimization caching Download PDFInfo
- Publication number
- CN106776698A CN106776698A CN201610998016.5A CN201610998016A CN106776698A CN 106776698 A CN106776698 A CN 106776698A CN 201610998016 A CN201610998016 A CN 201610998016A CN 106776698 A CN106776698 A CN 106776698A
- Authority
- CN
- China
- Prior art keywords
- ticketing service
- ticket information
- refreshing
- caching
- ticketing
- 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
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
Abstract
The present invention discloses the ticket information method for refreshing based on optimization caching, including:On ticket information exhibition platform, ticket information refreshing corresponding with ticketing service rank is set and represents strategy, represent for carrying out corresponding ticket information refreshing according to ticketing service rank;The information data of ticketing service is received, when obtaining ticketing service for first order ticketing service with ticketing service hierarchical policy set in advance contrast according to information data, then the ticket information for calling caching to obtain ticketing service from database in real time carries out refreshing and represents;When obtaining ticketing service for second level ticketing service according to information data and ticketing service hierarchical policy set in advance contrast, then detect that ticketing service represents request, there is when representing request of ticketing service, the ticket information of acquisition ticketing service carries out refreshing and represents from database.The present invention solves the problems, such as that the refresh rate of network ticket booking platform displaying ticket information in the prior art is slow.
Description
Technical field
The present invention relates to the technical field of seat reservation system, more particularly, to a kind of ticket information based on optimization caching
Method for refreshing and system.
Background technology
With the fast development of Internet technology, the widely distributed and quick transmission based on internet, is the work of people
Make, life brings many facilities.The Shopping Behaviors that people are based on internet are also more and more active, and internet shopping eliminates use
Family must be in the action the trouble chosen so that user is in just can order item.
Along with people's work, the expansion of life scope, the network ticket booking platform for breaking region limitation arises at the historic moment, respectively
Kind life ticket, such as plane ticket, train ticket, bus ticket, ball match ticket, film ticket, concert admission ticket, can be ordered by network
Ticket platform is ordered.The appearance of network ticket booking facilitates the daily life of user, but network ticketing information amount is big, and when per
Often carve and all there is change, how immediately to show that ticket information for network ticket booking platform, is one and greatly chooses to user
War.The quantity of network ticketing service, species are various, and various information datas are all changed in real time, want by artificial real-time
Ground processes these data and to be presented to user clearly infeasible.
Existing network ticket booking platform is all to provide the user real-time ticketing data by data cached form to update
Situation, but frequently ticket information refreshing also gradually increases the pressure of platform caching, and information refreshing can cause one slowly
A little important information are not known to the user dawn, are unfavorable for user experience.Also, it is accomplished by reality for some popular ticketing services
When fresh information, can scan for refreshing by user input for the ticketing service of some branches, if unified all carry out real-time
The scheme of refreshing can greatly increase the pressure of platform caching, while more resource can be slatterned;And if all defeated by user
Enter to scan for refresh, many important ticket informations can be omitted again.
Therefore it provides one kind is actually needed according to user, the intelligentized refreshing of ticket information represents on design ticket booking platform
Scheme is this area problem demanding prompt solution.
The content of the invention
In view of this, the invention provides a kind of ticket information method for refreshing based on optimization caching and system, solve
There is no the technical problem that the intelligent refreshing of ticket information represents on ticket platform in the prior art.
In order to solve the above-mentioned technical problem, the present invention proposes a kind of ticket information method for refreshing based on optimization caching, bag
Include:
On ticket information exhibition platform, ticket information refreshing corresponding with ticketing service rank is set and represents strategy, for root
Corresponding ticket information refreshing is carried out according to the ticketing service rank to represent;
The information data of ticketing service is received, institute is obtained with ticketing service hierarchical policy set in advance contrast according to described information data
When stating ticketing service for first order ticketing service, then the ticket information for calling caching to obtain the ticketing service from database in real time is refreshed
Represent;
The ticketing service is obtained for second level ticketing service with ticketing service hierarchical policy set in advance contrast according to described information data
When, then that detects the ticketing service represents request, there is when representing request of the ticketing service, obtains described from the database
The ticket information of ticketing service carries out refreshing and represents;
The ticketing service is obtained for third level ticketing service with ticketing service hierarchical policy set in advance contrast according to described information data
When, represent number of times in real time according to set in advance, call the caching to obtain the ticketing service from the database in real time
The refreshing that ticket information is represented number of times in real time represents;More than it is described represent number of times in real time when, detect that the ticketing service represents
, there is when representing request of the ticketing service in request, the ticket information that the ticketing service is obtained from the database is refreshed
Represent.
Further, wherein, receive ticketing service information data, be classified with ticketing service set in advance according to described information data
When strategy contrast obtains the ticketing service for first order ticketing service, then caching is called to obtain the ticket of the ticketing service from database in real time
Business information carries out refreshing and represents, further for:
Obtain the time period/place for receiving ticketing service, according to the time period or/place and the ticketing service set in advance when
Between section/place and ticketing service rank corresponding relation contrast when to obtain the ticketing service be first order ticketing service, then call caching in real time from
The ticket information of the ticketing service is obtained in database carry out refreshing and represent.
Further, wherein, receive ticketing service information data, be classified with ticketing service set in advance according to described information data
When strategy contrast obtains the ticketing service for first order ticketing service, then caching is called to obtain the ticket of the ticketing service from database in real time
Business information carries out refreshing and represents, further for:
Obtain the significance level for receiving ticketing service, the significance level according to the significance level and the ticketing service set in advance with
When the contrast of ticketing service rank corresponding relation obtains the ticketing service for first order ticketing service, then caching is called to be obtained from database in real time
The ticket information of the ticketing service carries out refreshing and represents.
Further, wherein, the method includes:
The information data of ticketing service is received, institute is obtained with ticketing service hierarchical policy set in advance contrast according to described information data
The ticketing service rank of ticketing service is stated, and institute is obtained with the corresponding relation contrast of ticketing service rank set in advance and ticket information refreshing frequency
State the ticket information refreshing frequency of ticketing service;
Ticket information refreshing frequency of the caching based on the ticketing service is called, the ticket of the ticketing service is obtained from the database
Business information carries out refreshing and represents.
Further, wherein, the caching, further for:Redis is cached;It is described to represent number of times in real time, further for:
50-2000 times.
On the other hand, the present invention also provides a kind of ticket information updating system based on optimization caching, including:Mould is set
Block, first order ticketing service display module, second level ticketing service display module and third level ticketing service display module;Wherein,
The setup module, in ticket information exhibition platform, setting ticket information brush corresponding with ticketing service rank
Newly represent strategy, represent for carrying out corresponding ticket information refreshing according to the ticketing service rank;
The first order ticketing service display module, the information data for receiving ticketing service, according to described information data with it is advance
When the ticketing service hierarchical policy contrast for setting obtains the ticketing service as first order ticketing service, then caching is called to be obtained from database in real time
Take the ticket information of the ticketing service and carry out refreshing and represent;
The second level ticketing service display module, for according to described information data and ticketing service hierarchical policy pair set in advance
During than obtaining the ticketing service for second level ticketing service, then that detects the ticketing service represents request, please there is representing for the ticketing service
When asking, the ticket information of the ticketing service is obtained from the database carry out refreshing and represent;
The third level ticketing service display module, for according to described information data and ticketing service hierarchical policy pair set in advance
Than obtain the ticketing service for the third level ticketing service when, represent number of times in real time according to set in advance, call it is described cache in real time from
The ticket information that the ticketing service is obtained in the database is represented the refreshing of number of times and is represented in real time;Represent in real time more than described
During number of times, that detects the ticketing service represents request, there is when representing request of the ticketing service, and institute is obtained from the database
State the ticket information of ticketing service and carry out refreshing and represent.
Further, wherein, the first order ticketing service display module is further used for:
Obtain the time period/place for receiving ticketing service, according to the time period or/place and the ticketing service set in advance when
Between section/place and ticketing service rank corresponding relation contrast when to obtain the ticketing service be first order ticketing service, then call caching in real time from
The ticket information of the ticketing service is obtained in database carry out refreshing and represent.
Further, wherein, the first order ticketing service display module is further used for:
Obtain the significance level for receiving ticketing service, the significance level according to the significance level and the ticketing service set in advance with
When the contrast of ticketing service rank corresponding relation obtains the ticketing service for first order ticketing service, then caching is called to be obtained from database in real time
The ticket information of the ticketing service carries out refreshing and represents.
Further, wherein, the system includes:Ticket information refreshing frequency distribute module, is used for:
The information data of ticketing service is received, institute is obtained with ticketing service hierarchical policy set in advance contrast according to described information data
The ticketing service rank of ticketing service is stated, and institute is obtained with the corresponding relation contrast of ticketing service rank set in advance and ticket information refreshing frequency
State the ticket information refreshing frequency of ticketing service;
Ticket information refreshing frequency of the caching based on the ticketing service is called, the ticket of the ticketing service is obtained from the database
Business information carries out refreshing and represents.
Further, wherein, the caching, further for:Redis is cached;It is described to represent number of times in real time, further for:
50-2000 times.
Compared with prior art, it is of the invention based on optimization caching ticket information method for refreshing and system, realize as
Under beneficial effect:
(1) ticket information method for refreshing and system based on optimization caching of the present invention, analyze the number of every kind of ticketing service
It is believed that breath refreshes rank, and the refreshing frequency as corresponding to predetermined information refreshes rank, obtaining data message from database enters
Row represents, and corresponding cache information flush mechanism is distributed for different ticket information features, solves network in the prior art
Ticket booking platform shows the slow problem of the refresh rate of ticket information.
(2) ticket information method for refreshing and system based on optimization caching of the present invention, for network ticket booking platform
Refreshing frequency feature required for upper each ticketing service, the frequency that automatic distribution information refreshes is ensureing that ticketing data information is timely
While refreshing, cache resources are saved, the data for reducing caching update pressure.
Certainly, implement any product of the invention must not specific needs reach all the above technique effect simultaneously.
By referring to the drawings to the detailed description of exemplary embodiment of the invention, further feature of the invention and its
Advantage will be made apparent from.
Brief description of the drawings
The accompanying drawing for being combined in the description and constituting a part for specification shows embodiments of the invention, and even
It is used to explain principle of the invention together with its explanation.
Fig. 1 is the schematic flow sheet of the ticket information method for refreshing based on optimization caching described in the embodiment of the present invention 1;
Fig. 2 is the schematic flow sheet of the ticket information method for refreshing based on optimization caching described in the embodiment of the present invention 2;
Fig. 3 is the structural representation of the ticket information updating system based on optimization caching described in the embodiment of the present invention 3.
Specific embodiment
Describe various exemplary embodiments of the invention in detail now with reference to accompanying drawing.It should be noted that:Unless had in addition
Body illustrates that the part and the positioned opposite of step, numerical expression and numerical value for otherwise illustrating in these embodiments do not limit this
The scope of invention.
The description only actually at least one exemplary embodiment is illustrative below, never as to the present invention
And its any limitation applied or use.
May be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of, the technology, method and apparatus should be considered as a part for specification.
In all examples shown here and discussion, any occurrence should be construed as merely exemplary, without
It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further discussed in subsequent accompanying drawing.
Embodiment 1
As shown in figure 1, the schematic flow sheet of the ticket information method for refreshing based on optimization caching described in the present embodiment, this
Method described in embodiment solves the technical problem for not having the intelligent refreshing of ticket information to represent on ticket platform in the prior art.
The ticket information method for refreshing based on optimization caching is comprised the following steps described in the present embodiment:
Step 101, on ticket information exhibition platform, the refreshing of corresponding with ticketing service rank ticket information is set and represents plan
Slightly, represent for carrying out corresponding ticket information refreshing according to the ticketing service rank.
Wherein, the ticket information, at least includes:The admission fee of the ticketing service, the use time of the ticketing service and current residual number
Amount.User needs to browse admission fee, use time and the ticket for wanting to order ticketing service by ticket information exhibition platform when booking tickets
The current residual quantity of business, could combine itself it is actual determine the need for ticket booking.
Current ticket information refreshing is exhibited by system cache and all ticket informations is obtained from database and flat
The mode represented on platform realizes, but, there is substantial amounts of ticket information to update all the time on ticket information exhibition platform, all
Realize that the renewal of ticket information represents the caching pressure that can greatly increase ticket information exhibition platform by caching, so as to cause ticket
The refreshing of business information represents slow-footed problem, is unfavorable for that user in time, accurately obtains the relevant information of ticketing service.
Step 102, the ticket information provided according to ticketing service supplier, to ticket information exhibition platform input ticketing service
Information data.
Ticket information exhibition platform is presented to user by receiving the ticket information that each ticketing service supplier provides, real
User is now facilitated to search various ticketing services and the function of ordering.
Step 103, basis receive the information data of ticketing service, obtain described with ticketing service hierarchical policy set in advance contrast
When ticketing service is first order ticketing service, then the newest ticket information for calling caching to obtain the ticketing service from database in real time is brushed
Newly represent.
Wherein, the ticketing service hierarchical policy, further for:The information data of ticketing service and the corresponding relation of ticketing service rank.
Preferably, ticketing service rank is divided into three-level in the present embodiment, it is also possible to ticketing service rank is carried out according to actual conditions
The division of a thinner step, the ticketing service setting to important rank is represented based on the real-time ticket information data that obtain of caching,
Ticketing service hardly important to rank or that user's attention rate is less high sets the passive Mechanism based on user's request search, at certain
The cache resources of platform are saved in the degree of kind, the operating pressure of caching is reduced, while it is higher also to improve user's attention rate
Ticket information represent in time degree and accuracy.
Step 104, to obtain the ticketing service according to described information data and ticketing service hierarchical policy set in advance contrast be the
During two grades of ticketing services, never call caching and represented in real time.
When step 105, user's search second level ticketing service, representing for the ticketing service is generated on ticket information exhibition platform please
Ask.
Step 106, detect whether on ticket information exhibition platform to exist the ticketing service represent request, it is described existing
When representing request of ticketing service, the newest ticket information of the ticketing service is obtained from the database carry out refreshing and represent.
Admission fee, use time, the remainder of the database, the information data for storing each ticketing service, including ticketing service
The ticket informations such as amount.
Step 107, to obtain the ticketing service according to described information data and ticketing service hierarchical policy set in advance contrast be the
During three-level ticketing service, number of times is represented in real time according to set in advance, call the caching to obtain institute from the database in real time
The newest ticket information for stating ticketing service is represented the refreshing of number of times and is represented in real time, and detect the third level ticketing service represent number of times.
Step 108, detect the third level ticketing service represent number of times exceed it is described in real time represent number of times when, stop adjust
Real-time refreshing with caching to the information data of the third level ticketing service represents.
When step 109, user's search third level ticketing service, representing for the ticketing service is generated on ticket information exhibition platform please
Ask.
Step 110, detect whether to exist the third level ticketing service represent request, represent request there is the ticketing service
When, the newest ticket information of the ticketing service is obtained from the database carry out refreshing and represent.
Ticket information method for refreshing based on optimization caching described in the present embodiment, distributes for different ticket information features
Corresponding cache information flush mechanism, the refresh rate for solving network ticket booking platform displaying ticket information in the prior art is slow
Problem.
Embodiment 2
As shown in Fig. 2 the schematic flow sheet of the ticket information method for refreshing based on optimization caching described in the present embodiment.This
Embodiment describes the particular content of the timing/fixed point ticketing service flush mechanism based on caching, this reality on the basis of embodiment 1
The method described in example is applied to comprise the following steps:
Step 201, on ticket information exhibition platform, the refreshing of corresponding with ticketing service rank ticket information is set and represents plan
Slightly, represent for carrying out corresponding ticket information refreshing according to the ticketing service rank.
Step 202, the ticket information provided according to ticketing service supplier, to ticket information exhibition platform input ticketing service
Information data.
Step 203, the time period/place for obtaining reception ticketing service, are somebody's turn to do according to the time period or/place with set in advance
When the time period of ticketing service/place obtains the ticketing service for first order ticketing service with the contrast of ticketing service rank corresponding relation, then caching is called
The ticket information of the ticketing service is obtained from database in real time carry out refreshing and represent.
Step 204, the significance level for receiving ticketing service is obtained, according to the weight of the significance level and the ticketing service set in advance
When wanting degree to obtain the ticketing service for first order ticketing service with the contrast of ticketing service rank corresponding relation, then caching is called in real time from data
The ticket information of the ticketing service is obtained in storehouse carry out refreshing and represent.
Step 205, to obtain the ticketing service according to described information data and ticketing service hierarchical policy set in advance contrast be the
During two grades of ticketing services, never call caching and represented in real time.
When step 206, user's search second level ticketing service, representing for the ticketing service is generated on ticket information exhibition platform please
Ask.
Step 207, detect whether on ticket information exhibition platform to exist the ticketing service represent request, it is described existing
When representing request of ticketing service, the newest ticket information of the ticketing service is obtained from the database carry out refreshing and represent.
Step 208, to obtain the ticketing service according to described information data and ticketing service hierarchical policy set in advance contrast be the
During three-level ticketing service, number of times is represented in real time according to set in advance, call the caching to obtain institute from the database in real time
The newest ticket information for stating ticketing service is represented the refreshing of number of times and is represented in real time, and detect the third level ticketing service represent number of times.
Step 209, detect the third level ticketing service represent number of times exceed it is described in real time represent number of times when, stop adjust
Real-time refreshing with caching to the information data of the third level ticketing service represents.
When step 210, user's search third level ticketing service, representing for the ticketing service is generated on ticket information exhibition platform please
Ask.
Step 211, detect whether to exist the third level ticketing service represent request, represent request there is the ticketing service
When, the newest ticket information of the ticketing service is obtained from the database carry out refreshing and represent.
Step 212, the information data for receiving ticketing service, according to described information data and ticketing service hierarchical policy pair set in advance
Than the ticketing service rank for obtaining the ticketing service, and with ticketing service rank set in advance and the corresponding relation pair of ticket information refreshing frequency
Than the ticket information refreshing frequency for obtaining the ticketing service;
Ticket information refreshing frequency of the caching based on the ticketing service is called, the ticket of the ticketing service is obtained from the database
Business information carries out refreshing and represents.
Wherein, the caching, further for:Redis is cached;It is described to represent number of times in real time, further for:50-2000 times.
Redis is cached, and is a storage system for key (key)-value (value), and it supports that the value types of storage are relative
It is more, including string (character string), list (chained list), set (set) and zset (ordered set).These data types are all propped up
Hold push/pop, add/remove and take common factor union and difference set and more rich operation, and these operations are all atomicities
's.On this basis, Redis supports the sequence of various different modes.For guaranteed efficiency, data are buffered in internal memory,
And additional log file periodically can be write the data write-in disk for updating or modification operation, and in this base
Master-slave (principal and subordinate) is realized on plinth synchronously, Refresh Data speed and accuracy of the lifting based on caching.
Ticket information method for refreshing based on optimization caching described in the present embodiment, for each ticketing service on network ticket booking platform
Required refreshing frequency feature, the frequency that automatic distribution information refreshes, while ensureing that ticketing data information refreshes in time,
Cache resources are saved, the data for reducing caching update pressure.
Embodiment 3
As described in Figure 3, it is the structural representation of the ticket information updating system cached based on optimization described in the present embodiment, this
Described in embodiment based on optimization caching ticket information updating system be used for implement described in above-described embodiment based on optimization
The ticket information method for refreshing of caching.System includes described in the present embodiment:Setup module 301, first order ticketing service display module
302nd, second level ticketing service display module 303 and third level ticketing service display module 304.
Wherein, the setup module 301 connects with the phase lotus root of first order ticketing service display module 302, in ticket information
On exhibition platform, ticket information refreshing corresponding with ticketing service rank is set and represents strategy, for being carried out according to the ticketing service rank
Corresponding ticket information refreshing represents.
The first order ticketing service display module 302 and the setup module 301 and the phase lotus root of second level ticketing service display module 302
Connect, the information data for receiving ticketing service, institute is obtained with ticketing service hierarchical policy set in advance contrast according to described information data
When stating ticketing service for first order ticketing service, then the ticket information for calling caching to obtain the ticketing service from database in real time is refreshed
Represent.
The second level ticketing service display module 303 represents with the second level ticketing service display module 302 and third level ticketing service
Phase lotus root connects module 304, is for obtaining the ticketing service with ticketing service hierarchical policy set in advance contrast according to described information data
During the ticketing service of the second level, then that detects the ticketing service represents request, there is when representing request of the ticketing service, from the database
The middle ticket information for obtaining the ticketing service carries out refreshing and represents.
The third level ticketing service display module 304 connects with the phase lotus root of second level ticketing service display module 303, for according to institute
When stating the contrast of information data and ticketing service hierarchical policy set in advance and obtaining the ticketing service for third level ticketing service, according to presetting
Represent number of times in real time, call described caching to obtain the ticket information of the ticketing service from the database in real time and carry out in real time
The refreshing for representing number of times represents;More than it is described represent number of times in real time when, that detects the ticketing service represents request, there is the ticket
When representing request of business, the ticket information of the ticketing service is obtained from the database carry out refreshing and represent.
Further, wherein, the first order ticketing service display module 302 is used for:
Obtain the time period/place for receiving ticketing service, according to the time period or/place and the ticketing service set in advance when
Between section/place and ticketing service rank corresponding relation contrast when to obtain the ticketing service be first order ticketing service, then call caching in real time from
The ticket information of the ticketing service is obtained in database carry out refreshing and represent.
The first order ticketing service display module 302 is additionally operable to:
Obtain the significance level for receiving ticketing service, the significance level according to the significance level and the ticketing service set in advance with
When the contrast of ticketing service rank corresponding relation obtains the ticketing service for first order ticketing service, then caching is called to be obtained from database in real time
The ticket information of the ticketing service carries out refreshing and represents.
Said system is further included:Ticket information refreshing frequency distribute module 305, mould is represented with the third level ticketing service
Phase lotus root connects block 304, is used for:
The information data of ticketing service is received, institute is obtained with ticketing service hierarchical policy set in advance contrast according to described information data
The ticketing service rank of ticketing service is stated, and institute is obtained with the corresponding relation contrast of ticketing service rank set in advance and ticket information refreshing frequency
State the ticket information refreshing frequency of ticketing service;
Ticket information refreshing frequency of the caching based on the ticketing service is called, the ticket of the ticketing service is obtained from the database
Business information carries out refreshing and represents.
The caching, further for:Redis is cached;It is described to represent number of times in real time, further for:50-2000 times.
Each embodiment more than, ticket information method for refreshing and system based on optimization caching of the invention,
The beneficial effect of presence is:
(1) ticket information method for refreshing and system based on optimization caching of the present invention, analyze the number of every kind of ticketing service
It is believed that breath refreshes rank, and the refreshing frequency as corresponding to predetermined information refreshes rank, obtaining data message from database enters
Row represents, and corresponding cache information flush mechanism is distributed for different ticket information features, solves network in the prior art
Ticket booking platform shows the slow problem of the refresh rate of ticket information.
(2) ticket information method for refreshing and system based on optimization caching of the present invention, for network ticket booking platform
Refreshing frequency feature required for upper each ticketing service, the frequency that automatic distribution information refreshes is ensureing that ticketing data information is timely
While refreshing, cache resources are saved, the data for reducing caching update pressure.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, device or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) is produced
The form of product.
Although being described in detail to some specific embodiments of the invention by example, the skill of this area
Art personnel it should be understood that example above is merely to illustrate, rather than in order to limit the scope of the present invention.The skill of this area
Art personnel to above example it should be understood that can modify without departing from the scope and spirit of the present invention.This hair
Bright scope is defined by the following claims.
Claims (10)
1. a kind of based on the ticket information method for refreshing for optimizing caching, it is characterised in that including:
On ticket information exhibition platform, ticket information refreshing corresponding with ticketing service rank is set and represents strategy, for according to institute
Stating ticketing service rank carries out corresponding ticket information and refreshes to represent;
The information data of ticketing service is received, the ticket is obtained with ticketing service hierarchical policy set in advance contrast according to described information data
It is engaged in during for first order ticketing service, then the ticket information for calling caching to obtain the ticketing service from database in real time carries out refreshing exhibition
It is existing;
When obtaining the ticketing service for second level ticketing service with ticketing service hierarchical policy set in advance contrast according to described information data, then
That detects the ticketing service represents request, there is when representing request of the ticketing service, and the ticketing service is obtained from the database
Ticket information carry out refreshing and represent;
When obtaining the ticketing service for third level ticketing service with ticketing service hierarchical policy set in advance contrast according to described information data, root
Represent number of times in real time according to set in advance, call the ticketing service letter for caching and obtaining the ticketing service from the database in real time
The refreshing that breath is represented number of times in real time represents;More than it is described represent number of times in real time when, that detects the ticketing service represents request,
There is when representing request of the ticketing service, the ticket information of the ticketing service is obtained from the database carry out refreshing and represent.
2. it is according to claim 1 based on the ticket information method for refreshing for optimizing caching, it is characterised in that to receive ticketing service
Information data, it is first order ticketing service to obtain the ticketing service according to described information data and ticketing service hierarchical policy set in advance contrast
When, then the ticket information for calling caching to obtain the ticketing service from database in real time carries out refreshing and represents, further for:
Time period/the place for receiving ticketing service is obtained, according to the time of the time period or/place and the ticketing service set in advance
When section/place obtains the ticketing service for first order ticketing service with the contrast of ticketing service rank corresponding relation, then caching is called in real time from number
Refreshing is carried out according to the ticket information for obtaining the ticketing service in storehouse to represent.
3. it is according to claim 1 based on the ticket information method for refreshing for optimizing caching, it is characterised in that to receive ticketing service
Information data, it is first order ticketing service to obtain the ticketing service according to described information data and ticketing service hierarchical policy set in advance contrast
When, then the ticket information for calling caching to obtain the ticketing service from database in real time carries out refreshing and represents, further for:
Obtain the significance level for receiving ticketing service, the significance level with the ticketing service set in advance and ticketing service according to the significance level
When the contrast of rank corresponding relation obtains the ticketing service for first order ticketing service, then caching is called to obtain described from database in real time
The ticket information of ticketing service carries out refreshing and represents.
4. it is according to claim 1 based on the ticket information method for refreshing for optimizing caching, it is characterised in that further to wrap
Include:
The information data of ticketing service is received, the ticket is obtained with ticketing service hierarchical policy set in advance contrast according to described information data
The ticketing service rank of business, and obtain the ticket with the corresponding relation contrast of ticketing service rank set in advance and ticket information refreshing frequency
The ticket information refreshing frequency of business;
Ticket information refreshing frequency of the caching based on the ticketing service is called, the ticketing service letter of the ticketing service is obtained from the database
Breath carries out refreshing and represents.
It is 5. according to claim 1 based on the ticket information method for refreshing for optimizing caching, it is characterised in that the caching,
It is further:Redis is cached;It is described to represent number of times in real time, further for:50-2000 times.
6. a kind of based on the ticket information updating system for optimizing caching, it is characterised in that including:Setup module, first order ticketing service
Display module, second level ticketing service display module and third level ticketing service display module;Wherein,
The setup module, exhibition is refreshed in ticket information exhibition platform, setting ticket information corresponding with ticketing service rank
Existing strategy, represents for carrying out corresponding ticket information refreshing according to the ticketing service rank;
The first order ticketing service display module, the information data for receiving ticketing service, according to described information data with preset
Ticketing service hierarchical policy contrast obtain the ticketing service for the first order ticketing service when, then call caching institute is obtained from database in real time
State the ticket information of ticketing service and carry out refreshing and represent;
The second level ticketing service display module, for being contrasted with ticketing service hierarchical policy set in advance according to described information data
When to the ticketing service being second level ticketing service, then that detects the ticketing service represents request, there is when representing request of the ticketing service,
The ticket information of the ticketing service is obtained from the database carry out refreshing and represent;
The third level ticketing service display module, for being contrasted with ticketing service hierarchical policy set in advance according to described information data
When to the ticketing service being third level ticketing service, number of times is represented in real time according to set in advance, call described caching in real time from described
The ticket information that the ticketing service is obtained in database is represented the refreshing of number of times and is represented in real time;Represent number of times in real time more than described
When, that detects the ticketing service represents request, there is when representing request of the ticketing service, and the ticket is obtained from the database
The ticket information of business carries out refreshing and represents.
7. it is according to claim 6 based on the ticket information updating system for optimizing caching, it is characterised in that the first order
Ticketing service display module, is further used for:
Time period/the place for receiving ticketing service is obtained, according to the time of the time period or/place and the ticketing service set in advance
When section/place obtains the ticketing service for first order ticketing service with the contrast of ticketing service rank corresponding relation, then caching is called in real time from number
Refreshing is carried out according to the ticket information for obtaining the ticketing service in storehouse to represent.
8. it is according to claim 6 based on the ticket information updating system for optimizing caching, it is characterised in that the first order
Ticketing service display module, is further used for:
Obtain the significance level for receiving ticketing service, the significance level with the ticketing service set in advance and ticketing service according to the significance level
When the contrast of rank corresponding relation obtains the ticketing service for first order ticketing service, then caching is called to obtain described from database in real time
The ticket information of ticketing service carries out refreshing and represents.
9. it is according to claim 6 based on the ticket information updating system for optimizing caching, it is characterised in that further to wrap
Include:Ticket information refreshing frequency distribute module, is used for:
The information data of ticketing service is received, the ticket is obtained with ticketing service hierarchical policy set in advance contrast according to described information data
The ticketing service rank of business, and obtain the ticket with the corresponding relation contrast of ticketing service rank set in advance and ticket information refreshing frequency
The ticket information refreshing frequency of business;
Ticket information refreshing frequency of the caching based on the ticketing service is called, the ticketing service letter of the ticketing service is obtained from the database
Breath carries out refreshing and represents.
It is 10. according to claim 6 based on the ticket information updating system for optimizing caching, it is characterised in that the caching,
It is further:Redis is cached;It is described to represent number of times in real time, further for:50-2000 times.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610998016.5A CN106776698A (en) | 2016-11-14 | 2016-11-14 | Ticket information method for refreshing and system based on optimization caching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610998016.5A CN106776698A (en) | 2016-11-14 | 2016-11-14 | Ticket information method for refreshing and system based on optimization caching |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106776698A true CN106776698A (en) | 2017-05-31 |
Family
ID=58973504
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610998016.5A Pending CN106776698A (en) | 2016-11-14 | 2016-11-14 | Ticket information method for refreshing and system based on optimization caching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106776698A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107403270A (en) * | 2017-07-21 | 2017-11-28 | 携程旅游网络技术(上海)有限公司 | Freight space information automatic scheduling method, system, storage medium and electronic equipment |
CN115525667A (en) * | 2022-10-12 | 2022-12-27 | 赫中企云(北京)信息服务有限公司 | Rule hot updating method during program operation |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070130237A1 (en) * | 2005-12-06 | 2007-06-07 | International Business Machines Corporation | Transient cache storage |
CN101278540A (en) * | 2005-10-03 | 2008-10-01 | 阿玛得斯两合公司 | System and method to maintain coherence of cache contents in a multi-tier software system aimed at interfacing large databases |
CN102474715A (en) * | 2009-08-13 | 2012-05-23 | 雅虎公司 | System and method for precaching information on a mobile device |
CN105630982A (en) * | 2015-12-25 | 2016-06-01 | 中国民航信息网络股份有限公司 | Flight data caching method and system |
-
2016
- 2016-11-14 CN CN201610998016.5A patent/CN106776698A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101278540A (en) * | 2005-10-03 | 2008-10-01 | 阿玛得斯两合公司 | System and method to maintain coherence of cache contents in a multi-tier software system aimed at interfacing large databases |
US20070130237A1 (en) * | 2005-12-06 | 2007-06-07 | International Business Machines Corporation | Transient cache storage |
CN102474715A (en) * | 2009-08-13 | 2012-05-23 | 雅虎公司 | System and method for precaching information on a mobile device |
CN105630982A (en) * | 2015-12-25 | 2016-06-01 | 中国民航信息网络股份有限公司 | Flight data caching method and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107403270A (en) * | 2017-07-21 | 2017-11-28 | 携程旅游网络技术(上海)有限公司 | Freight space information automatic scheduling method, system, storage medium and electronic equipment |
CN107403270B (en) * | 2017-07-21 | 2020-10-02 | 携程旅游网络技术(上海)有限公司 | Cabin space information automatic scheduling method, system, storage medium and electronic equipment |
CN115525667A (en) * | 2022-10-12 | 2022-12-27 | 赫中企云(北京)信息服务有限公司 | Rule hot updating method during program operation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100585598C (en) | Method and system for updating portlet information | |
US9032406B2 (en) | Cooperative batch scheduling in multitenancy system based on estimated execution time and generating a load distribution chart | |
CN103593236B (en) | Computer equipment, method and device for scheduling service process | |
CN107656779A (en) | A kind of flow path processing method and related system based on event | |
Clark | Optimization approximations for capacity constrained material requirements planning | |
CN110442965A (en) | Railway customer service information machine room implementation management system and method based on BIM | |
US20120053989A1 (en) | Systems and methods for propagating changes in a demand planning hierarchy | |
CN107291901A (en) | Main passive combination obtains method, system, equipment and the storage medium of air ticket data | |
CN101997894A (en) | Information pushing method, system and network system thereof | |
CN101208692A (en) | Automatically moving multidimensional data between live datacubes of enterprise software systems | |
CN102868726A (en) | Method and system for publishing Internet information | |
CA2769113A1 (en) | Method to keep coherent a travel shopping basket | |
CN108416657A (en) | A kind of order generation method and equipment based on counseling services | |
CN107533676A (en) | Operating lag in fixed allocation content selection infrastructure is reduced | |
CN113450162A (en) | User grouping method, device and storage medium | |
CN106776698A (en) | Ticket information method for refreshing and system based on optimization caching | |
Morris | The future of work: organizational and international perspectives | |
WO2022252861A1 (en) | Plane ticket rescheduling method and plane ticket rescheduling apparatus | |
US20110191380A1 (en) | Method to send a short message service (sms) campaign to a related object by selecting the base object | |
CN109753501A (en) | A kind of data display method of off-line state, device, equipment and storage medium | |
CN106791932A (en) | Distributed trans-coding system, method and its device | |
US20050177411A1 (en) | System and method for managing demand influencing factors | |
CN108521524A (en) | It attends a banquet assistant task management method, device, computer equipment and storage medium | |
CN105718291A (en) | Multi-level cache acceleration method for mixing desktop applications | |
CN108229712B (en) | Method and device for online booking through culture cloud platform |
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: 20170531 |
|
RJ01 | Rejection of invention patent application after publication |