CN108829837A - A kind of information query method, device, equipment and computer readable storage medium - Google Patents
A kind of information query method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN108829837A CN108829837A CN201810630740.1A CN201810630740A CN108829837A CN 108829837 A CN108829837 A CN 108829837A CN 201810630740 A CN201810630740 A CN 201810630740A CN 108829837 A CN108829837 A CN 108829837A
- Authority
- CN
- China
- Prior art keywords
- information
- query
- caching
- preset
- inquiring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000000151 deposition Methods 0.000 claims description 2
- 230000003111 delayed effect Effects 0.000 claims 1
- 230000000694 effects Effects 0.000 description 9
- 238000005094 computer simulation Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 3
- 239000007787 solid Substances 0.000 description 1
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention proposes a kind of information query methods, including:When receiving information inquiring request, the corresponding query information of the information inquiring request is inquired in the first preset caching;In the case where not inquiring the query information in first caching, the query information is inquired by preset query interface.The invention also discloses a kind of information query device, equipment and computer readable storage mediums, by implementing above scheme, the information search efficiency in information query system is effectively increased, the drawbacks of query information low efficiency is obtained by information query system query interface is avoided.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of information query method, device, equipment and computer can
Read storage medium.
Background technique
With the fast development of computer equipment, information query system (such as:CRM(Customer Relationship
Management, customer relation management) system or bank information inquiry system etc.) also it is developed rapidly.When a large amount of letters
When breath inquiry request passes through the information in information query system external interface query information inquiry system, due to information query system
The limitation of external interface working efficiency leads to the reduction of information query system query information efficiency, even results in information inquiry system
The Caton of system;When information query system external interface stops working, cause information query system can not query information.
Summary of the invention
The invention proposes a kind of information query method, device, equipment and computer readable storage mediums, existing to solve
There is the existing problem low by the information efficiency in information query system external interface query information inquiry system in technology.
The technical solution adopted by the present invention is that providing a kind of information query method, it is applied to information query system, including:
When receiving information inquiring request, inquire that the information inquiring request is corresponding to be looked into preset first caching
Ask information;
In the case where not inquiring the query information in first caching, by described in the inquiry of preset query interface
Query information.
Optionally, after the query information by the inquiry of preset query interface, the method also includes:
In the case where not inquiring the query information by the preset query interface more than the first setting duration,
The query information is inquired in the second preset caching.
Optionally, after the query information by the inquiry of preset query interface, the method also includes:
It, will in the case where inquiring the query information by the preset query interface in the first setting duration
The query information is stored into first caching and second caching.
Optionally, after inquiring the query information in the second preset caching, the method also includes:
In the case where inquiring the query information in second caching, the query information is stored to described the
In one caching.
Optionally, after inquiring the corresponding query information of the information inquiring request in the first preset caching,
The method also includes:
When more than the second setting duration, first caching is deleted;Wherein, first caching is distributed caching.
The present invention also provides a kind of information query devices, are set to information query system, including:
First enquiry module, for inquiring the letter in the first preset caching when receiving information inquiring request
Cease the corresponding query information of inquiry request;
Second enquiry module, in the case where for not inquiring the query information in first caching, by pre-
It sets query interface and inquires the query information.
Optionally, described device further includes:
Third enquiry module, for it is described the query information is inquired by preset query interface after, more than the
In the case that one setting duration does not inquire the query information by the preset query interface, in the second preset caching
Inquire the query information.
Optionally, described device further includes:
First update module, for it is described the query information is inquired by preset query interface after, described the
In the case where inquiring the query information by preset query interface in one setting duration, the query information is stored to institute
It states in the first caching and second caching.
Optionally, described device further includes:
Second update module, it is slow described second after inquiring the query information in the second preset caching
In the case where inquiring the query information in depositing, the query information is stored into first caching.
Optionally, described device further includes:
Module is removed, for inquiring the corresponding query information of the information inquiring request in the first preset caching
Later, when more than the second setting duration, first caching is deleted;Wherein, first caching is distributed caching.
The present invention also provides a kind of information query facility, the information query facility includes processor and memory;Institute
Processor is stated for executing the program of the information stored in memory inquiry, the step of to realize above-mentioned information query method.
The present invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage have one or
The multiple programs of person, one or more of programs can be executed by one or more processor, be looked into the information for realizing above-mentioned
The step of inquiry method.
By adopting the above technical scheme, the present invention at least has following advantages:
A kind of information query method, device, equipment and computer readable storage medium of the present invention, effectively increase letter
The information search efficiency in inquiry system is ceased, avoids and query information low efficiency is obtained by information query system query interface
Drawback.
Detailed description of the invention
Fig. 1 is information query method flow chart described in first embodiment of the invention;
Fig. 2 is information query method flow chart described in second embodiment of the invention;
Fig. 3 is information query method flow chart described in third embodiment of the invention;
Fig. 4 is information query method flow chart described in fourth embodiment of the invention;
Fig. 5 is information query method flow chart described in fifth embodiment of the invention;
Fig. 6 is information query device composed structure schematic diagram described in sixth embodiment of the invention;
Fig. 7 is information query device composed structure schematic diagram described in seventh embodiment of the invention;
Fig. 8 is information query facility composed structure schematic diagram described in eighth embodiment of the invention.
Specific embodiment
Further to illustrate the present invention to reach the technical means and efficacy that predetermined purpose is taken, below in conjunction with attached drawing
And preferred embodiment, the present invention is described in detail as after.
Information query method provided in an embodiment of the present invention, for improving the information search efficiency in information query system,
The drawbacks of query information low efficiency is obtained by information query system query interface is avoided, it is existing logical in the prior art to solve
Cross the low problem of information efficiency in information query system external interface query information inquiry system.
First embodiment of the invention, a kind of information query method are applied to information query system, as shown in Figure 1, this method
Including step in detail below:
Step S101 inquires the information inquiring request in the first preset caching when receiving information inquiring request
Corresponding query information.
In the present embodiment, the first caching can be information query system local cache, be also possible to distributed caching.
Query information is prestored by the first caching in information query system, is looked into when information query system receives information
When asking request, the corresponding query information of information inquiring request is obtained in the first caching, search efficiency is effectively increased, avoids
By preset query interface obtain query information, need multiple information corresponding to the information inquiring request to be spliced and combined with
Query information is generated, query steps are cumbersome, the low drawback of search efficiency;It also avoids when bulk information inquiry request is by preset
Query interface obtains query information, the low drawback of search efficiency caused by being limited due to the working efficiency of preset query interface;And
And avoid in the case where preset query interface causes to stop working due to failure and other reasons, cause information query system can not
The drawbacks of obtaining query information.
Step S102 is inquired in the case where not inquiring the query information in the first caching by preset query interface
The query information.
In the case where by not inquiring the query information in the first caching, which is inquired by preset query interface
Information, while guaranteeing search efficiency, also in the corresponding query information situation of first uncached information inquiring request of caching
Under, which is inquired by preset query interface, ensure that the inquiry stability of information query system.
In the present embodiment, information query system is not specifically limited, can be crm system, be also possible to bank's letter
Inquiry system is ceased, is also possible to library's information inquiry system, is also possible to patent information inquiry system etc..
Information query method described in first embodiment of the invention improves the information inquiry effect in information query system
Rate avoids the drawbacks of obtaining query information low efficiency by information query system query interface, ensure that information query system
Inquiry stability.
Second embodiment of the invention, a kind of information query method are applied to information query system, as shown in Fig. 2, this method
Including step in detail below:
Step S201 inquires the information inquiring request in the first preset caching when receiving information inquiring request
Corresponding query information.
In the present embodiment, the first caching can be information query system local cache, be also possible to distributed caching.
Query information is prestored by the first caching in information query system, is looked into when information query system receives information
When asking request, the corresponding query information of information inquiring request is obtained in the first caching, search efficiency is effectively increased, avoids
By preset query interface obtain query information, need multiple information corresponding to the information inquiring request to be spliced and combined with
Query information is generated, query steps are cumbersome, the low drawback of search efficiency;It also avoids when bulk information inquiry request is by preset
Query interface obtains query information, the low drawback of search efficiency caused by being limited due to the working efficiency of preset query interface;And
And avoid in the case where preset query interface causes to stop working due to failure and other reasons, cause information query system can not
The drawbacks of obtaining query information.
Step S202 is inquired in the case where not inquiring the query information in the first caching by preset query interface
The query information.
In the case where by not inquiring the query information in the first caching, which is inquired by preset query interface
Information, while guaranteeing search efficiency, also in the corresponding query information situation of first uncached information inquiring request of caching
Under, which is inquired by preset query interface, ensure that the inquiry stability of information query system.
Step S203, the case where not inquiring the query information by preset query interface more than the first setting duration
Under, query information is inquired in the second preset caching.
Wherein, the second caching is information query system local cache.
In the present embodiment, to first setting duration be not specifically limited, can be information query system designer according to
The duration of engineering experience setting, is also possible to test the information query system best queries efficiency that is guaranteed by limited times and obtains
The duration arrived is also possible to be guaranteed what information query system best queries efficiency obtained by limited times Computer Simulation
Duration.
By more than first setting duration the query information is not inquired by preset query interface in the case where,
Query information is inquired in the second preset caching, bulk information inquiry request is avoided by preset query interface and obtains inquiry letter
Breath inquires Caton caused by the working efficiency limitation due to preset query interface, effectively increases the inquiry of information query system
The stability of efficiency and information query system.
In the present embodiment, information query system is not specifically limited, can be crm system, be also possible to bank's letter
Inquiry system is ceased, is also possible to library's information inquiry system, is also possible to patent information inquiry system etc..
Information query method described in second embodiment of the invention improves the information inquiry effect in information query system
Rate avoids the drawbacks of obtaining query information low efficiency by information query system query interface, ensure that information query system
Inquiry stability.
Third embodiment of the invention, a kind of information query method are applied to information query system, as shown in figure 3, this method
Including step in detail below:
Step S301 inquires the information inquiring request in the first preset caching when receiving information inquiring request
Corresponding query information.
In the present embodiment, the first caching can be information query system local cache, be also possible to distributed caching.
Query information is prestored by the first caching in information query system, is looked into when information query system receives information
When asking request, the corresponding query information of information inquiring request is obtained in the first caching, search efficiency is effectively increased, avoids
By preset query interface obtain query information, need multiple information corresponding to the information inquiring request to be spliced and combined with
Query information is generated, query steps are cumbersome, the low drawback of search efficiency;It also avoids when bulk information inquiry request is by preset
Query interface obtains query information, the low drawback of search efficiency caused by being limited due to the working efficiency of preset query interface;And
And avoid in the case where preset query interface causes to stop working due to failure and other reasons, cause information query system can not
The drawbacks of obtaining query information.
Step S302 is inquired in the case where not inquiring the query information in the first caching by preset query interface
The query information.
In the case where by not inquiring the query information in the first caching, which is inquired by preset query interface
Information, while guaranteeing search efficiency, also in the corresponding query information situation of first uncached information inquiring request of caching
Under, which is inquired by preset query interface, ensure that the inquiry stability of information query system.
Step S303, the case where not inquiring the query information by preset query interface more than the first setting duration
Under, query information is inquired in the second preset caching.
Wherein, the second caching is information query system local cache.
In the present embodiment, to first setting duration be not specifically limited, can be information query system designer according to
The duration of engineering experience setting, is also possible to test the information query system best queries efficiency that is guaranteed by limited times and obtains
The duration arrived is also possible to be guaranteed what information query system best queries efficiency obtained by limited times Computer Simulation
Duration.
By more than first setting duration the query information is not inquired by preset query interface in the case where,
Query information is inquired in the second preset caching, bulk information inquiry request is avoided by preset query interface and obtains inquiry letter
Breath inquires Caton caused by the working efficiency limitation due to preset query interface, effectively increases the inquiry of information query system
The stability of efficiency and information query system.
Step S304 will in the case where inquiring the query information by preset query interface in the first setting duration
The query information is stored into the first caching and the second caching.
The query information inquired by preset query interface is stored into the first caching and the second caching, for information
When inquiry system receives the information inquiring request again, information inquiry can be obtained in the first caching or the second caching and asked
Corresponding query information is sought, the search efficiency and stability of information query system are further improved.
Information query method described in third embodiment of the invention improves the information inquiry effect in information query system
Rate avoids the drawbacks of obtaining query information low efficiency by information query system query interface, ensure that information query system
Inquiry stability.
Fourth embodiment of the invention, a kind of information query method are applied to information query system, as shown in figure 4, this method
Including step in detail below:
Step S401 inquires the information inquiring request in the first preset caching when receiving information inquiring request
Corresponding query information.
In the present embodiment, the first caching can be information query system local cache, be also possible to distributed caching.
Query information is prestored by the first caching in information query system, is looked into when information query system receives information
When asking request, the corresponding query information of information inquiring request is obtained in the first caching, search efficiency is effectively increased, avoids
By preset query interface obtain query information, need multiple information corresponding to the information inquiring request to be spliced and combined with
Query information is generated, query steps are cumbersome, the low drawback of search efficiency;It also avoids when bulk information inquiry request is by preset
Query interface obtains query information, the low drawback of search efficiency caused by being limited due to the working efficiency of preset query interface;And
And avoid in the case where preset query interface causes to stop working due to failure and other reasons, cause information query system can not
The drawbacks of obtaining query information.
Step S402 is inquired in the case where not inquiring the query information in the first caching by preset query interface
The query information.
In the case where by not inquiring the query information in the first caching, which is inquired by preset query interface
Information, while guaranteeing search efficiency, also in the corresponding query information situation of first uncached information inquiring request of caching
Under, which is inquired by preset query interface, ensure that the inquiry stability of information query system.
Step S403, the case where not inquiring the query information by preset query interface more than the first setting duration
Under, query information is inquired in the second preset caching.
Wherein, the second caching is information query system local cache.
In the present embodiment, to first setting duration be not specifically limited, can be information query system designer according to
The duration of engineering experience setting, is also possible to test the information query system best queries efficiency that is guaranteed by limited times and obtains
The duration arrived is also possible to be guaranteed what information query system best queries efficiency obtained by limited times Computer Simulation
Duration.
By more than first setting duration the query information is not inquired by preset query interface in the case where,
Query information is inquired in the second preset caching, bulk information inquiry request is avoided by preset query interface and obtains inquiry letter
Breath inquires Caton caused by the working efficiency limitation due to preset query interface, effectively increases the inquiry of information query system
The stability of efficiency and information query system.
Step S404 stores the query information to first in the case where inquiring the query information in the second caching
In caching.
By by the second caching query to query information it is asynchronous store to first caching, again for information query system
When receiving the information inquiring request, can in the first caching the corresponding query information of the quick obtaining information inquiring request,
Improve the search efficiency of information query system.
Step S405 will in the case where inquiring the query information by preset query interface in the first setting duration
The query information is stored into the first caching and the second caching.
By the query information inquired by preset query interface it is asynchronous store to first caching and second caching in, for
When information query system receives the information inquiring request again, the information can be obtained in the first caching or the second caching and looked into
It askes and requests corresponding query information, further improve the search efficiency and stability of information query system.
Information query method described in fourth embodiment of the invention improves the information inquiry effect in information query system
Rate avoids the drawbacks of obtaining query information low efficiency by information query system query interface, ensure that information query system
Inquiry stability.
Fifth embodiment of the invention, a kind of information query method are applied to information query system, as shown in figure 5, this method
Including step in detail below:
Step S501 inquires the information inquiring request in the first preset caching when receiving information inquiring request
Corresponding query information.
Wherein, the first caching is distributed caching.
Query information is prestored by the first caching in information query system, is looked into when information query system receives information
When asking request, the corresponding query information of information inquiring request is obtained in the first caching, search efficiency is effectively increased, avoids
By preset query interface obtain query information, need multiple information corresponding to the information inquiring request to be spliced and combined with
Query information is generated, query steps are cumbersome, the low drawback of search efficiency;It also avoids when bulk information inquiry request is by preset
Query interface obtains query information, the low drawback of search efficiency caused by being limited due to the working efficiency of preset query interface;And
And avoid in the case where preset query interface causes to stop working due to failure and other reasons, cause information query system can not
The drawbacks of obtaining query information.
Step S502 deletes first caching when more than the second setting duration.
In the present embodiment, the mode of the first caching is deleted, including:
Delete the query information cached in the first caching;Alternatively, removing first caching.
In the present embodiment, to second setting duration be not specifically limited, can be information query system designer according to
The duration of engineering experience setting is also possible to test the information query system best queries accuracy rate that is guaranteed by limited times
Obtained duration, the information query system best queries accuracy rate that is also possible to be guaranteed by limited times Computer Simulation obtain
The duration arrived.
By deleting first caching more than the second setting duration, avoids and cached in the first caching caused by overlong time
Query information and information query system in query information it is inconsistent, therefore second setting duration to first caching carry out
It deletes, effectively increases the accuracy rate for obtaining query information in the first caching.
Step S503 is inquired in the case where not inquiring the query information in the first caching by preset query interface
The query information.
In the case where by not inquiring the query information in the first caching, which is inquired by preset query interface
Information, while guaranteeing search efficiency, also in the corresponding query information situation of first uncached information inquiring request of caching
Under, which is inquired by preset query interface, ensure that the inquiry stability of information query system.
Step S504, the case where not inquiring the query information by preset query interface more than the first setting duration
Under, query information is inquired in the second preset caching.
Wherein, the second caching is information query system local cache.
In the present embodiment, to first setting duration be not specifically limited, can be information query system designer according to
The duration of engineering experience setting, is also possible to test the information query system best queries efficiency that is guaranteed by limited times and obtains
The duration arrived is also possible to be guaranteed what information query system best queries efficiency obtained by limited times Computer Simulation
Duration.
By more than first setting duration the query information is not inquired by preset query interface in the case where,
Query information is inquired in the second preset caching, bulk information inquiry request is avoided by preset query interface and obtains inquiry letter
Breath inquires Caton caused by the working efficiency limitation due to preset query interface, effectively increases the inquiry of information query system
The stability of efficiency and information query system.
Step S505 stores the query information to first in the case where inquiring the query information in the second caching
In caching.
By by the second caching query to query information it is asynchronous store to first caching, again for information query system
When receiving the information inquiring request, can in the first caching the corresponding query information of the quick obtaining information inquiring request,
Improve the search efficiency of information query system.
Step S506 will in the case where inquiring the query information by preset query interface in the first setting duration
The query information is stored into the first caching and the second caching.
By the query information inquired by preset query interface it is asynchronous store to first caching and second caching in, for
When information query system receives the information inquiring request again, the information can be obtained in the first caching or the second caching and looked into
It askes and requests corresponding query information, further improve the search efficiency and stability of information query system.
Information query method described in fifth embodiment of the invention improves the information inquiry effect in information query system
Rate avoids the drawbacks of obtaining query information low efficiency by information query system query interface, ensure that information query system
Inquiry stability.
Information query device provided in an embodiment of the present invention, for improving the information search efficiency in information query system,
The drawbacks of query information low efficiency is obtained by information query system query interface is avoided, it is existing logical in the prior art to solve
Cross the low problem of information efficiency in information query system external interface query information inquiry system.
A kind of sixth embodiment of the invention, information query device, is set to information query system, as shown in fig. 6, the device
Including consisting of part:
First enquiry module 10, for inquiring the letter in the first preset caching when receiving information inquiring request
Cease the corresponding query information of inquiry request.
In the present embodiment, the first caching can be information query system local cache, be also possible to distributed caching.
Query information is prestored by the first caching in information query system, is looked into when information query system receives information
When asking request, the corresponding query information of information inquiring request is obtained in the first caching, search efficiency is effectively increased, avoids
By preset query interface obtain query information, need multiple information corresponding to the information inquiring request to be spliced and combined with
Query information is generated, query steps are cumbersome, the low drawback of search efficiency;It also avoids when bulk information inquiry request is by preset
Query interface obtains query information, the low drawback of search efficiency caused by being limited due to the working efficiency of preset query interface;And
And avoid in the case where preset query interface causes to stop working due to failure and other reasons, cause information query system can not
The drawbacks of obtaining query information.
Second enquiry module 30 is looked into the case where for not inquiring the query information in the first caching by preset
Ask the interface polls query information.
In the case where by not inquiring the query information in the first caching, which is inquired by preset query interface
Information, while guaranteeing search efficiency, also in the corresponding query information situation of first uncached information inquiring request of caching
Under, which is inquired by preset query interface, ensure that the inquiry stability of information query system.
In the present embodiment, information query system is not specifically limited, can be crm system, be also possible to bank's letter
Inquiry system is ceased, is also possible to library's information inquiry system, is also possible to patent information inquiry system etc..
Information query device described in sixth embodiment of the invention improves the information inquiry effect in information query system
Rate avoids the drawbacks of obtaining query information low efficiency by information query system query interface, ensure that information query system
Inquiry stability.
A kind of seventh embodiment of the invention, information query device, is set to information query system, as shown in fig. 7, the device
Including consisting of part:
First enquiry module 10, for inquiring the letter in the first preset caching when receiving information inquiring request
Cease the corresponding query information of inquiry request.
Wherein, the first caching is distributed caching.
Query information is prestored by the first caching in information query system, is looked into when information query system receives information
When asking request, the corresponding query information of information inquiring request is obtained in the first caching, search efficiency is effectively increased, avoids
By preset query interface obtain query information, need multiple information corresponding to the information inquiring request to be spliced and combined with
Query information is generated, query steps are cumbersome, the low drawback of search efficiency;It also avoids when bulk information inquiry request is by preset
Query interface obtains query information, the low drawback of search efficiency caused by being limited due to the working efficiency of preset query interface;And
And avoid in the case where preset query interface causes to stop working due to failure and other reasons, cause information query system can not
The drawbacks of obtaining query information.
Module 20 is removed, for when more than the second setting duration, deleting first caching.
In the present embodiment, the mode of the first caching is deleted, including:
Delete the query information cached in the first caching;Alternatively, removing first caching.
In the present embodiment, to second setting duration be not specifically limited, can be information query system designer according to
The duration of engineering experience setting is also possible to test the information query system best queries accuracy rate that is guaranteed by limited times
Obtained duration, the information query system best queries accuracy rate that is also possible to be guaranteed by limited times Computer Simulation obtain
The duration arrived.
By deleting first caching more than the second setting duration, avoids and cached in the first caching caused by overlong time
Query information and information query system in query information it is inconsistent, therefore second setting duration to first caching carry out
It deletes, effectively increases the accuracy rate for obtaining query information in the first caching.
Second enquiry module 30 is looked into the case where for not inquiring the query information in the first caching by preset
Ask the interface polls query information.
In the case where by not inquiring the query information in the first caching, which is inquired by preset query interface
Information, while guaranteeing search efficiency, also in the corresponding query information situation of first uncached information inquiring request of caching
Under, which is inquired by preset query interface, ensure that the inquiry stability of information query system.
Third enquiry module 40, for not inquiring inquiry letter by preset query interface more than the first setting duration
In the case where breath, query information is inquired in the second preset caching.
Wherein, the second caching is information query system local cache.
In the present embodiment, to first setting duration be not specifically limited, can be information query system designer according to
The duration of engineering experience setting, is also possible to test the information query system best queries efficiency that is guaranteed by limited times and obtains
The duration arrived is also possible to be guaranteed what information query system best queries efficiency obtained by limited times Computer Simulation
Duration.
By more than first setting duration the query information is not inquired by preset query interface in the case where,
Query information is inquired in the second preset caching, bulk information inquiry request is avoided by preset query interface and obtains inquiry letter
Breath inquires Caton caused by the working efficiency limitation due to preset query interface, effectively increases the inquiry of information query system
The stability of efficiency and information query system.
First update module 50, in the case where for inquiring the query information in the second caching, by the query information
It stores into the first caching.
By by the second caching query to query information it is asynchronous store to first caching, again for information query system
When receiving the information inquiring request, can in the first caching the corresponding query information of the quick obtaining information inquiring request,
Improve the search efficiency of information query system.
Second update module 60, for inquiring the query information by preset query interface in the first setting duration
In the case of, which is stored into the first caching and the second caching.
By the query information inquired by preset query interface it is asynchronous store to first caching and second caching in, for
When information query system receives the information inquiring request again, the information can be obtained in the first caching or the second caching and looked into
It askes and requests corresponding query information, further improve the search efficiency and stability of information query system.
Information query device described in seventh embodiment of the invention improves the information inquiry effect in information query system
Rate avoids the drawbacks of obtaining query information low efficiency by information query system query interface, ensure that information query system
Inquiry stability.
Eighth embodiment of the invention, a kind of information query facility, as shown in figure 8, including consisting of part:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to
Cross bus or other way connection.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit,
CPU), it can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention
One or more integrated circuits.Wherein, memory 502 is used for the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can
To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory,
RAM);Memory 502 also may include nonvolatile memory (Non-Volatile Memory), such as read-only memory
(Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid
State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store executes the present invention first
Embodiment into fifth embodiment of the invention in any embodiment part or Overall Steps.
In the present embodiment, information query system is set in the information query facility.
Information query facility described in eighth embodiment of the invention improves the information inquiry effect in information query system
Rate avoids the drawbacks of obtaining query information low efficiency by information query system query interface, ensure that information query system
Inquiry stability.
Ninth embodiment of the invention, a kind of computer readable storage medium.
Computer storage medium can be RAM memory, flash memory, ROM memory, eprom memory, EEPROM storage
Device, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art storage medium.
Computer-readable recording medium storage has one or more program, one or more program can by one or
The multiple processors of person execute, with realize first embodiment of the invention into fifth embodiment of the invention in any embodiment part or
Overall Steps.
Computer readable storage medium described in ninth embodiment of the invention is stored with one or more program, this one
A or multiple programs can be executed by one or more processor, can be improved the information inquiry effect in information query system
Rate avoids the drawbacks of obtaining query information low efficiency by information query system query interface, ensure that information query system
Inquiry stability.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (12)
1. a kind of information query method, which is characterized in that it is applied to information query system, including:
When receiving information inquiring request, the corresponding inquiry letter of the information inquiring request is inquired in the first preset caching
Breath;
In the case where not inquiring the query information in first caching, the inquiry is inquired by preset query interface
Information.
2. the method according to claim 1, wherein inquiring the inquiry letter by preset query interface described
After breath, the method also includes:
In the case where not inquiring the query information by the preset query interface more than the first setting duration, preset
Second caching in inquire the query information.
3. according to the method described in claim 2, it is characterized in that, inquiring the inquiry letter by preset query interface described
After breath, the method also includes:
It, will be described in the case where inquiring the query information by the preset query interface in the first setting duration
Query information is stored into first caching and second caching.
4. according to the method described in claim 2, it is characterized in that, inquired in preset second caching the query information it
Afterwards, the method also includes:
In the case where inquiring the query information in second caching, the query information is stored to described first and is delayed
In depositing.
5. method according to claim 1 to 4, which is characterized in that looked into the first preset caching
After asking the corresponding query information of the information inquiring request, the method also includes:
When more than the second setting duration, first caching is deleted;Wherein, first caching is distributed caching.
6. a kind of information query device, which is characterized in that it is set to information query system, including:
First enquiry module, for inquiring the information in the first preset caching and looking into when receiving information inquiring request
It askes and requests corresponding query information;
Second enquiry module is looked into the case where for not inquiring the query information in first caching by preset
Ask query information described in interface polls.
7. device according to claim 6, which is characterized in that described device further includes:
Third enquiry module, for being set more than first after the query information by the inquiry of preset query interface
In the case that timing length does not inquire the query information by the preset query interface, inquired in the second preset caching
The query information.
8. device according to claim 7, which is characterized in that described device further includes:
First update module, for being set described first after the query information by the inquiry of preset query interface
In the case where inquiring the query information by preset query interface in timing is long, the query information is stored to described the
In one caching and second caching.
9. device according to claim 7, which is characterized in that described device further includes:
Second update module, after inquiring the query information in the second preset caching, in second caching
In the case where inquiring the query information, the query information is stored into first caching.
10. device according to any one of claims 6 to 9, which is characterized in that described device further includes:
Remove module, for inquired in preset first caching corresponding query information of the information inquiring request it
Afterwards, when more than the second setting duration, first caching is deleted;Wherein, first caching is distributed caching.
11. a kind of information query facility, which is characterized in that the information query facility includes processor and memory;
The processor is used to execute the program of the information inquiry stored in memory, is appointed with realizing according to claim 1~5
The step of information query method described in one.
12. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be executed by one or more processor, with realize according to claim 1~
The step of information query method described in any one of 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810630740.1A CN108829837A (en) | 2018-06-19 | 2018-06-19 | A kind of information query method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810630740.1A CN108829837A (en) | 2018-06-19 | 2018-06-19 | A kind of information query method, device, equipment and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN108829837A true CN108829837A (en) | 2018-11-16 |
Family
ID=64142579
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810630740.1A Pending CN108829837A (en) | 2018-06-19 | 2018-06-19 | A kind of information query method, device, equipment and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108829837A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109783518A (en) * | 2018-12-11 | 2019-05-21 | 深圳市优必选科技有限公司 | Information query method, query device, storage medium and terminal equipment |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA2216346A1 (en) * | 1996-10-18 | 1998-04-18 | At&T Corp. | Inter-cache protocol for improved web performance |
| CN102541924A (en) * | 2010-12-21 | 2012-07-04 | 中国移动通信集团公司 | Retrieval information caching method and search engine system |
| CN103336849A (en) * | 2013-07-24 | 2013-10-02 | 昆明理工大学 | Method and device for increasing retrieval speed in database retrieval system |
| CN105512129A (en) * | 2014-09-24 | 2016-04-20 | 中国移动通信集团江苏有限公司 | Method and device for mass data retrieval, and method and device for storing mass data |
| CN106844784A (en) * | 2017-03-14 | 2017-06-13 | 上海网易小额贷款有限公司 | Data cache method, device and computer-readable recording medium |
| CN107025243A (en) * | 2016-02-02 | 2017-08-08 | 北京神州泰岳软件股份有限公司 | A kind of querying method of resource data, inquiring client terminal and inquiry system |
| CN107203613A (en) * | 2017-05-23 | 2017-09-26 | 北京微影时代科技有限公司 | A kind of method and device of high concurrent request processing |
| CN107451146A (en) * | 2016-05-31 | 2017-12-08 | 北京京东尚科信息技术有限公司 | The method of data and data cached multi-level buffer device are read using multi-level buffer |
| CN107665235A (en) * | 2017-07-27 | 2018-02-06 | 上海壹账通金融科技有限公司 | Method for caching and processing, device, computer equipment and storage medium |
-
2018
- 2018-06-19 CN CN201810630740.1A patent/CN108829837A/en active Pending
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CA2216346A1 (en) * | 1996-10-18 | 1998-04-18 | At&T Corp. | Inter-cache protocol for improved web performance |
| CN102541924A (en) * | 2010-12-21 | 2012-07-04 | 中国移动通信集团公司 | Retrieval information caching method and search engine system |
| CN103336849A (en) * | 2013-07-24 | 2013-10-02 | 昆明理工大学 | Method and device for increasing retrieval speed in database retrieval system |
| CN105512129A (en) * | 2014-09-24 | 2016-04-20 | 中国移动通信集团江苏有限公司 | Method and device for mass data retrieval, and method and device for storing mass data |
| CN107025243A (en) * | 2016-02-02 | 2017-08-08 | 北京神州泰岳软件股份有限公司 | A kind of querying method of resource data, inquiring client terminal and inquiry system |
| CN107451146A (en) * | 2016-05-31 | 2017-12-08 | 北京京东尚科信息技术有限公司 | The method of data and data cached multi-level buffer device are read using multi-level buffer |
| CN106844784A (en) * | 2017-03-14 | 2017-06-13 | 上海网易小额贷款有限公司 | Data cache method, device and computer-readable recording medium |
| CN107203613A (en) * | 2017-05-23 | 2017-09-26 | 北京微影时代科技有限公司 | A kind of method and device of high concurrent request processing |
| CN107665235A (en) * | 2017-07-27 | 2018-02-06 | 上海壹账通金融科技有限公司 | Method for caching and processing, device, computer equipment and storage medium |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109783518A (en) * | 2018-12-11 | 2019-05-21 | 深圳市优必选科技有限公司 | Information query method, query device, storage medium and terminal equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107491523B (en) | Method and apparatus for storing data objects | |
| CN110598138A (en) | Cache-based processing method and device | |
| CN113885801B (en) | A method and device for processing memory data | |
| CN106302595A (en) | A kind of method and apparatus that server is carried out physical examination | |
| CN108984104B (en) | Method and apparatus for cache management | |
| CN111198856A (en) | File management method and device, computer equipment and storage medium | |
| CN113805805B (en) | Cache memory block elimination method, device and electronic equipment | |
| CN114924687B (en) | Storage device, computer system, and data transfer program | |
| WO2018006721A1 (en) | Method and apparatus for storing log file | |
| US10628066B2 (en) | Ensuring in-storage data atomicity and consistency at low cost | |
| CN109756566B (en) | Block chain based data storage method, related equipment and storage medium | |
| CN105447167A (en) | Processing method and apparatus for node cache data in distributed system | |
| US10387308B2 (en) | Method and apparatus for online reducing caching devices | |
| US20140325123A1 (en) | Information processing apparatus, control circuit, and control method | |
| CN110399096A (en) | Metadata of distributed type file system caches the method, apparatus and equipment deleted again | |
| CN110347707A (en) | Updating cache data | |
| CN104750637A (en) | Scalable input/output data mechanism for accelerators | |
| CN108829837A (en) | A kind of information query method, device, equipment and computer readable storage medium | |
| CN113688107A (en) | Metadata caching method, device, terminal and storage medium for distributed file system | |
| US11983159B2 (en) | Systems and methods for management of a log-structure | |
| CN111930315A (en) | Data access method, data access device and storage medium | |
| CN115858423A (en) | Switching method and device of cache elimination strategies, electronic equipment and storage medium | |
| CN111552438A (en) | Object writing method, device, server and storage medium | |
| CN111159160A (en) | A version rollback method, device, electronic device and storage medium | |
| CN108763517A (en) | A kind of method and relevant device for deleting metadata |
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: 20181116 |
|
| RJ01 | Rejection of invention patent application after publication |