CN108984553A - Caching method and device - Google Patents
Caching method and device Download PDFInfo
- Publication number
- CN108984553A CN108984553A CN201710403697.0A CN201710403697A CN108984553A CN 108984553 A CN108984553 A CN 108984553A CN 201710403697 A CN201710403697 A CN 201710403697A CN 108984553 A CN108984553 A CN 108984553A
- Authority
- CN
- China
- Prior art keywords
- query
- hot spot
- inquiry
- cache
- target
- 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.)
- Granted
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application discloses caching methods and device.One specific embodiment of this method includes: to extract the multiple the inquiry of historical data request for separately including query statement and query time;Extracted query time is parsed, determines multiple hot spot periods;For the hot spot period each of multiple hot spot period, the query statement belonged in the inquiry of historical data request of hot spot period to query time is counted, the determining hotspot query sentence to match with the hot spot period;Extract query result corresponding with identified hotspot query sentence, in the initial time of each hot spot period, query result corresponding to the hotspot query sentence to match with the period is stored to cache server, and deletes the query result in the cache server in the finish time of the hot spot period.This embodiment improves the flexibilities of caching.
Description
Technical field
This application involves field of computer technology, and in particular to Internet technical field more particularly to caching method and dress
It sets.
Background technique
With the development of computer technology, the performance of full-text search tool is more and more abundant.In order to improve effectiveness of retrieval
And flexibility, it usually needs some search result data are cached.
However, existing cache way is usually directly using some specific cache algorithms (such as LRU (Least
Recently Used, minimum in the recent period to use) algorithm, LFU (page displacedment is least commonly used in Least Frequently Used)
Algorithm etc.) it is cached, this cache way is more single, and the flexibility cached in high concurrent is lower.
Summary of the invention
The purpose of the embodiment of the present application is to propose a kind of improved caching method and device, to solve background above technology
The technical issues of part is mentioned.
In a first aspect, the embodiment of the present application provides a kind of caching method for proxy server, proxy server with
Cache server communication connection, this method comprises: extraction separately includes query statement and multiple historical datas of query time are looked into
Ask request;Extracted query time is parsed, determines multiple hot spot periods;For every in multiple hot spot periods
One hot spot period, the query statement belonged in the inquiry of historical data request of hot spot period to query time are united
Meter, the determining hotspot query sentence to match with the hot spot period;It extracts corresponding with identified hotspot query sentence
Query result will be corresponding to the hotspot query sentence that matched with the period in the initial time of each hot spot period
Query result store to cache server, and the finish time of the hot spot period delete cache server in inquiry knot
Fruit.
In some embodiments, this method further include: identified hotspot query sentence is parsed, abstract letter is generated
Breath;Initial time and finish time in each hot spot period update the summary info index pre-established, wherein pluck
Information index is wanted to be used to indicate the corresponding relationship of summary info with the query result being stored in cache server.
In some embodiments, proxy server is also communicated to connect with search server;And this method further include: response
In receiving data inquiry request that client is sent, comprising target query sentence, target query sentence is parsed, it is raw
At target summary info, and determines in current summary info index and whether there is target summary info;It is current in response to determining
Summary info index in be not present target summary info, to search server send data inquiry request, receive search service
The data that device returns, and send data to client.
In some embodiments, this method further include: in response to there are targets to pluck in the current summary info index of determination
Information is wanted, obtains corresponding with target summary info target query from cache server as a result, and by target query result
It is sent to client.
In some embodiments, in response to receiving data query that client is sent, comprising target query sentence
After request, this method further include: determine whether data inquiry request includes to be used to indicate from cache server query caching number
According to inquiry mark;Do not include inquiry mark in response to determining, send data inquiry request to search server, receives search clothes
The data that business device returns, and send data to client.
In some embodiments, data inquiry request further includes cache way mark;And this method further include: in response to
It determines in current summary info index there is no target summary info, determines that the indicated cache way of cache way mark is
No is target cache mode;In response to determining that the indicated cache way of cache way mark is target cache mode, by data
Inquiry request is determined as the inquiry of historical data request, periodically parses to each historical query request, to redefine
Hot spot period and hotspot query sentence, and caching clothes are carried out based on the hot spot period and hotspot query sentence redefined
The storage and delete operation of business device.
In some embodiments, this method further include: in response to determining the indicated cache way of cache way mark not
It is target cache mode, is looked into target corresponding with target summary info based on the indicated cache way of cache way mark
It askes result to store to cache server, and establishes and be used to indicate plucking for target summary info and the corresponding relationship of target query result
Want information index.
In some embodiments, it is parsed to extracted query time, it, should after determining multiple hot spot periods
Method further include: it is time-consuming to extract inquiry corresponding to each the inquiry of historical data request in multiple the inquiry of historical data requests;
Determine extracted query statement in the cache hit rate of each hot spot period and the time-consuming threshold value of inquiry, wherein extracted
Inquiry time-consuming threshold value of the query statement in each hot spot period be in the hot spot period, the historical data of preset ratio
The time-consuming minimum value of inquiry corresponding to inquiry request;Show that caching of the extracted query statement in each hot spot period is ordered
Middle rate and the time-consuming threshold value of inquiry.
Second aspect, the embodiment of the present application provide a kind of buffer storage for proxy server, which is characterized in that generation
It manages server and cache server communicates to connect, which includes: the first extraction unit, is configured to extraction and separately includes inquiry
The request of multiple the inquiry of historical data of sentence and query time;Resolution unit is configured to carry out extracted query time
Parsing, determines multiple hot spot periods;Statistic unit was configured to for each of the multiple hot spot periods hot spot time
Section, the query statement belonged in the inquiry of historical data request of hot spot period to query time count, and determine and are somebody's turn to do
The hotspot query sentence that the hot spot period matches;First cache unit is configured to extract and identified hotspot query language
The corresponding query result of sentence, in the initial time of each hot spot period, the hotspot query that will be matched with the period
Query result corresponding to sentence is stored to cache server, and deletes cache server in the finish time of the hot spot period
In query result.
In some embodiments, the device further include: generation unit, be configured to identified hotspot query sentence into
Row parsing, generates summary info;Updating unit is configured to initial time and finish time in each hot spot period,
Update the summary info index pre-established, wherein summary info index is used to indicate summary info and is stored in buffer service
The corresponding relationship of query result in device.
In some embodiments, proxy server is also communicated to connect with search server;And device further include: first
Determination unit is configured in response to receiving data inquiry request that client is sent, comprising target query sentence, to mesh
Mark query statement is parsed, and target summary info is generated, and is determined and plucked in current summary info index with the presence or absence of target
Want information;First transmission unit is configured in response to target summary info is not present in the current summary info index of determination,
Data inquiry request is sent to search server, receives the data that search server returns, and send data to client.
In some embodiments, device further include: the second transmission unit is configured to the abstract current in response to determination
There are target summary infos in information index, and target query knot corresponding with target summary info is obtained from cache server
Fruit, and target query result is sent to client.
In some embodiments, device further include: the second determination unit is configured to whether determine data inquiry request
It is identified comprising being used to indicate from the inquiry of cache server query caching data;Third transmission unit, is configured in response to true
It is fixed not include inquiry mark, data inquiry request is sent to search server, receives the data that search server returns, and will count
According to being sent to client.
In some embodiments, data inquiry request further includes cache way mark;And device further include: third is true
Order member is configured to determine cache way in response to there is no target summary infos in the current summary info index of determination
Whether the indicated cache way of mark is target cache mode;Second cache unit is configured in response to determining caching side
The indicated cache way of formula mark is target cache mode, and data inquiry request is determined as the inquiry of historical data request, week
Phase property each historical query request is parsed, to redefine hot spot period and hotspot query sentence, and is based on institute
The hot spot period redefined and hotspot query sentence carry out the storage and delete operation of cache server.
In some embodiments, device further include: third cache unit is configured in response to determining cache way mark
Knowing indicated cache way is not target cache mode, will be plucked with target based on the indicated cache way of cache way mark
The corresponding target query result of information is wanted to store to cache server, and foundation is used to indicate target summary info and looks into target
Ask the summary info index of the corresponding relationship of result.
In some embodiments, device further include: the second extraction unit is configured to extract multiple the inquiry of historical data
Inquiry corresponding to each the inquiry of historical data request in request is time-consuming;4th determination unit is configured to determination and is extracted
Query statement each hot spot period cache hit rate and inquire time-consuming threshold value, wherein extracted query statement exists
The time-consuming threshold value of the inquiry of each hot spot period is in the hot spot period, the inquiry of historical data of preset ratio request institute
The time-consuming minimum value of corresponding inquiry;Display unit is configured to show extracted query statement in each hot spot period
Cache hit rate and inquire time-consuming threshold value.
The third aspect, the embodiment of the present application provide a kind of proxy server, comprising: one or more processors;Storage
Device, for storing one or more programs, when one or more programs are executed by one or more processors so that one or
Multiple processors are realized such as the method for any embodiment in the caching method of proxy server.
Caching method and device provided by the embodiments of the present application, by looking into the request of extracted the inquiry of historical data
The inquiry time is parsed to determine multiple hot spot periods, and the historical data for then belonging to the hot spot period to query time is looked into
The query statement ask in request is counted to determine hotspot query sentence, finally determines the corresponding inquiry knot of hotspot query sentence
Fruit takes to store query result corresponding to corresponding hotspot query sentence to caching in the initial time of hot spot period
Business device, and corresponding query result is deleted in the finish time of hot spot period, to realize based on hot spot period dynamic
Switching caching, improves the flexibility of caching.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the caching method of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the caching method of the application;
Fig. 4 is the flow chart according to another embodiment of the caching method of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the buffer storage of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the server of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the caching method of the application or the exemplary system architecture 100 of buffer storage.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104,106, agency service
Device 105 and cache server 107.Network 104 between terminal device 101,102,103 and proxy server 105 to provide
The medium of communication link, network 106 between proxy server 105 and cache server 107 to provide Jie of communication link
Matter.Network 104,106 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with proxy server 105, to receive
Or send message etc., such as send data inquiry request.Various communication clients can be installed on terminal device 101,102,103
End application, such as shopping class application, web browser applications, searching class application, instant messaging tools, mailbox client, social activity
Platform software etc..
Terminal device 101,102,103 can be the various electronic equipments with display screen and supported web page browsing, packet
Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Proxy server 105 can be to provide the server of various services, such as be sent out terminal device 101,102,103
The data inquiry request sent such as is stored, is analyzed at the server of processing.Proxy server 105 can look into stored data
It askes request to request as the inquiry of historical data, the information such as query statement, query time in the inquiry of historical data request is carried out
The processing such as analysis, statistics, and it is based on processing result, it is interacted by network 106 and cache server 107, to store or delete
Except the information (such as the corresponding query result of query statement) etc. in cache server 107.
Cache server 107 can be used for storing the content frequently accessed, such as query result corresponding to query statement.
Cache server 107 can be managed the query result stored.
It should be pointed out that can also include network 108 and search server 109 in above-mentioned example system architecture 100.
Proxy server 105 can also be interacted by network 108 and search server 109, to receive or send message etc.,
It should be noted that caching method provided by the embodiment of the present application is generally executed by proxy server 105, accordingly
Ground, buffer storage are generally positioned in proxy server 105.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network, proxy server, cache server and search server.
With continued reference to Fig. 2, the process 200 of one embodiment of the caching method according to the application is shown.Described is slow
Deposit method, comprising the following steps:
Step 201, the multiple the inquiry of historical data request for separately including query statement and query time is extracted.
In the present embodiment, the electronic equipment (such as proxy server 105 shown in FIG. 1) of caching method operation thereon
It can be using data inquiry request received in specified period (such as nearly one week, the previous day, nearly one month etc.) as history
Data inquiry request simultaneously extracts the inquiry of historical data request.It wherein, can be in each the inquiry of historical data request more extracted
Include query statement and query time.Here, query statement can be comprising search term (such as character string " mobile phone ", " movement
Clothes " etc.) and querying condition (such as deliver city be Beijing, supplier is certain e-commerce sample platform etc.) etc. information sentence.It looks into
The inquiry time can be the time for receiving the inquiry of historical data request.
In practice, the inquiry of historical data request be can store in above-mentioned electronic equipment local, at this point, above-mentioned electronic equipment can
With directly from be locally extracted the inquiry of historical data request.In addition, the inquiry of historical data request also can store with above-mentioned electronics
In another storage equipment that equipment is connected, at this point, above-mentioned electronic equipment can pass through wired connection mode or wireless connection
Mode extracts the inquiry of historical data request from above-mentioned storage equipment.It should be pointed out that above-mentioned radio connection can wrap
Include but be not limited to 3G/4G connection, WiFi connection, bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra
Wideband) connection and other currently known or exploitation in the future radio connections.
Step 202, extracted query time is parsed, determines multiple hot spot periods.
In the present embodiment, above-mentioned electronic equipment can with extracted above-mentioned multiple the inquiry of historical data request is wrapped
The query time contained is parsed, and determines multiple hot spot periods.Wherein, the hot spot period can be that meet technical staff preparatory
The period of some or certain conditions of setting.As an example, the duration that above-mentioned preset condition can be the period is
Preset duration (such as 10 minutes) and the daily quantity of data inquiry request during this period of time be greater than default value (such as
3000000).Above-mentioned electronic equipment can be for statistical analysis to extracted query time, determines to meet above-mentioned condition
Period (such as daily 9:30 to 9:40, daily 20:00-20:10 etc.), and when the period determined is determined as hot spot
Between section.
In some optional implementations of the present embodiment, is parsed to above-mentioned query time, determine multiple heat
After the point period, above-mentioned electronic equipment can also extract each history number in above-mentioned multiple the inquiry of historical data requests first
According to the time-consuming of inquiry corresponding to inquiry request.Wherein, above-mentioned inquiry time-consuming can be above-mentioned electronic equipment and (such as scheme to client
Terminal device 101 shown in 1,102,103) return to the time of query result and above-mentioned electronic equipment receives the inquiry of historical data
The interval duration of the time of request.Later, above-mentioned electronic equipment can determine extracted query statement in each hot spot time
The cache hit rate of section and the time-consuming threshold value of inquiry.Wherein, caching of the extracted query statement in each hot spot period is ordered
Middle rate can be in extracted query statement, corresponding query result and be stored to caching clothes in the hot spot period
The ratio of the total quantity of the quantity and extracted query statement of the query statement of business device.It should be noted that extracted look into
Ask sentence each hot spot period inquiry time-consuming threshold value can be in the hot spot period, preset ratio (such as
99%) the time-consuming minimum value of the corresponding inquiry of the inquiry of historical data request.It is mentioned finally, above-mentioned electronic equipment can be shown
The query statement taken is in the cache hit rate of each hot spot period and the time-consuming threshold value of inquiry.
Step 203, for the hot spot period each of multiple hot spot periods, when belonging to the hot spot to query time
Between section the inquiry of historical data request in query statement counted, the determining hotspot query to match with the hot spot period
Sentence.
In the present embodiment, for hot spot period each of above-mentioned multiple hot spot periods, above-mentioned electronic equipment
The query statement that can belong to query time in the inquiry of historical data request of the hot spot period counts, based on statistics
As a result, the determining hotspot query sentence to match with the hot spot period.It should be noted that above-mentioned electronic equipment can use
The determining hotspot query sentence to match with the hot spot period of various modes.As an example, query time can be belonged to this
Query statement in each the inquiry of historical data request of hot spot period is determined as the hot spot to match with the hot spot period
Query statement;It is most that query time can also be belonged to frequency of occurrence in the inquiry of historical data request of the hot spot period
Query statement is determined as the hotspot query sentence to match with the hot spot period;This can also be belonged to by query time first
Query statement in the inquiry of historical data request of hot spot period is ranked up according to the descending sequence of frequency of occurrence, will
The query statement of the biggish preset quantity of frequency of occurrence (such as 50,100 etc.) after sequence is determined as and the hot spot time
The hotspot query sentence that section matches.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also receive above-mentioned client and send
Preset time period and the default query statement that matches with above-mentioned preset time period, wherein above-mentioned preset time period and default
Query statement can be inquiry habit setting of the user according to oneself.Above-mentioned electronic equipment is receiving above-mentioned preset time period
It, can be using above-mentioned preset time period as the hot spot period, to replace above-mentioned electronic equipment pair after above-mentioned default query statement
Query time in the inquiry of historical data request generates the hot spot period after being parsed.In addition, above-mentioned electronic equipment can be straight
It connects using received default query statement as the hotspot query sentence to match with the hot spot period.
Step 204, query result corresponding with identified hotspot query sentence is extracted, in each hot spot period
Initial time, query result corresponding to the hotspot query sentence to match with the period is stored to cache server,
And the query result in cache server is deleted in the finish time of the hot spot period.
In the present embodiment, above-mentioned electronic equipment can extract inquiry knot corresponding with identified hotspot query sentence
Fruit.As an example, if some hotspot query sentence is used to indicate the product information to delivery city for Pekinese's cell phone type product
Inquiry, then be the product letter that city is Pekinese's cell phone type product of delivering with query result corresponding to the hotspot query sentence
Breath.In the hotspot query that the initial time of each hot spot period, above-mentioned electronic equipment can will match with the period
Query result corresponding to sentence is stored to cache server (such as the caching shown in FIG. 1 being connected with above-mentioned electronic equipment
Server 107), and the above-mentioned query result in cache server is deleted in the finish time of the hot spot period.
With continued reference to the schematic diagram that Fig. 3, Fig. 3 are according to the application scenarios of the caching method of the present embodiment.Fig. 3's
In application scenarios, proxy server 301 extracts the multiple history numbers for separately including query statement 302 and query time 303 first
According to inquiry request;Then, proxy server 301 parses extracted query time 303, determines multiple hot spot periods
304;Later, proxy server 301 is based on query statement 302 and hot spot period 304, what the determining and hot spot period matched
Hotspot query sentence 305;Finally, proxy server 301 extracts inquiry knot corresponding with identified hotspot query sentence 305
Fruit 306 will look into the initial time of each hot spot period corresponding to the hotspot query sentence to match with the period
It askes result to store to above-mentioned cache server 307, and is deleted in above-mentioned cache server in the finish time of the hot spot period
Corresponding query result.
The method provided by the above embodiment of the application, by extracted the inquiry of historical data request in inquiry when
Between parsed to determine multiple hot spot periods, the inquiry of historical data for then belonging to the hot spot period to query time is asked
Query statement in asking is counted to determine hotspot query sentence, finally determines the corresponding query result of hotspot query sentence,
So that query result corresponding to corresponding hotspot query sentence is stored to buffer service in the initial time of hot spot period
Device, and corresponding query result is deleted in the finish time of hot spot period, it is cut to realize based on hot spot period dynamic
Caching is changed, the flexibility of caching is improved.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of caching method.The stream of the caching method
Journey 400, comprising the following steps:
Step 401, the multiple the inquiry of historical data request for separately including query statement and query time is extracted.
In the present embodiment, the electronic equipment (such as proxy server 105 shown in FIG. 1) of caching method operation thereon
Received data inquiry request requests as the inquiry of historical data and extracts the inquiry of historical data during can specifying
Request.Wherein, query statement and query time be may include in the inquiry of historical data request.
Step 402, extracted query time is parsed, determines multiple hot spot periods.
In the present embodiment, above-mentioned electronic equipment can with extracted above-mentioned multiple the inquiry of historical data request is wrapped
The query time contained is parsed, and determines multiple hot spot periods.Wherein, the hot spot period can be that meet technical staff preparatory
The period of some or certain conditions of setting.
Step 403, for the hot spot period each of multiple hot spot periods, when belonging to the hot spot to query time
Between section the inquiry of historical data request in query statement counted, the determining hotspot query to match with the hot spot period
Sentence.
In the present embodiment, for hot spot period each of above-mentioned multiple hot spot periods, above-mentioned electronic equipment
The query statement that can belong to query time in the inquiry of historical data request of the hot spot period counts, based on statistics
As a result, can use the determining hotspot query sentence to match with the hot spot period of various modes.
Step 404, query result corresponding with identified hotspot query sentence is extracted, in each hot spot period
Initial time, query result corresponding to the hotspot query sentence to match with the period is stored to cache server,
And the query result in cache server is deleted in the finish time of the hot spot period.
In the present embodiment, above-mentioned electronic equipment can extract inquiry knot corresponding with identified hotspot query sentence
Fruit.In the hotspot query that the initial time of each hot spot period, above-mentioned electronic equipment can will match with the period
Query result corresponding to sentence is stored to cache server (such as the caching shown in FIG. 1 being connected with above-mentioned electronic equipment
Server 107), and the above-mentioned query result in cache server is deleted in the finish time of the hot spot period.
It should be noted that the concrete operations of above-mentioned steps 401-404 and the concrete operations of above-mentioned steps 201-204 are basic
Identical, details are not described herein.
Step 405, identified hotspot query sentence is parsed, generates summary info.
In the present embodiment, above-mentioned electronic equipment can use various digest algorithms to each identified hotspot query
Sentence is parsed, and information generated after parsing is determined as to the summary info of the hotspot query sentence.Wherein, summary info
It can be the character string for characterizing and uniquely determining hotspot query sentence, the summary info of different hotspot query sentences is not
Together.It should be noted that above-mentioned digest algorithm can be Hash (Hash) algorithm, MD2 (Message Digest Algorithm
2, the Message Digest 5 second edition) etc..It should be pointed out that above-mentioned digest algorithm is the known skill studied and applied extensively at present
Art, details are not described herein.
Step 406, the initial time in each hot spot period and finish time update the summary info pre-established
Index.
In the present embodiment, above-mentioned electronic equipment can initial time in each hot spot period and finish time,
Update the summary info index pre-established, wherein above-mentioned summary info index can serve to indicate that summary info and be stored in
The corresponding relationship of query result in above-mentioned cache server.Specifically, above-mentioned electronic equipment can be in each hot spot time
The initial time of section, the corresponding relationship of the corresponding summary info of hotspot query sentence of the hot spot period and query result is added
It is added to above-mentioned summary info index, and in the finish time of the hot spot period, deletes the hotspot query language of hot spot period
The corresponding relationship of sentence corresponding summary info and query result.
Step 407, in response to receiving data inquiry request that client is sent, comprising target query sentence, to mesh
Mark query statement is parsed, and target summary info is generated, and is determined and plucked in current summary info index with the presence or absence of target
Want information.
In the present embodiment, in response to receiving data inquiry request that client is sent, comprising target query sentence,
Above-mentioned electronic equipment can parse above-mentioned target query sentence, generate target summary info, and determine current abstract
It whether there is above-mentioned target summary info in information index.It should be noted that above-mentioned electronic equipment can use and step 405
Identical digest algorithm carries out the generation of target summary info, and details are not described herein.
It should be pointed out that in response to determination it is current summary info index in there are above-mentioned target summary info, it is above-mentioned
Electronic equipment can execute step 409;In response to above-mentioned target summary info is not present in the current summary info index of determination,
Above-mentioned electronic equipment can execute step 408 and/or step 410.
In some optional implementations of the present embodiment, after receiving above-mentioned data inquiry request, above-mentioned electricity
Sub- equipment can also determine whether above-mentioned data inquiry request includes to be used to indicate from above-mentioned cache server query caching first
The inquiry of data identifies.Herein, inquiry mark can be the character string being made of various characters.In response to determining not comprising above-mentioned
Inquiry mark, above-mentioned electronic equipment can be (such as shown in FIG. 1 to the above-mentioned search server being connected with above-mentioned electronic equipment
Search server 109) above-mentioned data inquiry request is sent, to receive the data that above-mentioned search server returns, and by above-mentioned number
According to being sent to above-mentioned client.It is identified it should be noted that not including above-mentioned inquiry in response to determination, above-mentioned electronic equipment is being incited somebody to action
Above-mentioned data are sent to after above-mentioned client, can no longer be executed and be determined in current summary info index with the presence or absence of above-mentioned
The step of target summary info and step 408-412.In response to determining that not including above-mentioned inquiry identifies, then can continue to execute
Generating summary info and determining in current summary info index in the step whether there is above-mentioned target summary info
Step then executes subsequent step 408-412.
Step 408, in response to target summary info is not present in the current summary info index of determination, to search server
Data inquiry request is sent, receives the data that search server returns, and send data to client.
In the present embodiment, determine that there is no above-mentioned targets to make a summary in current summary info index in response to step 407
Information, above-mentioned electronic equipment can send above-mentioned data inquiry request to above-mentioned search server, to receive above-mentioned search service
The data that device returns, and above-mentioned data are sent to above-mentioned client.
Step 409, in response to there are target summary infos in the current summary info index of determination, from cache server
Target query corresponding with target summary info is obtained as a result, and target query result is sent to client.
In the present embodiment, determine that there are above-mentioned target abstracts to believe in current summary info index in response to step 407
Breath, above-mentioned electronic equipment can obtain target query knot corresponding with above-mentioned target summary info from above-mentioned cache server
Fruit, and above-mentioned target query result is sent to above-mentioned client.
Step 410, in response to target summary info is not present in the current summary info index of determination, cache way is determined
Whether the indicated cache way of mark is target cache mode.
In the present embodiment, above-mentioned data inquiry request can also include that cache way identifies, wherein cache way mark
It can serve to indicate that and determine cache way.For example, above-mentioned cache way can be target cache mode, the caching based on queue
Mode, cache way based on weight etc..Wherein, above-mentioned target cache mode can be according to hot spot period and hotspot query
The cache way that sentence is cached is used to indicate the initial time in each hot spot period, will be with the period phase
Query result corresponding to matched hotspot query sentence is stored to above-mentioned cache server, and in the end of the hot spot period
Moment deletes the cache way of the above-mentioned query result in above-mentioned cache server.The above-mentioned cache way based on queue can be used
In the cache way that instruction caches the data of newest accessed preset quantity.The above-mentioned cache way based on weight can
Weight calculation is carried out by data of the arbitrary existing weighing computation method to access to be used to indicate, weight is higher pre-
If the cache way that the data of quantity are cached.
In the present embodiment, determine that there is no above-mentioned targets to make a summary in current summary info index in response to step 407
Information, above-mentioned electronic equipment can determine whether the indicated cache way of above-mentioned cache way mark is above-mentioned target cache side
Formula.If so, step 411 can be executed, if it is not, step 412 can be executed.
Step 411, in response to determining that the indicated cache way of cache way mark is target cache mode, data are looked into
It askes request and is determined as the inquiry of historical data request, periodically each historical query request is parsed, to redefine heat
Point period and hotspot query sentence, and buffer service is carried out based on the hot spot period redefined and hotspot query sentence
The storage and delete operation of device.
In the present embodiment, determine that the indicated above-mentioned cache way of above-mentioned cache way mark is in response to step 410
Above-mentioned data inquiry request can be determined as the inquiry of historical data request, week by above-mentioned target cache mode, above-mentioned electronic equipment
Phase property each historical query request is parsed, to redefine hot spot period and hotspot query sentence, and is based on institute
The hot spot period redefined and hotspot query sentence carry out the storage and delete operation of cache server.It needs to illustrate
It is hot spot period and the operation of hotspot query sentence to be redefined in this step and the operation of above-mentioned steps 402-403 is basic
Identical, details are not described herein.
Step 412, in response to determining that the indicated cache way of cache way mark is not target cache mode, based on slow
The mode of depositing identifies indicated cache way and stores target query result corresponding with target summary info to buffer service
Device, and establish the summary info index for being used to indicate the corresponding relationship of target summary info and target query result.
In the present embodiment, the indicated above-mentioned cache way of above-mentioned cache way mark is determined not in response to step 410
Above-mentioned target cache mode, above-mentioned electronic equipment can be identified based on above-mentioned cache way indicated cache way will with it is upper
It states the corresponding target query result of target summary info to store to above-mentioned cache server, and establishes and be used to indicate above-mentioned target
The summary info of summary info and the corresponding relationship of above-mentioned target query result indexes.
Figure 4, it is seen that the process 400 of the caching method in the present embodiment is prominent compared with the corresponding embodiment of Fig. 2
Go out to receiving judgement and processing step after data inquiry request.The scheme of the present embodiment description can not only adopt as a result,
With the mode cached based on hot spot period switching at runtime, it is also based on other cache way and is cached, further mentioned
The high flexibility of caching
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of buffer storages
One embodiment, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to agency's clothes
It is engaged in device, above-mentioned proxy server and cache server communicate to connect.
As shown in figure 5, buffer storage 500 described in the present embodiment includes: the first extraction unit 501, it is configured to extract
Separately include multiple the inquiry of historical data request of query statement and query time;Resolution unit 502 is configured to being extracted
Query time parsed, determine multiple hot spot periods;Statistic unit 503, when being configured to for above-mentioned multiple hot spots
Between each of the section hot spot period, the inquiry in the inquiry of historical data request of hot spot period is belonged to query time
Sentence is counted, the determining hotspot query sentence to match with the hot spot period;First cache unit 504, is configured to
Corresponding with identified hotspot query sentence query result is extracted, it, will be in the initial time of each hot spot period
Query result corresponding to the hotspot query sentence that the period matches is stored to above-mentioned cache server, and in the hot spot
Between finish time of section delete the above-mentioned query result in above-mentioned cache server.
In the present embodiment, above-mentioned first extraction unit 501 data query received during can specifying is asked
It asks and the inquiry of historical data request is requested and extracted as the inquiry of historical data.Wherein, it may include in the inquiry of historical data request
Query statement and query time.
In the present embodiment, resolution unit 502 can with extracted above-mentioned multiple the inquiry of historical data request is wrapped
The query time contained is parsed, and determines multiple hot spot periods.Wherein, the hot spot period can be that meet technical staff preparatory
The period of some or certain conditions of setting.
In the present embodiment, for the hot spot period each of above-mentioned multiple hot spot periods, statistic unit 503 can
It is counted with the query statement in belonging to the inquiry of historical data request of hot spot period to query time, based on statistics knot
Fruit, the determining hotspot query sentence to match with the hot spot period.
In the present embodiment, the first cache unit 504 can extract look into corresponding with identified hotspot query sentence
Ask result.It, can be right by the hotspot query sentence institute to match with the period in the initial time of each hot spot period
The query result answered is stored to above-mentioned cache server, and is deleted in cache server in the finish time of the hot spot period
Above-mentioned query result.
In some optional implementations of the present embodiment, above-mentioned buffer storage 500 can also include generation unit and
Updating unit (not shown).Wherein, above-mentioned generation unit may be configured to carry out identified hotspot query sentence
Parsing generates summary info.Above-mentioned updating unit may be configured to initial time and end in each hot spot period
Moment updates the summary info index pre-established, wherein above-mentioned summary info index is used to indicate summary info and is stored in
The corresponding relationship of query result in above-mentioned cache server.
In some optional implementations of the present embodiment, above-mentioned proxy server also with search server communication link
It connects.Above-mentioned buffer storage 500 can also include the first determination unit and the first transmission unit (not shown).Wherein, above-mentioned
First determination unit may be configured to ask in response to receiving client the is sent, data query comprising target query sentence
Ask, above-mentioned target query sentence parsed, generate target summary info, and determine in current summary info index whether
There are above-mentioned target summary infos.Above-mentioned first transmission unit may be configured to the summary info index current in response to determination
In above-mentioned target summary info is not present, send above-mentioned data inquiry request to above-mentioned search server, receive above-mentioned search clothes
The data that business device returns, and above-mentioned data are sent to above-mentioned client.
In some optional implementations of the present embodiment, above-mentioned buffer storage 500 can also include that the second transmission is single
First (not shown).Wherein, above-mentioned second transmission unit may be configured to the summary info index current in response to determination
In there are above-mentioned target summary info, obtain target corresponding with above-mentioned target summary info from above-mentioned cache server and look into
It askes as a result, and above-mentioned target query result is sent to above-mentioned client.
Above-mentioned buffer storage 500 can also include the second determination unit in some optional implementations of the present embodiment
With third transmission unit (not shown).Wherein, above-mentioned second determination unit may be configured to determine above-mentioned data query
Whether request identifies comprising being used to indicate from the inquiry of above-mentioned cache server query caching data.Above-mentioned third transmission unit can
To be configured in response to determining that not including above-mentioned inquiry identifies, and sends above-mentioned data inquiry request to above-mentioned search server,
The data that above-mentioned search server returns are received, and above-mentioned data are sent to above-mentioned client.
In some optional implementations of the present embodiment, above-mentioned data inquiry request further includes cache way mark.
Above-mentioned buffer storage 500 can also include third determination unit and the second cache unit (not shown).Wherein, above-mentioned third
Determination unit may be configured to determine in response to there is no above-mentioned target summary infos in the current summary info index of determination
Whether the indicated cache way of above-mentioned cache way mark is target cache mode.Above-mentioned second cache unit can configure use
In being above-mentioned target cache mode in response to the indicated above-mentioned cache way of the above-mentioned cache way mark of determination, by above-mentioned data
Inquiry request is determined as the inquiry of historical data request, periodically parses to each historical query request, to redefine
Hot spot period and hotspot query sentence, and caching clothes are carried out based on the hot spot period and hotspot query sentence redefined
The storage and delete operation of business device.
In some optional implementations of the present embodiment, above-mentioned buffer storage 500 can also include that third caching is single
First (not shown).Wherein, above-mentioned third cache unit may be configured in response to determination above-mentioned cache way mark institute
The above-mentioned cache way indicated is not above-mentioned target cache mode, will based on the indicated cache way of above-mentioned cache way mark
Target query result corresponding with above-mentioned target summary info is stored to above-mentioned cache server, and establish be used to indicate it is above-mentioned
The summary info of target summary info and the corresponding relationship of above-mentioned target query result indexes.
In some optional implementations of the present embodiment, above-mentioned buffer storage 500 can also include that the second extraction is single
Member, the 4th determination unit and display unit (not shown).Wherein, above-mentioned second extraction unit may be configured in extraction
It is time-consuming to state inquiry corresponding to each the inquiry of historical data request in multiple the inquiry of historical data requests.Above-mentioned 4th determines list
Member may be configured to determine extracted query statement each hot spot period cache hit rate and inquire time-consuming threshold value,
Wherein, inquiry time-consuming threshold value of the extracted query statement in each hot spot period is in the hot spot period, presets
The time-consuming minimum value of the corresponding inquiry of the inquiry of historical data request of ratio.Above-mentioned display unit may be configured to show institute
The query statement of extraction is in the cache hit rate of each hot spot period and the time-consuming threshold value of inquiry.
The device provided by the above embodiment of the application, it is extracted to the first extraction unit 501 by resolution unit 502
Query time in the inquiry of historical data request is parsed to determine multiple hot spot periods, and then statistic unit 503 is right
The query statement that query time belongs in the inquiry of historical data request of hot spot period is counted to determine hotspot query language
Sentence, last first cache unit determines the corresponding query result of hotspot query sentence, so as in the initial time of hot spot period
Query result corresponding to corresponding hotspot query sentence is stored to cache server, and in the finish time of hot spot period
Corresponding query result is deleted, is cached to realize based on hot spot period switching at runtime, improves the flexibility of caching.
Below with reference to Fig. 6, it illustrates the computer systems for the proxy server for being suitable for being used to realize the embodiment of the present application
600 structural schematic diagram.Proxy server shown in Fig. 6 is only an example, should not function to the embodiment of the present application and
Use scope brings any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media
611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes
Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.
The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores
The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And
In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include the first extraction unit, resolution unit, statistics and the first cache unit.Wherein, the title of these units is under certain conditions simultaneously
The restriction to the unit itself is not constituted, for example, the first extraction unit is also described as " extracting multiple the inquiry of historical data
The unit of request ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: parsing extracted query time, determines multiple hot spot periods;For every in multiple hot spot period
One hot spot period, the query statement belonged in the inquiry of historical data request of hot spot period to query time are united
Meter, the determining hotspot query sentence to match with the hot spot period;It extracts corresponding with identified hotspot query sentence
Query result will be corresponding to the hotspot query sentence that matched with the period in the initial time of each hot spot period
Query result store to cache server, and the finish time of the hot spot period delete this in the cache server look into
Ask result.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (18)
1. a kind of caching method for proxy server, which is characterized in that the proxy server is communicated with cache server
Connection, which comprises
Extract the multiple the inquiry of historical data request for separately including query statement and query time;
Extracted query time is parsed, determines multiple hot spot periods;
For the hot spot period each of the multiple hot spot period, the hot spot period belonged to query time and is gone through
Query statement in history data inquiry request is counted, the determining hotspot query sentence to match with the hot spot period;
Corresponding with identified hotspot query sentence query result is extracted, in the initial time of each hot spot period,
Query result corresponding to the hotspot query sentence to match with the period is stored to the cache server, and in the heat
The finish time of point period deletes the query result in the cache server.
2. the method according to claim 1, wherein the method also includes:
Identified hotspot query sentence is parsed, summary info is generated;
Initial time and finish time in each hot spot period update the summary info index pre-established, wherein institute
State the corresponding relationship that summary info index is used to indicate summary info with the query result being stored in the cache server.
3. according to the method described in claim 2, it is characterized in that, the proxy server also with search server communication link
It connects;And
The method also includes:
In response to receiving data inquiry request that client is sent, comprising target query sentence, to the target query language
Sentence is parsed, and target summary info is generated, and is determined in current summary info index with the presence or absence of target abstract letter
Breath;
In response to the target summary info is not present in the current summary info index of determination, sent to described search server
The data inquiry request receives the data that described search server returns, and the data is sent to the client.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
In response to, there are the target summary info, being obtained from the cache server in the current summary info index of determination
Target query corresponding with the target summary info is as a result, and be sent to the client for the target query result.
5. according to the method described in claim 3, it is characterized in that, it is described in response to receive client transmission, include
After the data inquiry request of target query sentence, the method also includes:
Determine whether the data inquiry request includes the inquiry mark being used to indicate from the cache server query caching data
Know;
In response to determining that not including the inquiry identifies, and sends the data inquiry request to described search server, receives institute
The data of search server return are stated, and the data are sent to the client.
6. according to the method described in claim 3, it is characterized in that, the data inquiry request further includes cache way mark;
And
The method also includes:
In response to the target summary info is not present in the current summary info index of determination, the cache way mark is determined
Whether indicated cache way is target cache mode;
It is the target cache mode in response to the indicated cache way of the determination cache way mark, by the number
It is determined as the inquiry of historical data request according to inquiry request, periodically each historical query request is parsed, with again true
Determine hot spot period and hotspot query sentence, and is cached based on the hot spot period and hotspot query sentence redefined
The storage and delete operation of server.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
It is not the target cache mode in response to the indicated cache way of the determination cache way mark, is based on institute
State the indicated cache way of cache way mark will target query result corresponding with the target summary info store to
The cache server, and establish and be used to indicate plucking for the target summary info and the corresponding relationship of the target query result
Want information index.
8. the method according to claim 1, wherein being parsed described to extracted query time, really
After fixed multiple hot spot periods, the method also includes:
It is time-consuming to extract inquiry corresponding to each the inquiry of historical data request in the multiple the inquiry of historical data request;
Determine extracted query statement in the cache hit rate of each hot spot period and the time-consuming threshold value of inquiry, wherein to be mentioned
Inquiry time-consuming threshold value of the query statement taken in each hot spot period be in the hot spot period, the history of preset ratio
The time-consuming minimum value of inquiry corresponding to data inquiry request;
Show extracted query statement in the cache hit rate of each hot spot period and the time-consuming threshold value of inquiry.
9. a kind of buffer storage for proxy server, which is characterized in that the proxy server is communicated with cache server
Connection, described device include:
First extraction unit, is configured to extract and separately includes query statement and multiple the inquiry of historical data of query time are asked
It asks;
Resolution unit is configured to parse extracted query time, determines multiple hot spot periods;
Statistic unit is configured to for each of the multiple hot spot period hot spot period, to query time category
Query statement in the inquiry of historical data request of the hot spot period is counted, and determination matches with the hot spot period
Hotspot query sentence;
First cache unit is configured to extract query result corresponding with identified hotspot query sentence, at each
The initial time of hot spot period stores query result corresponding to the hotspot query sentence to match with the period to institute
Cache server is stated, and deletes the query result in the cache server in the finish time of the hot spot period.
10. device according to claim 9, which is characterized in that described device further include:
Generation unit is configured to parse identified hotspot query sentence, generates summary info;
Updating unit is configured to initial time and finish time in each hot spot period, updates plucking of pre-establishing
Want information index, wherein the summary info index is used to indicate summary info and is stored in looking into the cache server
Ask the corresponding relationship of result.
11. device according to claim 10, which is characterized in that the proxy server also with search server communication link
It connects;And
Described device further include:
First determination unit is configured in response to receiving data query that client is sent, comprising target query sentence
Request, parses the target query sentence, generates target summary info, and determines that current summary info is in indexing
It is no that there are the target summary infos;
First transmission unit is configured in response to there is no target abstract letters in the current summary info index of determination
Breath sends the data inquiry request to described search server, receives the data that described search server returns, and will be described
Data are sent to the client.
12. device according to claim 11, which is characterized in that described device further include:
Second transmission unit, be configured in response in the current summary info index of determination there are the target summary info,
Corresponding with target summary info target query is obtained from the cache server as a result, and by the target query
As a result it is sent to the client.
13. device according to claim 11, which is characterized in that described device further include:
Second determination unit is configured to determine whether the data inquiry request includes to be used to indicate from the cache server
The inquiry of query caching data identifies;
Third transmission unit is configured in response to determining that not including the inquiry identifies, and sends institute to described search server
Data inquiry request is stated, receives the data that described search server returns, and the data are sent to the client.
14. device according to claim 11, which is characterized in that the data inquiry request further includes cache way mark
Know;And
Described device further include:
Third determination unit is configured in response to there is no target abstract letters in the current summary info index of determination
Breath determines whether the indicated cache way of the cache way mark is target cache mode;
Second cache unit is configured in response to the indicated cache way of the determination cache way mark be described
The data inquiry request is determined as the inquiry of historical data request, periodically to each historical query by target cache mode
Request is parsed, to redefine hot spot period and hotspot query sentence, and based on the hot spot period redefined
The storage and delete operation of cache server are carried out with hotspot query sentence.
15. device according to claim 14, which is characterized in that described device further include:
Third cache unit is configured in response to the indicated cache way of the determination cache way mark not be institute
Target cache mode is stated, it will be corresponding with the target summary info based on the indicated cache way of cache way mark
Target query result store to the cache server, and establish and be used to indicate the target summary info and looked into the target
Ask the summary info index of the corresponding relationship of result.
16. device according to claim 9, which is characterized in that described device further include:
Second extraction unit is configured to extract each the inquiry of historical data request in the multiple the inquiry of historical data request
Corresponding inquiry is time-consuming;
4th determination unit, be configured to determine extracted query statement each hot spot period cache hit rate and look into
Ask time-consuming threshold value, wherein inquiry time-consuming threshold value of the extracted query statement in each hot spot period is the hot spot time
The time-consuming minimum value of the corresponding inquiry of in section, preset ratio the inquiry of historical data request;
Display unit is configured to show extracted query statement in the cache hit rate and inquiry consumption of each hot spot period
When threshold value.
17. a kind of proxy server, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
Now such as method described in any one of claims 1-8.
18. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
Such as method described in any one of claims 1-8 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710403697.0A CN108984553B (en) | 2017-06-01 | 2017-06-01 | Caching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710403697.0A CN108984553B (en) | 2017-06-01 | 2017-06-01 | Caching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108984553A true CN108984553A (en) | 2018-12-11 |
CN108984553B CN108984553B (en) | 2022-02-01 |
Family
ID=64502645
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710403697.0A Active CN108984553B (en) | 2017-06-01 | 2017-06-01 | Caching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108984553B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111324604A (en) * | 2020-01-19 | 2020-06-23 | 拉扎斯网络科技(上海)有限公司 | Database table processing method and device, electronic equipment and storage medium |
CN112163001A (en) * | 2020-09-25 | 2021-01-01 | 同程网络科技股份有限公司 | High concurrent query method, intelligent terminal and storage medium |
CN112487326A (en) * | 2020-11-27 | 2021-03-12 | 杭州安恒信息技术股份有限公司 | Data caching method, system, storage medium and equipment |
CN113032430A (en) * | 2021-03-25 | 2021-06-25 | 网易(杭州)网络有限公司 | Data processing method, device, medium and computing equipment |
CN113064860A (en) * | 2020-12-08 | 2021-07-02 | 上海金融期货信息技术有限公司 | Dynamic data caching system and method |
CN113139002A (en) * | 2020-01-19 | 2021-07-20 | 上海静客网络科技有限公司 | Hot spot data caching method based on Redis |
CN113220684A (en) * | 2021-05-12 | 2021-08-06 | 北京马赫谷科技有限公司 | Data packet storage and query method, device, system and storage medium |
CN113535769A (en) * | 2020-04-15 | 2021-10-22 | 北京京东振世信息技术有限公司 | Method and device for inquiring information |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070282537A1 (en) * | 2006-05-26 | 2007-12-06 | The Ohio State University | Rapid characterization of post-translationally modified proteins from tandem mass spectra |
CN102722589A (en) * | 2012-06-15 | 2012-10-10 | 青岛海信传媒网络技术有限公司 | Data querying method and system based on tri-networks integration |
CN104378295A (en) * | 2013-08-12 | 2015-02-25 | 中兴通讯股份有限公司 | Table item management device and table item management method |
US20150057929A1 (en) * | 2013-08-21 | 2015-02-26 | Navico Holding As | Analyzing Marine Trip Data |
CN105072172A (en) * | 2015-07-31 | 2015-11-18 | 网宿科技股份有限公司 | Content delivery network based hot spot statistic and pushing method and system |
CN105637506A (en) * | 2013-10-03 | 2016-06-01 | 华为技术有限公司 | A method of optimizing queries execution on a data store |
CN106372156A (en) * | 2016-08-30 | 2017-02-01 | 福建天晴数码有限公司 | Data caching method and system |
US20170085854A1 (en) * | 2015-09-18 | 2017-03-23 | Microsoft Technology Licensing, Llc | Inertia Audio Scrolling |
CN106547773A (en) * | 2015-09-21 | 2017-03-29 | 北京国双科技有限公司 | The method and device of adjustment event opening speed |
CN106550047A (en) * | 2016-11-25 | 2017-03-29 | 上海爱数信息技术股份有限公司 | Document fast access system and method based on content distribution mechanism |
CN106570174A (en) * | 2016-11-10 | 2017-04-19 | 中广热点云科技有限公司 | Big data analysis method and system running on CMMB super hotspot service platform |
CN106649691A (en) * | 2016-12-19 | 2017-05-10 | 雷桦松 | Stream data storage method and device |
CN106708833A (en) * | 2015-08-03 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Position information-based data obtaining method and apparatus |
CN106789861A (en) * | 2016-03-11 | 2017-05-31 | 新华三技术有限公司 | A kind of message processing method and device |
-
2017
- 2017-06-01 CN CN201710403697.0A patent/CN108984553B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070282537A1 (en) * | 2006-05-26 | 2007-12-06 | The Ohio State University | Rapid characterization of post-translationally modified proteins from tandem mass spectra |
CN102722589A (en) * | 2012-06-15 | 2012-10-10 | 青岛海信传媒网络技术有限公司 | Data querying method and system based on tri-networks integration |
CN104378295A (en) * | 2013-08-12 | 2015-02-25 | 中兴通讯股份有限公司 | Table item management device and table item management method |
US20150057929A1 (en) * | 2013-08-21 | 2015-02-26 | Navico Holding As | Analyzing Marine Trip Data |
CN105637506A (en) * | 2013-10-03 | 2016-06-01 | 华为技术有限公司 | A method of optimizing queries execution on a data store |
CN105072172A (en) * | 2015-07-31 | 2015-11-18 | 网宿科技股份有限公司 | Content delivery network based hot spot statistic and pushing method and system |
CN106708833A (en) * | 2015-08-03 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Position information-based data obtaining method and apparatus |
US20170085854A1 (en) * | 2015-09-18 | 2017-03-23 | Microsoft Technology Licensing, Llc | Inertia Audio Scrolling |
CN106547773A (en) * | 2015-09-21 | 2017-03-29 | 北京国双科技有限公司 | The method and device of adjustment event opening speed |
CN106789861A (en) * | 2016-03-11 | 2017-05-31 | 新华三技术有限公司 | A kind of message processing method and device |
CN106372156A (en) * | 2016-08-30 | 2017-02-01 | 福建天晴数码有限公司 | Data caching method and system |
CN106570174A (en) * | 2016-11-10 | 2017-04-19 | 中广热点云科技有限公司 | Big data analysis method and system running on CMMB super hotspot service platform |
CN106550047A (en) * | 2016-11-25 | 2017-03-29 | 上海爱数信息技术股份有限公司 | Document fast access system and method based on content distribution mechanism |
CN106649691A (en) * | 2016-12-19 | 2017-05-10 | 雷桦松 | Stream data storage method and device |
Non-Patent Citations (1)
Title |
---|
仇径等: "基于热点行搜索的低功耗数据高速缓存", 《电子学报》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111324604A (en) * | 2020-01-19 | 2020-06-23 | 拉扎斯网络科技(上海)有限公司 | Database table processing method and device, electronic equipment and storage medium |
CN113139002A (en) * | 2020-01-19 | 2021-07-20 | 上海静客网络科技有限公司 | Hot spot data caching method based on Redis |
CN113535769A (en) * | 2020-04-15 | 2021-10-22 | 北京京东振世信息技术有限公司 | Method and device for inquiring information |
CN113535769B (en) * | 2020-04-15 | 2023-11-03 | 北京京东振世信息技术有限公司 | Method and device for inquiring information |
CN112163001A (en) * | 2020-09-25 | 2021-01-01 | 同程网络科技股份有限公司 | High concurrent query method, intelligent terminal and storage medium |
CN112487326A (en) * | 2020-11-27 | 2021-03-12 | 杭州安恒信息技术股份有限公司 | Data caching method, system, storage medium and equipment |
CN112487326B (en) * | 2020-11-27 | 2024-03-19 | 杭州安恒信息技术股份有限公司 | Data caching methods, systems, storage media and equipment |
CN113064860A (en) * | 2020-12-08 | 2021-07-02 | 上海金融期货信息技术有限公司 | Dynamic data caching system and method |
CN113032430A (en) * | 2021-03-25 | 2021-06-25 | 网易(杭州)网络有限公司 | Data processing method, device, medium and computing equipment |
CN113032430B (en) * | 2021-03-25 | 2023-12-19 | 杭州网易数之帆科技有限公司 | Data processing method, device, medium and computing equipment |
CN113220684A (en) * | 2021-05-12 | 2021-08-06 | 北京马赫谷科技有限公司 | Data packet storage and query method, device, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108984553B (en) | 2022-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108984553A (en) | Caching method and device | |
CN109684358B (en) | Data query method and device | |
CN104468807B (en) | Carry out processing method, high in the clouds device, local device and the system of web cache | |
CN110334036A (en) | A kind of method and apparatus for realizing data cached scheduling | |
CN107943594A (en) | Data capture method and device | |
CN109413127A (en) | A kind of method of data synchronization and device | |
CN110427438A (en) | Data processing method and its device, electronic equipment and medium | |
CN109657174A (en) | Method and apparatus for more new data | |
CN107613040A (en) | A kind of method and apparatus of domain name system DNS server lookup | |
CN108804447A (en) | Utilize the method and system of cache responses request of data | |
CN110019080A (en) | Data access method and device | |
CN110110196A (en) | A kind of information push method and device | |
CN110019087A (en) | Data processing method and its system | |
CN108351760A (en) | Feed service-Engine | |
CN110019552A (en) | User pays close attention to the method and apparatus that state updates | |
CN108494860A (en) | WEB accesses system, WEB access methods and device for client | |
CN107835132B (en) | Method and device for tracking flow source | |
CN109150929A (en) | Data request processing method and apparatus under high concurrent scene | |
CN107463657A (en) | File operation method and terminal | |
CN109918191A (en) | A kind of method and apparatus of the anti-frequency of service request | |
CN109885593A (en) | Method and apparatus for handling information | |
CN107844488A (en) | Data query method and apparatus | |
CN110019393A (en) | A kind of method and apparatus of fuzzy query | |
CN109788010A (en) | A kind of method and apparatus of data localization access | |
CN109753424A (en) | The method and apparatus of AB test |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TG01 | Patent term adjustment | ||
TG01 | Patent term adjustment |