CN117076505A - Information retrieval method, device, equipment and storage medium based on cache database - Google Patents

Information retrieval method, device, equipment and storage medium based on cache database Download PDF

Info

Publication number
CN117076505A
CN117076505A CN202311061924.8A CN202311061924A CN117076505A CN 117076505 A CN117076505 A CN 117076505A CN 202311061924 A CN202311061924 A CN 202311061924A CN 117076505 A CN117076505 A CN 117076505A
Authority
CN
China
Prior art keywords
information
local
commemorative coin
retrieval
target website
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
Application number
CN202311061924.8A
Other languages
Chinese (zh)
Inventor
苗海柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202311061924.8A priority Critical patent/CN117076505A/en
Publication of CN117076505A publication Critical patent/CN117076505A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/02Reservations, e.g. for tickets, services or events
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Computational Linguistics (AREA)
  • Accounting & Taxation (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Mathematical Physics (AREA)
  • Technology Law (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides an information retrieval method, device, equipment and storage medium based on a cache database, which can be used in the financial field or other fields, and the method comprises the following steps: receiving a user query statement; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website; determining a local retrieval result of the commemorative coin balance information aiming at the target website according to the user query statement and the local cache information; the local search result is that the local search is successful or the local search fails; if the local search is determined to fail, the commemorative coin balance information of the target website is obtained and displayed according to the user query statement and the commemorative coin balance information of each website in the commemorative coin reservation system cached by the cache database. The method not only releases the cache pressure of the front-end electronic equipment, but also improves the success rate and efficiency of information retrieval.

Description

Information retrieval method, device, equipment and storage medium based on cache database
Technical Field
The present application relates to the financial field or other fields, and in particular, to an information retrieval method, apparatus, device and storage medium based on a cache database.
Background
The commemorative coin reservation scene is a scene with very high data access frequency, very large data volume and very frequent change.
In the prior art, front-end electronic equipment caches the reserved website information of the commemorative coins, so that the pressure user of the back-end commemorative coin reservation system is relieved, and the reserved website commemorative coins are inquired based on the cache information of the front-end electronic equipment.
However, in the prior art, the front-end electronic device needs to buffer and process the whole data volume is larger, which puts higher demands on the memory of the front-end system, and meanwhile, it is difficult to realize the balance between alleviating the pressure of the back-end electronic device and improving the user experience.
Disclosure of Invention
The application provides an information retrieval method, device, equipment and storage medium based on a cache database, which are used for solving the problem that the balance between relieving the pressure of back-end electronic equipment and improving the user experience is difficult to realize.
In a first aspect, the present application provides an information retrieval method based on a cache database, where the method is applied to a front-end electronic device, and the method includes:
receiving a user query statement; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website;
determining a local retrieval result of the commemorative coin balance information aiming at the target website according to the user query statement and the local cache information; the local search result is that the local search is successful or the local search is failed;
if the local retrieval is determined to fail, acquiring and displaying the commemorative coin balance information of the target website according to the user query statement and the second-level cache information cached by the cache database; the second-level cache information comprises commemorative coin balance information of each website in a commemorative coin reservation system.
In an alternative implementation manner, determining a local search result of the commemorative coin balance information for the target website according to the user query statement and the local cache information includes:
determining state information of the local cache information; the state information is used for representing the validity of the local cache information;
if the state information is determined to represent that the local cache information is invalid, determining that local retrieval fails;
and if the state information is determined to represent that the local cache information is effective, performing information retrieval in the local cache information according to the user query statement, and determining a local retrieval result of the commemorative coin balance information of the target website.
In an optional implementation manner, according to the user query statement, information retrieval is performed in the local cache information, and a local retrieval result of the commemorative coin balance information of the target website is determined, including:
according to the user inquiry statement, information retrieval is carried out in the local cache information, if the local cache information comprises the commemorative coin balance information of the target website, the local retrieval is determined to be successful, and the commemorative coin balance information of the target website in the local cache information is obtained and displayed;
and if the local cache information is determined to not comprise the commemorative coin balance information of the target website, determining that the local retrieval fails.
In an alternative embodiment, after displaying the target website's commemorative coin balance information, the method further comprises:
responding to a user operation instruction, and generating and sending a reservation request to the back-end electronic equipment; the user operation instruction is used for generating the reservation request, and the reservation request is used for indicating the reserved quantity of the commemorative coin request aiming at the target website;
receiving feedback information sent by the back-end electronic equipment; the feedback information is used for representing reservation success or reservation failure.
In an optional implementation manner, the second-level cache information is cache information updated regularly, the second-level cache information is updated regularly based on statistical information counted regularly by a back-end electronic device, the back-end electronic device is provided with the commemorative coin reservation system, and the back-end electronic device is used for counting the dot information and the commemorative coin balance information of each dot in the commemorative coin reservation system regularly and generating statistical information.
In a second aspect, the present application provides an information retrieval apparatus based on a cache database, the apparatus being provided in a front-end electronic device, the apparatus comprising:
the first receiving unit is used for receiving a user inquiry statement; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website;
the first processing unit is used for determining a local retrieval result of the commemorative coin balance information aiming at the target website according to the user query statement and the local cache information; the local search result is that the local search is successful or the local search is failed;
the second processing unit is used for acquiring and displaying the commemorative coin balance information of the target website according to the user query statement and the second-level cache information cached by the cache database if the local retrieval failure is determined; the second-level cache information comprises commemorative coin balance information of each website in a commemorative coin reservation system.
In an alternative embodiment, the first processing unit includes:
a determining subunit, configured to determine state information of the local cache information; the state information is used for representing the validity of the local cache information;
the first processing subunit is used for determining that the local retrieval result is retrieval failure if the state information is determined to be invalid in the local cache information;
and the second processing subunit is used for carrying out information retrieval in the local cache information according to the user query statement if the state information is determined to represent that the local cache information is effective, and determining a local retrieval result of the commemorative coin balance information of the target website.
In an alternative embodiment, the second processing subunit includes:
the first processing module is used for carrying out information retrieval in the local cache information according to the user query statement, if the local cache information is determined to comprise the commemorative coin balance information of the target website, the local retrieval is determined to be successful, and the commemorative coin balance information of the target website in the local cache information is obtained and displayed;
and the second processing module is used for determining that the local retrieval fails if the local cache information does not comprise the commemorative coin balance information of the target website.
In an alternative embodiment, after the second processing unit, the apparatus further comprises:
the third processing unit is used for responding to the user operation instruction and generating and sending a reservation request to the back-end electronic equipment; the user operation instruction is used for generating the reservation request, and the reservation request is used for indicating the reserved quantity of the commemorative coin request aiming at the target website;
the second receiving unit is used for receiving feedback information sent by the back-end electronic equipment; the feedback information is used for representing reservation success or reservation failure.
In an optional implementation manner, the second-level cache information is cache information updated regularly, the second-level cache information is updated regularly based on statistical information counted regularly by a back-end electronic device, the back-end electronic device is provided with the commemorative coin reservation system, and the back-end electronic device is used for counting the dot information and the commemorative coin balance information of each dot in the commemorative coin reservation system regularly and generating statistical information.
In a third aspect, the present application provides a front-end electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to read the computer program stored in the memory, and execute the information retrieval method based on the cache database according to the first aspect according to the computer program in the memory.
In a fourth aspect, the present application provides a computer readable storage medium having stored therein computer executable instructions which, when executed by a processor, implement the cache database based information retrieval method according to the first aspect.
The application provides an information retrieval method, device, equipment and storage medium based on a cache database, which comprises the following steps: receiving a user query statement; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website; determining a local retrieval result of the commemorative coin balance information aiming at the target website according to the user query statement and the local cache information; the local search result is that the local search is successful or the local search fails; if the local search is determined to fail, the commemorative coin balance information of the target website is obtained and displayed according to the user query statement and the commemorative coin balance information of each website in the commemorative coin reservation system cached by the cache database. The method not only releases the cache pressure of the front-end electronic equipment, but also improves the success rate and efficiency of information retrieval.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a flowchart of an information retrieval method based on a cache database according to an embodiment of the present application;
FIG. 2 is a flowchart of another information retrieval method based on a cache database according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an information retrieval device based on a cache database according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a front-end electronic device according to an embodiment of the present application;
fig. 5 is a block diagram of a front-end electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with related laws and regulations and standards, and provide corresponding operation entries for the user to select authorization or rejection.
It should be noted that the information retrieval method, device, equipment and storage medium based on the cache database of the present application can be used in the financial field, and can also be used in any field other than the financial field.
The cache is generally applied to a scene where the amount of data is small, the access frequency is high, and the data change is small. A general caching scheme for a scene with very high data access frequency, large data volume and very frequent change is not applicable. The reservation of commemorative coin belongs to such a typical scene, and the processing performance of the system is required to be very high, and the net point residual amount is changed in real time.
In one example, the front-end electronics may buffer the commemorative coin reservation site information to relieve pressure from the back-end commemorative coin reservation system. Because of the large overall data size, higher demands are placed on the memory of the front-end system. If the buffer validity period of the front-end electronic equipment is too short, the pressure on the commemorative coin reservation system of the back-end electronic equipment is very high; if the effective period of the cache is too long, the data can not be reflected to the reservation interface of the client frequently, and the client can always see the residual amount, but the client can not find the reserved amount when actually reserving, so that the client experience is poor, and if the front-end cache is not used, the pressure is completely released to the commemorative coin reservation system, and huge pressure can be generated on the system.
Therefore, the application provides an information retrieval method based on a cache database, which is used for solving the technical problems.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of an information retrieval method based on a cache database according to an embodiment of the present application, where the method is applied to a front-end electronic device, as shown in fig. 1, and the method includes:
101. receiving a user query statement; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website.
The front-end electronic device receives a user query statement based on a preset query page, where the user query statement may be a computer statement generated by triggering a user based on a query key on the query page, or may be a computer statement generated by triggering a user based on editing a frame on the query page, where the user query statement is used to indicate commemorative coin balance information of a query target website.
102. Determining a local retrieval result of the commemorative coin balance information aiming at the target website according to the user query statement and the local cache information; the local search result is that the local search is successful or the local search is failed.
Illustratively, after receiving a user query statement, the front-end electronic device performs primary information retrieval on the commemorative coin balance information of the target website indicated by the user query statement according to local cache information stored in the front-end electronic device, and determines a local retrieval result of the commemorative coin balance information of the target website; the local search result is that the local search is successful or the local search is failed.
103. If the local retrieval is determined to fail, acquiring and displaying the balance information of the commemorative coin of the target website according to the user query statement and the secondary cache information cached by the cache database; the buffer database is used for buffering second-level buffer information, and the second-level buffer information comprises commemorative coin balance information of each website in the commemorative coin reservation system.
The second-level cache information is cached in the cache database, and comprises the commemorative coin balance information of each website in the commemorative coin reservation system, if the local retrieval failure is determined, the second-level information retrieval is started, namely the commemorative coin balance information of the target website is retrieved in the second-level cache information according to the user query statement, and the second-level cache information comprises the commemorative coin balance information of all websites in the commemorative coin reservation system, so that the front-end electronic equipment can acquire and display the commemorative coin balance information of the target website under the condition that the target website indicates no error, namely the target website exists in the commemorative coin reservation system.
In summary, the information retrieval method based on the cache database provided in this embodiment includes the following steps: receiving a user query statement; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website; determining a local retrieval result of the commemorative coin balance information aiming at the target website according to the user query statement and the local cache information; the local search result is that the local search is successful or the local search fails; if the local search is determined to fail, the commemorative coin balance information of the target website is obtained and displayed according to the user query statement and the commemorative coin balance information of each website in the commemorative coin reservation system cached by the cache database. The method not only releases the cache pressure of the front-end electronic equipment, but also improves the success rate and efficiency of information retrieval.
Fig. 2 is a flowchart of another information retrieval method based on a cache database according to an embodiment of the present application, where the method is applied to a front-end electronic device, as shown in fig. 2, and the method includes:
201. receiving a user query statement; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website.
Illustratively, this step is referred to step 101, and will not be described in detail.
202. Determining state information of local cache information; the state information is used for representing the validity of the local cache information.
For example, the information content of the local cache information of the front-end electronic device is related to the attribution of the front-end electronic device, the usage habit of the user, and the like, the local cache information of the front-end electronic device has timeliness, and when the corresponding state information indicates that the local cache information has been invalid, the front-end electronic device needs to reacquire the local cache information, because the front-end electronic device needs to determine the state information of the local cache information first, and then determine whether the state information is valid.
203. And if the state information is determined to be invalid, determining that the local retrieval fails.
For example, if it is determined that the state information characterizes that the local cache information is invalid, information retrieval cannot be performed using the local cache information because it may be determined that the local retrieval fails.
204. If the state information is determined to represent that the local cache information is effective, information retrieval is carried out in the local cache information according to the user query statement, and a local retrieval result of the commemorative coin balance information of the target website is determined.
In one example, if the status information is determined to be indicative of local cache information being valid; step 204 includes the steps of:
and according to the query statement of the user, information retrieval is carried out in the local cache information, if the local cache information comprises the commemorative coin balance information of the target website, the local retrieval is determined to be successful, and the commemorative coin balance information of the target website in the local cache information is obtained and displayed.
And if the local cache information is determined to not comprise the commemorative coin balance information of the target website, determining that the local retrieval fails.
If the state information is determined to be effective in representing the local cache information, it indicates that information retrieval can be performed according to the local cache information at this time, then first-level information retrieval is performed in the local cache information according to a user query statement, if the local cache information is determined to include the commemorative coin balance information of the target website, then the local retrieval is determined to be successful, at this time, the front-end electronic device can directly acquire and display the commemorative coin balance information of the target website in the local cache information, and feed back the commemorative coin balance information of the target website to the front-end user. And if the local cache information is determined to not comprise the commemorative coin balance information of the target website, determining that the local retrieval fails.
205. If the local retrieval is determined to fail, acquiring and displaying the balance information of the commemorative coin of the target website according to the user query statement and the secondary cache information cached by the cache database; the buffer database is used for buffering second-level buffer information, and the second-level buffer information comprises commemorative coin balance information of each website in the commemorative coin reservation system.
In one example, the second-level cache information is cache information updated regularly, the second-level cache information is updated regularly based on statistical information counted by the back-end electronic device regularly, the back-end electronic device is provided with a commemorative coin reservation system, and the back-end electronic device is used for counting the dot information of each dot and the commemorative coin balance information in the commemorative coin reservation system regularly and generating statistical information.
If the local search is determined to fail, performing secondary information search according to the user query statement and secondary cache information cached in the cache database, namely, the commemorative coin balance information of each website in the commemorative coin reservation system stored in the cache database, determining the commemorative coin balance information of the target website, and displaying the commemorative coin balance information of the target website on a display interface.
In one example, the commemorative coin balance information of each website in the commemorative coin reservation system cached by the cache database is updated regularly, and the back-end electronic equipment calculates the statistical interface of the commemorative coin balance information of all websites at intervals of preset time based on one time, calculates the latest commemorative coin balance information of each website in the commemorative coin reservation system, obtains statistical information, and updates the secondary cache information in the cache database according to the statistical information.
In one example, a remote dictionary service (Remote Dictionary Server, redis) may be utilized as a cache database to store secondary cache information.
In one example, after the local retrieval fails, the front-end electronic device does not perform data access to the back-end electronic device, but accesses the cache database, so that an access interface to the back-end electronic device in the front-end electronic device is modified to an access interface to the cache database during information retrieval.
206. After the commemorative coin balance information of the target website is displayed, responding to a user operation instruction, and generating and sending a reservation request to the back-end electronic equipment; the user operation instruction is used for generating a reservation request, and the reservation request is used for indicating the reserved quantity of the commemorative coin request aiming at the target website.
For example, after the commemorative coin balance information of the target website is displayed, the user may perform a commemorative coin reservation operation according to the commemorative coin balance information of the target website, and generate and transmit a reservation request to the back-end electronic device in response to the user operation instruction, the reservation request being used for indicating a reservation amount of the commemorative coin request for the target website.
207. Receiving feedback information sent by the back-end electronic equipment; the feedback information is used for representing reservation success or reservation failure.
After receiving the reservation request, the back-end electronic device receives or refuses the reservation request according to the real-time commemorative coin limit of the target website in the commemorative coin reservation system, because although the secondary cache information in the cache database is updated at regular time, there is still a possibility of information delay, for example, user 1 and user 2 both inquire the commemorative coin balance information of the target website at the same time, user 1 firstly sends the reservation request to all the remaining commemorative coins of the target website, the back-end electronic device receives the reservation request of user 1, at this time, the balance of the commemorative coin operated and carried by the back-end electronic device is updated to zero, at this time, the reservation request of user 2 is received again, the reservation interface of the front-end electronic device corresponding to user 2 is inquired that the commemorative coin balance of the target website is zero, at this time, and only feedback information of reservation failure can be fed back to the reservation interface of the front-end electronic device corresponding to prompt that the commemorative coin balance of the target website is insufficient.
In summary, in this embodiment, based on the local cache of the front-end electronic device, the second-level information cache is added, and the second-level cache information is updated at regular time, so that the local cache pressure of the front-end electronic device is reduced, a user can timely acquire newer commemorative coin balance information, and user experience is improved; and when information is retrieved, the access of the front-end electronic equipment to the rear-end electronic equipment is modified into the access to the cache database, so that the decoupling amount of the front-end electronic equipment and the rear-end electronic equipment is realized, and the processing performance of the commemorative coin reservation system of the rear-end electronic equipment can be improved.
Fig. 3 is a schematic structural diagram of an information retrieval device based on a cache database according to an embodiment of the present application, where the device is disposed in a front-end electronic device, as shown in fig. 3, and the device includes:
a first receiving unit 31 for receiving a user query sentence; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website.
A first processing unit 32, configured to determine a local search result of the balance information of the commemorative coin for the target website according to the user query sentence and the local cache information; the local search result is that the local search is successful or the local search is failed.
The second processing unit 33 is configured to obtain and display the balance information of the commemorative coin of the target website according to the user query statement and the second level cache information cached in the cache database if it is determined that the local retrieval fails; the buffer database is used for buffering second-level buffer information, and the second-level buffer information comprises commemorative coin balance information of each website in the commemorative coin reservation system.
In one example, the first processing unit 32 includes:
a determining subunit, configured to determine status information of the local cache information; the state information is used for representing the validity of the local cache information.
And the first processing subunit is used for determining that the local retrieval fails if the state information is determined to be invalid to represent the local cache information.
And the second processing subunit is used for carrying out information retrieval in the local cache information according to the user query statement if the state information is determined to represent that the local cache information is effective, and determining a local retrieval result of the commemorative coin balance information of the target website.
In one example, the second processing subunit includes:
the first processing module is used for carrying out information retrieval in the local cache information according to the user query statement, and if the local cache information comprises the commemorative coin balance information of the target website, the local retrieval is determined to be successful, and the commemorative coin balance information of the target website in the local cache information is obtained and displayed.
And the second processing module is used for determining that the local retrieval fails if the local cache information does not comprise the commemorative coin balance information of the target website.
In one example, after the second processing unit 33, the apparatus further comprises:
the third processing unit is used for responding to the user operation instruction and generating and sending a reservation request to the back-end electronic equipment; the user operation instruction is used for generating a reservation request, and the reservation request is used for indicating the reserved quantity of the commemorative coin request aiming at the target website.
The second receiving unit is used for receiving feedback information sent by the back-end electronic equipment; the feedback information is used for representing reservation success or reservation failure.
In one example, the second-level cache information is cache information updated regularly, the second-level cache information is updated regularly based on statistical information counted by the back-end electronic device regularly, the back-end electronic device is provided with a commemorative coin reservation system, and the back-end electronic device is used for counting the dot information of each dot and the commemorative coin balance information in the commemorative coin reservation system regularly and generating statistical information.
Fig. 4 is a schematic structural diagram of a front-end electronic device according to an embodiment of the present application, where, as shown in fig. 4, the front-end electronic device includes: a memory 41, a processor 42.
A memory 41 for storing a computer program.
The processor 42 is configured to read the computer program stored in the memory, and execute the information retrieval method based on the cache database according to any one of the above embodiments according to the computer program in the memory.
Fig. 5 is a block diagram of a front-end electronic device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, etc., in accordance with an embodiment of the present application.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the apparatus 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phonebook data, messages, pictures, videos, and the like. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen between the device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or sliding action, but also the duration and pressure associated with the touch or sliding operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 800 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the apparatus 800. For example, the sensor assembly 814 may detect an on/off state of the device 800, a relative positioning of the assemblies, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in position of the device 800 or one of the assemblies of the device 800, the presence or absence of user contact with the device 800, an orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the apparatus 800 and other devices, either in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of apparatus 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
The embodiment of the application also provides a computer program product, which comprises: a computer program stored in a readable storage medium, from which the computer program can be read by at least one processor of the front-end electronic device, the at least one processor executing the computer program causing the front-end electronic device to perform the solution provided by any of the embodiments described above.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. An information retrieval method based on a cache database, wherein the method is applied to front-end electronic equipment, and the method comprises the following steps:
receiving a user query statement; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website;
determining a local retrieval result of the commemorative coin balance information aiming at the target website according to the user query statement and the local cache information; the local search result is that the local search is successful or the local search is failed;
if the local retrieval is determined to fail, acquiring and displaying the commemorative coin balance information of the target website according to the user query statement and the second-level cache information cached by the cache database; the second-level cache information comprises commemorative coin balance information of each website in a commemorative coin reservation system.
2. The method of claim 1, wherein determining a local search result for commemorative coin balance information for the target site based on the user query statement and local cache information comprises:
determining state information of the local cache information; the state information is used for representing the validity of the local cache information;
if the state information is determined to represent that the local cache information is invalid, determining that local retrieval fails;
and if the state information is determined to represent that the local cache information is effective, performing information retrieval in the local cache information according to the user query statement, and determining a local retrieval result of the commemorative coin balance information of the target website.
3. The method of claim 2, wherein performing information retrieval in the local cache information according to the user query statement, determining a local retrieval result of the target website's commemorative coin balance information, comprises:
according to the user inquiry statement, information retrieval is carried out in the local cache information, if the local cache information comprises the commemorative coin balance information of the target website, the local retrieval is determined to be successful, and the commemorative coin balance information of the target website in the local cache information is obtained and displayed;
and if the local cache information is determined to not comprise the commemorative coin balance information of the target website, determining that the local retrieval fails.
4. The method of claim 1, wherein after displaying the target site's commemorative coin balance information, the method further comprises:
responding to a user operation instruction, and generating and sending a reservation request to the back-end electronic equipment; the user operation instruction is used for generating the reservation request, and the reservation request is used for indicating the reserved quantity of the commemorative coin request aiming at the target website;
receiving feedback information sent by the back-end electronic equipment; the feedback information is used for representing reservation success or reservation failure.
5. The method according to any one of claims 1 to 4, wherein the secondary cache information is cache information updated at regular time, the secondary cache information is updated at regular time based on statistical information counted at regular time by a back-end electronic device, the back-end electronic device is mounted with the commemorative coin reservation system, and the back-end electronic device is configured to count dot information and commemorative coin balance information of each dot in the commemorative coin reservation system at regular time and generate statistical information.
6. An information retrieval apparatus based on a cache database, wherein the apparatus is provided in a front-end electronic device, the apparatus comprising:
the first receiving unit is used for receiving a user inquiry statement; the user inquiry statement is used for indicating to inquire the balance information of the commemorative coin of the target website;
the first processing unit is used for determining a local retrieval result of the commemorative coin balance information aiming at the target website according to the user query statement and the local cache information; the local search result is that the local search is successful or the local search is failed;
the second processing unit is used for acquiring and displaying the commemorative coin balance information of the target website according to the user query statement and the second-level cache information cached by the cache database if the local retrieval failure is determined; the second-level cache information comprises commemorative coin balance information of each website in a commemorative coin reservation system.
7. The apparatus of claim 6, wherein the first processing unit comprises:
a determining subunit, configured to determine state information of the local cache information; the state information is used for representing the validity of the local cache information;
the first processing subunit is used for determining that the local retrieval fails if the state information is determined to be invalid in the local cache information;
and the second processing subunit is used for carrying out information retrieval in the local cache information according to the user query statement if the state information is determined to represent that the local cache information is effective, and determining a local retrieval result of the commemorative coin balance information of the target website.
8. The apparatus of claim 7, wherein the second processing subunit comprises:
the first processing module is used for carrying out information retrieval in the local cache information according to the user query statement, if the local cache information is determined to comprise the commemorative coin balance information of the target website, the local retrieval is determined to be successful, and the commemorative coin balance information of the target website in the local cache information is obtained and displayed;
and the second processing module is used for determining that the local retrieval fails if the local cache information does not comprise the commemorative coin balance information of the target website.
9. A front-end electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to read the computer program stored in the memory, and execute the information retrieval method based on the cache database according to any one of claims 1 to 5 according to the computer program in the memory.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor implement the cache database based information retrieval method of any of claims 1-5.
CN202311061924.8A 2023-08-22 2023-08-22 Information retrieval method, device, equipment and storage medium based on cache database Pending CN117076505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311061924.8A CN117076505A (en) 2023-08-22 2023-08-22 Information retrieval method, device, equipment and storage medium based on cache database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311061924.8A CN117076505A (en) 2023-08-22 2023-08-22 Information retrieval method, device, equipment and storage medium based on cache database

Publications (1)

Publication Number Publication Date
CN117076505A true CN117076505A (en) 2023-11-17

Family

ID=88716669

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311061924.8A Pending CN117076505A (en) 2023-08-22 2023-08-22 Information retrieval method, device, equipment and storage medium based on cache database

Country Status (1)

Country Link
CN (1) CN117076505A (en)

Similar Documents

Publication Publication Date Title
CN108804244B (en) Data transmission method, device and storage medium
CN111246278A (en) Video playing method and device, electronic equipment and storage medium
CN110764847B (en) User information processing method, device, electronic equipment and storage medium
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN117076505A (en) Information retrieval method, device, equipment and storage medium based on cache database
CN112035246B (en) Method, device and system for acquiring virtual resources, electronic equipment and storage medium
CN112862349B (en) Data processing method, device and equipment based on ABS service data
CN111221862B (en) Request processing method and device
CN111061633B (en) Webpage first screen time detection method, device, terminal and medium
CN109582851B (en) Search result processing method and device
CN117078420A (en) Transaction data processing method, device, equipment and storage medium
CN114238728B (en) Vehicle data processing method, device and equipment
CN113191792B (en) Task processing method, device, electronic equipment, storage medium and program product
CN114025047B (en) Message processing method, device, system, electronic equipment and storage medium
CN111984865B (en) Method and device for inquiring account number, electronic equipment and storage medium
CN112182027B (en) Information query method, device, electronic equipment and storage medium
CN115510107A (en) Data preheating caching method, device, equipment and storage medium
CN117291532A (en) User prompting method, device, equipment and storage medium
CN116643673A (en) Information collection method, device and equipment
CN117061583A (en) Message data information processing method, device, equipment and storage medium
CN116992956A (en) Model training method, device and equipment applied to user portrait determination
CN107544965B (en) Method for optimizing size of static lexicon and electronic equipment
CN107544969B (en) Method for optimizing size of static lexicon and electronic equipment
CN116955526A (en) Information generation method, device, electronic equipment and readable storage medium
CN117641051A (en) Live broadcast room information processing method and device, electronic equipment and storage medium

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