CN116401274B - Method and system for quick response of integral client number - Google Patents

Method and system for quick response of integral client number Download PDF

Info

Publication number
CN116401274B
CN116401274B CN202310264031.7A CN202310264031A CN116401274B CN 116401274 B CN116401274 B CN 116401274B CN 202310264031 A CN202310264031 A CN 202310264031A CN 116401274 B CN116401274 B CN 116401274B
Authority
CN
China
Prior art keywords
credential
client number
information
target
client
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.)
Active
Application number
CN202310264031.7A
Other languages
Chinese (zh)
Other versions
CN116401274A (en
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.)
Shenzhen Uxun Information Technology Co ltd
Original Assignee
Shenzhen Uxun Information Technology Co 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 Shenzhen Uxun Information Technology Co ltd filed Critical Shenzhen Uxun Information Technology Co ltd
Priority to CN202310264031.7A priority Critical patent/CN116401274B/en
Publication of CN116401274A publication Critical patent/CN116401274A/en
Application granted granted Critical
Publication of CN116401274B publication Critical patent/CN116401274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • 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)
  • Databases & Information Systems (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the technical field of bank point systems, in particular to a method and a system for quickly responding to a point client number. According to the application, the secondary cache area is arranged, the target point client number is searched in the preset credential table after the credential information input by the client is acquired, then the credential information of the target number under the client name is searched in the preset credential table based on the target point client number, the target point client number and all credential information are spliced according to the preset first format, so that splicing information is obtained and added into the secondary cache information of the secondary cache area, and the secondary cache information can be directly searched from the secondary cache area when the client is searched subsequently, so that the target point client number is extracted, the searching time in the preset credential table is saved, and the use efficiency is improved.

Description

Method and system for quick response of integral client number
Technical Field
The application relates to the technical field of bank point systems, in particular to a method and a system for quickly responding to a point client number.
Background
Along with the continuous expansion of business on a banking line, identity credential information of customers in banks derives multiple types, such as electronic account numbers, bank card numbers, bank core customer numbers and the like, and as most customers have multiple types of credential information, multiples of customer credential data are increased.
The bank point system is used as a basic system for providing point service for clients in various marketing channels of the bank, and is widely applied to various businesses of the bank. The bank point system comprises a point client number, namely a unique mark of the point system, and the point client number is needed no matter the point account information of the client is inquired or the client does some action account type operations, so that the point client number of the client is inquired through the client credential information, and a concurrent high-frequency business scene is formed.
When the prior method for inquiring the integral client number of the client through the client credential information inquires the integral client number of the client through the credential information for the first time, the credential information and the integral client number of the client are stored in a Redis (remote dictionary service), and all transactions for inquiring the integral client number through the credential information are directly obtained from the Redis in a certain time later.
When the client uses different credential information, the method still needs to search the integrating client number of the client again from the massive credential tables, and quick response cannot be performed, so that the situation needs to be further improved.
Disclosure of Invention
In order to solve the problem that the existing client cannot respond to the integral client number quickly when using different credential information, the application provides a method and a system for responding to the integral client number quickly, which adopts the following technical scheme:
The method for quickly responding to the integral client number is applied to a cache system, the cache system comprises a second-level cache region and a preset credential table, and the method comprises the following steps:
receiving first credential information input by a client, wherein the first credential information comprises a first credential type and a first credential number;
Under the condition that the target point client number corresponding to the first credential information cannot be found in the secondary cache region, the target point client number corresponding to the first credential information is found in a preset credential table, wherein the data volume in the preset credential table is larger than the data volume in the secondary cache region;
Searching the credential information of the target number corresponding to the client name in a preset credential table based on the target point client number;
Splicing the target point client numbers and all the credential information of the target quantity according to a first preset format to obtain splicing information, wherein the splicing information comprises the target point client numbers;
adding the splicing information into the second-level cache information of the second-level cache region;
Responsive to the target point client number.
By adopting the technical scheme, after the client inputs the credential information, the target point client number corresponding to the credential information is searched in the secondary cache, and when the target point client number cannot be found in the secondary cache, the target point client number is searched in the preset credential table; then, on the basis of the method, the target number of credential information under the client name is found in a preset credential table based on the target point client number, the target point client number and all credential information are spliced according to a preset first format to obtain splicing information, the splicing information is added into the second-level cache information of the second-level cache region, through the method, when a subsequent client inputs other credentials, the second-level cache information can be directly found from the second-level cache region, the target point client number is extracted from the second-level cache information, and then a response is fast. Compared with the scheme that in the prior art, after the target integral client number corresponding to the first credential information cannot be found in the Redis (remote dictionary service), the target integral client number can be directly found from the second-level cache region when the client searches later by setting the second-level cache region, so that the time for searching in the preset credential table is saved, and the use efficiency is improved.
Optionally, the cache system further includes a first level cache area, and after the receiving the first credential information input by the client, the cache system further includes:
searching a target integral client number corresponding to the first credential information in a first-level cache region, and directly executing the step of responding to the target integral client number under the condition that the target integral client number is found in the first-level cache region; the first-level cache area stores the credential information input in the latest preset time period and the integral client number corresponding to the response;
and under the condition that the target integral client number cannot be found in the first-level buffer memory area, searching the target integral client number corresponding to the first credential information in the second-level buffer memory area.
By adopting the technical scheme, the first-level cache region, the second-level cache region and the preset credential table are arranged, when the client inputs the first credential type and the first credential number before inputting the first credential information and successfully responding to the integral client number, and inputs the integral client number again in the preset time period, the target integral client number can be directly found in the first-level cache region, so that the response is fast, the user experience is improved, the client is cleaned after the preset time period, and the occupied storage space is reduced.
Optionally, a correspondence between a first-level cache key value and an integral client number is specifically stored in the first-level cache region, where the first-level cache key value is formed by splicing a credential type and a credential number according to a second preset format, and searching for a target integral client number corresponding to the first credential information in the first-level cache region specifically includes:
splicing the first certificate type and the first certificate number according to a second preset format to obtain a spliced first cache key value;
Searching in the first-level cache region based on the first cache key value, acquiring a corresponding target integral client number under the condition that the corresponding first-level cache key value is searched, and directly executing the step of responding to the target integral client number.
By adopting the technical scheme, the first-level cache key value and the integral client number are specifically stored in the first-level cache region, the first-level cache key value is formed by splicing the certificate type and the certificate number according to the second preset format, the first certificate type and the first certificate number are spliced according to the second preset format when searching, the spliced first cache key value is obtained, and then searching is carried out in the first-level cache region. Compared with the mode of directly adopting the voucher number as the index, the application can improve the speed of index by adopting the first-level cache key value formed by splicing the voucher type and the voucher number for index, thereby responding to the integral client number more quickly.
Optionally, a correspondence between a second-level cache key value and second-level cache information is specifically stored in the second-level cache region, where the second-level cache key value is formed by splicing a credential type and a credential number according to a third preset format, and when the target point client number cannot be found in the first-level cache region, the target point client number corresponding to the first credential information is found in the second-level cache region, which specifically includes:
splicing the first certificate type and the first certificate number according to a third preset format to obtain a spliced second cache key value;
searching in a secondary cache region based on the second cache key value, and acquiring secondary cache information corresponding to the secondary cache key value under the condition that the corresponding secondary cache key value is searched;
and extracting the target point client number in the secondary cache information, and executing the step of responding to the target point client number.
By adopting the technical scheme, when the second-level cache key value corresponding to the first cache key value is existed in the second-level cache region, other certificates are input to the subsequent clients, when the target integral client number cannot be found in the first-level cache region, whether the second-level cache key value corresponding to the first cache key value exists in the second-level cache region is firstly found, if so, the second-level cache information corresponding to the second-level cache key value is directly obtained, and the integral client number in the second-level cache information is extracted.
Optionally, when the target point client number cannot be found in the first-level buffer, after the target point client number corresponding to the first credential information is found in the second-level buffer, the method further includes:
And under the condition that the second-level cache region finds the target point client number corresponding to the first credential information, establishing a corresponding relation between the first cache key value and the target point client number, and transmitting the corresponding relation to the first-level cache region.
By adopting the technical scheme, when the target integral client number is not acquired in the first-level cache region, after the target integral client number is acquired in the second-level cache region, the first-level cache region is updated by establishing the corresponding relation between the first cache key value and the target integral client number and transmitting the corresponding relation to the first-level cache region, and when the same credential information is input in a subsequent period of time, the response can be directly obtained from the first-level cache region, so that the response speed is further improved.
Optionally, the searching the credential information of the target number corresponding to the client name in the preset credential table based on the target point client number specifically includes:
and searching the front N section certificate information corresponding to the client name in a preset certificate table based on the target point client number, wherein N < = 20.
By adopting the technical scheme, the front N section certificate information under the client name is searched in the preset certificate table, and the target point client number and the N section certificate information are spliced according to the first preset format to obtain the cache information, so that the target point client number can be quickly searched from the second-level cache region when the client is searched later; only the first 20 section certificate information is searched, so that too much data in the secondary cache is prevented, the quantity of the certificate information under most client names is met, and the target integral client number can be directly obtained with high probability in specific use.
Optionally, the last preset time period is thirty minutes.
Through adopting above-mentioned technical scheme, set up thirty minutes's preset time period, when the customer inputs same voucher information in the short time, can directly find the integral customer number that this voucher information corresponds in first-level buffer memory district to respond fast, improve user's use experience and feel, and clear up after thirty minutes, reduce occupation storage space.
In a second aspect, the present application provides a system for quick response to an integrated client number, comprising:
The receiving module is used for receiving first credential information input by a client, wherein the first credential information comprises a first credential type and a first credential number;
the point client number searching module is used for searching the target point client number corresponding to the first credential information in a preset credential table under the condition that the target point client number corresponding to the first credential information cannot be searched in a second-level cache region, wherein the data volume in the preset credential table is larger than the data volume in the second-level cache region;
the credential information searching module is used for searching the credential information of the corresponding target number under the client name in a preset credential table based on the target point client number;
the splicing module is used for splicing the target point client numbers and all the credential information of the target quantity according to a first preset format to obtain splicing information, wherein the splicing information comprises the target point client numbers;
The adding module is used for adding the splicing information into the second-level cache information of the second-level cache region;
and the response module is used for responding to the target point client number.
In a third aspect, the present application provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of fast responding to an integration client number described above when the computer program is executed.
In a fourth aspect, the present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of quick response integration client number described above.
In summary, the present application includes at least one of the following beneficial technical effects:
1. Compared with the prior art, the method has the advantages that after the target integral client number corresponding to the first credential information is not found in the Redis (remote dictionary service), the scheme of finding in the credential table is adopted, the second-level cache area is arranged, the credential information of the target number under the client name is found in the preset credential table based on the target integral client number, the target integral client number and all credential information are spliced according to the preset first format to obtain spliced information and are added into the second-level cache information of the second-level cache area, so that when a client subsequently finds, the second-level cache information can be directly found from the second-level cache area, the target integral client number is further extracted, the finding time in the preset credential table is saved, and the use efficiency is improved;
2. When searching, the first certificate type and the first certificate number are spliced according to the second preset format to obtain the spliced first cache key value, and then the first cache key value is searched in the first-level cache region;
3. when the target integral client number is not acquired in the first-level cache region, the corresponding relation between the first cache key value and the target integral client number is established after the target integral client number is acquired in the second-level cache region, and the corresponding relation is transferred to the first-level cache region, so that the first-level cache region is updated, and the response can be directly obtained from the first-level cache region when the same credential information is input in a subsequent period of time, so that the response speed is further improved.
Drawings
FIG. 1 is a flow chart of an exemplary method of responding to a customer number for a credit quickly in accordance with an embodiment of the application;
FIG. 2 is a schematic diagram showing an understanding of a quick response integration client number according to an embodiment of the application;
FIG. 3 is another exemplary flow chart of a method of fast responding to a point client number in an embodiment of the application;
FIG. 4 is a block diagram of a system for quick response to a credit client number according to an embodiment of the application;
fig. 5 is an internal structural view of a computer device of the present application.
Detailed Description
The terminology used in the following embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" as used in this disclosure is intended to encompass any or all possible combinations of one or more of the listed items.
The terms "first," "second," and the like, are used below for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature, and in the description of embodiments of the application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In order to facilitate understanding of the technical scheme, the credential information and the bank point system are described below. With the expansion of online banking, identity credential information of customers in banks derives multiple types, such as electronic account numbers, bank core customer numbers, etc., and most customers have multiple types of credential information, plus the large number of customers in banks, which results in particularly large amounts of customer credential data.
The bank point system is a basic system for providing point service for customers in various marketing channels of the bank, and is widely applied to various business of the bank, the bank point system comprises point customer numbers which are unique identifiers of the point system, and the point customer numbers are needed when inquiring point account information of the customers and the customers do some account moving type operations, so that the point customer numbers of the customers are inquired through customer credential information to become a concurrent high-frequency business scene.
In the related art, when the client's point client number is queried through the credential information for the first time, the credential information and the point client number of the client are stored in a Redis (remote dictionary service), and all transactions for querying the point client number through the credential information are directly acquired from the Redis in a certain time later.
Therefore, the application provides a method and a system for quickly responding to the integral client number, which are characterized in that a secondary cache area is arranged, the target integral client number and all credential information are spliced according to a preset first format to obtain the secondary cache information and are stored in the secondary cache area, so that when a client searches subsequently, the secondary cache information can be directly searched from the secondary cache area, the target integral client number is extracted, the searching time in a preset credential table is saved, and the use efficiency is improved.
Referring to fig. 1, fig. 1 is a flowchart of an exemplary method for quick response to a customer number for a credit in accordance with an embodiment of the application.
A method for quick response of integral client number is applied to a cache system, the cache system comprises a second-level cache area and a preset credential table, the method comprises the following steps:
S110, receiving first credential information input by a client.
The identity credential information of the client in the bank comprises a plurality of types, such as an electronic account number, a bank core client number and the like, and the first credential information can be any one of the plurality of types of identity credential information; the credential information includes a credential type and a credential number, and thus the first credential information also includes a first credential type and a first credential number, e.g., the credential type is an electronic account number, credited as a01, and the credential number is 1001.
S120, under the condition that the target integral number corresponding to the first credential information cannot be found in the secondary cache region, the target integral client number corresponding to the first credential information is found in a preset credential table.
All the credential information of a plurality of clients and corresponding integral client numbers are stored in the preset credential table, part of credential information and corresponding integral client numbers are stored in the secondary cache region, and the data volume in the preset credential table is larger than the data volume in the secondary cache region.
S130, searching the credential information of the target number corresponding to the client name in a preset credential table based on the target point client number.
After step S110 and step S120 are completed, the system has obtained the target point client number corresponding to the credential information, and the corresponding relationship between the other credential information of the client and the target point client number is stored in the credential table, so that the other credential information under the client name can be searched based on the target point client number, where the target number may be all credential information under the client name or some credential information.
And S140, splicing the target point client numbers and all the credential information of the target quantity according to a first preset format to obtain splicing information, wherein the splicing information comprises the target point client numbers.
The first preset format may have various manners, and may be spliced by using a character string, a symbol, a number, or the like as a separator. In this embodiment, the splicing is performed according to the first preset format, specifically in the form "=integral client number-credential type 1+credential number 1-credential type 2+credential number 2 … =". It can be understood that in this embodiment, in the splicing information, the forefront is the integral client number, each credential type is connected with the corresponding credential number by the symbol "+", and the integral client number is connected with the credential information, and each credential information is connected by the symbol "-".
And S150, adding the splicing information into the second-level cache information of the second-level cache region.
After the splicing information is obtained, the splicing information is added into the secondary cache information of the secondary cache region, and the secondary cache information in the secondary cache region is updated, so that when the first credential information is subsequently input, the corresponding secondary cache information can be directly obtained from the secondary cache region, and the target integral client number is extracted from the secondary cache information.
S160, responding to the target point client number.
Optionally, in some embodiments, in step S130, the first N section pieces of certificate information under the client name are looked up based on the target client number, where N < = 20. In the embodiment, n=20 is taken, and the target integral client number and the N section certificate information are spliced according to the first preset format to obtain splicing information, so that the target integral client number can be quickly found out from the secondary cache area when the client is searched later; only the first 20 section certificate information is searched, so that too much data in the secondary cache is prevented, the quantity of the certificate information under most client names is met, and the target integral client number can be directly obtained with high probability in specific use.
The embodiment mode of the embodiment of the application is as follows: after the client inputs the credential information, searching a target point client number corresponding to the credential information in a secondary cache area, searching in a preset credential table when the target point client number cannot be found in the secondary cache area, and responding to the target client number; then, on the basis of the method, the target quantity of credential information under the client name is found in a preset credential table based on the target point client number, the target point client number and all credential information are spliced according to a preset first format to obtain splicing information, the splicing information is added into the second-level cache information of the second-level cache region, and the second-level cache information is updated.
Through the method, when the subsequent client inputs other certificates, the corresponding secondary cache information can be directly searched from the secondary cache region, the target integral client number is extracted from the secondary cache information, and then the response is fast.
For ease of understanding, reference is made to FIG. 2, which is a schematic diagram of an understanding of a quick response integration client number in accordance with an embodiment of the application. For example, the original data of the second-level cache information in the second-level cache area is "= 3589485-hcno+2001-a01+2002-c01+2003=", the client needs to obtain the integral client number with the credential type of HCNO and the credential number of 1001, and after the client inputs the credential type and the credential number, the client cannot find the corresponding integral client number in the second-level cache area, and obtains the integral client number with the credential type of HCNO and the credential number of 1001 by searching in a preset credential table.
The system searches in a preset credential table based on the integral client number 123456 to obtain other credential information under the client name, including credential information with credential type A01 and credential number 1002, and credential information with credential type C01 and credential number 1003, and splices according to a first preset format to form splicing information "= 1234564-HCNO+1001-A01+1002-C01+1003="; then, the splicing information is added to the second-level cache information, for example, if the data in the second-level cache information in the second-level cache area is "= 3589485-hcno+2001-a01+2002-c01+2003=", after the addition, the data in the second-level cache information is "= 3589485-hcno+2001-a01+2002-c01+2003= = 1234564-hcno+1001-a01+1002-c01+1003=", and then when the client inputs any one credential information of the credential type HCNO and the credential number 1001, the credential type a01 and the credential number 1002, the credential type C01 and the credential number 1003, for example, when the credential type a01 and the credential number 1002 are input, the corresponding credential information can be searched from the second-level cache information, and the point client number corresponding to the credential information is determined to exist in the second-level cache information, so that the point client number is directly extracted from the second-level cache information.
Compared with the scheme that in the related art, after the target integral client number corresponding to the first credential information cannot be found in the Redis (remote dictionary service), the target integral client number can be directly found from the second-level cache region when the client searches later by setting the second-level cache region, so that the time for searching in the preset credential table is saved, and the use efficiency is improved.
Referring to fig. 3, another exemplary flow chart of a method for integrating customer numbers in a fast response is shown in an embodiment of the application.
The method for quickly responding to the integral client number is applied to a cache system, the cache system comprises a first-level cache region, a second-level cache region and a preset credential table, and the method comprises the following steps:
s310, receiving first credential information input by a client.
S320, searching a target point client number corresponding to the first certificate information in the first-level cache region, and directly executing the step of responding to the target point client number under the condition that the target point client number is found in the first-level cache region.
Specifically, S320 includes:
S321, splicing the first certificate type and the first certificate number according to a second preset format to obtain a spliced first cache key value;
The first-level cache area stores the credential information input in the latest preset time period and the integral client number corresponding to the response. Specifically, in this embodiment, a corresponding relationship between a first-level cache key value and an integral client number is stored in the first-level cache region, where the first-level cache key value is formed by splicing a credential type and a credential number according to a second preset format, and a character string, a symbol, a number, and the like can be used as separators for splicing.
S322, searching in the first-level cache region based on the first cache key value.
And under the condition that the corresponding first-level cache key value is found, directly executing the step of responding to the target integral client number.
Specifically, the latest preset time period is thirty minutes, and by setting the thirty-minute preset time period, when the client inputs the same credential information in a short time, the integral client number corresponding to the credential information can be directly found in the first-level cache region, so that the response is fast, the user experience is improved, the user experience is cleaned after thirty minutes, and the occupied storage space is reduced.
S330, under the condition that the target integral client number cannot be found in the first-level buffer, the corresponding target integral client number is found in the second-level buffer.
Specifically, S330 includes:
S331, splicing the first certificate type and the first certificate number according to a third preset format to obtain a spliced second cache key value;
the second level buffer area stores a corresponding relation between a second level buffer key value and second level buffer information, wherein the second level buffer key value is formed by splicing a certificate type and a certificate number according to a third preset format, and character strings, symbols, numbers and the like can be adopted as separators for splicing.
S332, searching in the secondary cache area based on the second cache key value.
And under the condition that the corresponding secondary cache key value is found, obtaining secondary cache information corresponding to the secondary cache key value.
Specifically, in this embodiment, each type of credential is a combination of letters and arabic numerals, and each type of credential is a combination of arabic numerals. Therefore, when searching in the secondary cache area based on the second cache key value, the regular expression "= [ a-Za-z0-9] (- [ a-Za-z0-9] + ] [0-9] + ] (credential number) (- [ a-Za-z0-9] + ] [0-9 ]) may be adopted to match, and determine whether the secondary cache information contains the credential information.
S333, judging whether the target integral client number exists in the second-level cache information.
If so, S334 is performed.
S334, extracting the target integral client number in the second-level cache information.
Wherein the step of responding to the target point client number is directly performed in the case that the target point client number is extracted. After the second-level cache information corresponding to the second-level cache key value is obtained, splitting is performed according to a "-" sign, and then the first value after splitting is the integral client number, for example, in fig. 2, when the credential type HCNO and the credential number 1001 are input subsequently, a regular expression "= [ a-Za-z0-9] (- [ a-Za-z0-9] (+ [0-9 ]) and- (HCNO) [ + ] (1001) ([ - [ a-Za-z0-9] + ] [0-9 ])) =", the result that can be matched is "= 1234564-hcno+1001-a01+1002-c01+1003=", and then the integral client number obtained by splitting according to the "-" sign is "1234564".
Alternatively, in some embodiments, the target point client number is not present in the secondary cache information. Steps S410-S450 are performed, and steps S410-S450 are similar to steps S120-S160, and are not described herein.
In case that the target point client number corresponding to the first credential information is found in the secondary cache, S340 is performed.
S340, establishing a corresponding relation between the first cache key value and the target integral client number, and transmitting the corresponding relation to the first-level cache region.
When the target integral client number is not acquired in the first-level cache region, after the target integral client number is acquired in the second-level cache region, the corresponding relation between the first cache key value and the target integral client number is established and transmitted to the first-level cache region, so that the first-level cache region is updated, and when the same credential information is input in a subsequent period of time, the response can be directly obtained from the first-level cache region, and the response speed is further improved.
Specifically, the first cache key value and the integral client number are put into a first-level cache area in the form of key-value. And directly returning the integral client number from the first-level buffer area when inquiring next time.
If the target integral number corresponding to the first credential information cannot be found in the second-level buffer, step S350 is executed.
S350, searching a target point client number corresponding to the first credential information in a preset credential table.
S360, searching the credential information of the target number corresponding to the client name in a preset credential table based on the target point client number.
And S370, splicing the target integral client number and all the credential information of the target quantity according to a first preset format to obtain splicing information.
And the splicing information comprises a target integral client number.
And S380, adding the splicing information into the second-level cache information of the second-level cache region.
S390, responding to the target point client number.
In the above embodiment, by setting the first-level buffer, the second-level buffer and the preset credential table, when the client inputs the first credential type and the first credential number before and inputs the first credential information again in the preset time period after successfully responding to the integration client number, the target integration client number can be directly found in the first-level buffer, so that the response is fast, the user experience is improved, and the client is cleaned after the preset time period, so that the occupied storage space is reduced. When the target integral client number cannot be found in the first-level cache region, searching in the second-level cache region, then establishing a corresponding relation between the first cache key value and the target integral client number, and transmitting the corresponding relation to the first-level cache region; when the target integral client number cannot be found in the secondary cache region, searching from a preset certificate table, then splicing the target integral client number and all the certificate information according to a preset first format to obtain splicing information, and adding the splicing information into the secondary cache information, so that the integral client number of the client can be responded more quickly in the subsequent searching process.
In a second aspect, the present application provides a system for quick response to a customer number, and the system for quick response to a customer number of the present application is described below in conjunction with the method for quick response to a customer number of the present application. Referring to fig. 4, fig. 4 is a schematic block diagram of a system for fast responding to a point client number according to an embodiment of the present application.
A system for quick response to a point client number, comprising:
A receiving module 410, configured to receive first credential information input by a client, where the first credential information includes a first credential type and a first credential number;
The point client number searching module 420 is configured to search, in a preset credential table, for a target point client number corresponding to the first credential information and respond if the target point client number corresponding to the first credential information cannot be found in the second-level buffer, where the data size in the preset credential table is greater than the data size in the second-level buffer;
The credential information searching module 430 is configured to search, in a preset credential table, credential information of a target number corresponding to the client name based on the target point client number;
The splicing module 440 is configured to splice the target point client number and all credential information of the target number according to a first preset format to obtain splice information, where the splice information includes the target point client number;
An adding module 450, configured to add the splicing information to the second-level cache information of the second-level cache region;
a response module 460 for responding to the target point client number.
Optionally, in some embodiments, the system further comprises:
The first-level cache area searching module 470 is configured to search a first-level cache area for a target point client number corresponding to the first credential information, and respond to the target point client number if the target point client number is found in the first-level cache area.
And the second-level buffer searching module 480 is configured to search the second-level buffer for the target point client number corresponding to the first credential information if the target point client number cannot be found in the first-level buffer.
In one embodiment, the present application provides a computer device, which may be a server, whose internal structure may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of fast responding to an integrated client number.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
The above embodiments are not intended to limit the scope of the present application, so: all equivalent changes in structure, shape and principle of the application should be covered in the scope of protection of the application.

Claims (9)

1. The method for quickly responding to the integral client number is applied to a cache system, and the cache system comprises a first-level cache area, a second-level cache area and a preset certificate table, and is characterized by comprising the following steps:
receiving first credential information input by a client, wherein the first credential information comprises a first credential type and a first credential number;
Searching a target integral client number corresponding to the first credential information in a first-level cache region, and directly executing a step of responding to the target integral client number under the condition that the target integral client number is found in the first-level cache region; the first-level cache area stores the credential information input in the latest preset time period and the integral client number corresponding to the response;
under the condition that the target integral client number cannot be found in the first-level buffer memory area, searching the target integral client number corresponding to the first credential information in the second-level buffer memory area;
Under the condition that the target point client number corresponding to the first credential information cannot be found in the secondary cache region, the target point client number corresponding to the first credential information is found in a preset credential table, wherein the data volume in the preset credential table is larger than the data volume in the secondary cache region;
Searching the credential information of the target number corresponding to the client name in a preset credential table based on the target point client number;
splicing the target point client number and all the credential information of the target number according to a first preset format to obtain splicing information, wherein the splicing information comprises the target point client number, each credential type and the credential number corresponding to each credential type;
adding the splicing information into the second-level cache information of the second-level cache region;
Responsive to the target point client number.
2. The method of claim 1, wherein a correspondence between a first-level cache key value and an integral client number is specifically stored in the first-level cache region, wherein the first-level cache key value is formed by splicing a credential type and a credential number according to a second preset format, and the searching for the target integral client number corresponding to the first credential information in the first-level cache region specifically includes:
splicing the first certificate type and the first certificate number according to a second preset format to obtain a spliced first cache key value;
Searching in the first-level cache region based on the first cache key value, acquiring a corresponding target integral client number under the condition that the corresponding first-level cache key value is searched, and directly executing the step of responding to the target integral client number.
3. The method of claim 2, wherein a correspondence between a second-level cache key value and second-level cache information is specifically stored in the second-level cache region, wherein the second-level cache key value is formed by splicing a credential type and a credential number according to a third preset format, and when the target point client number cannot be found in the first-level cache region, the target point client number corresponding to the first credential information is found in the second-level cache region, and specifically includes:
splicing the first certificate type and the first certificate number according to a third preset format to obtain a spliced second cache key value;
searching in a secondary cache region based on the second cache key value, and acquiring secondary cache information corresponding to the secondary cache key value under the condition that the corresponding secondary cache key value is searched;
and extracting the target point client number in the secondary cache information, and executing the step of responding to the target point client number.
4. The method of claim 1, wherein, when the target point client number cannot be found in the first-level buffer, after searching the target point client number corresponding to the first credential information in the second-level buffer, further comprising:
And under the condition that the second-level cache region finds the target point client number corresponding to the first credential information, establishing a corresponding relation between a first cache key value and the target point client number, and transmitting the corresponding relation to the first-level cache region.
5. The method for quickly responding to the point client number according to any one of claims 1, wherein the searching the preset credential table for the credential information of the target number corresponding to the client name based on the target point client number specifically includes:
and searching the front N section certificate information corresponding to the client name in a preset certificate table based on the target point client number, wherein N < = 20.
6. The method of claim 1, wherein the most recent preset time period is thirty minutes.
7. A system for quick response to a point client number, comprising:
The receiving module is used for receiving first credential information input by a client, wherein the first credential information comprises a first credential type and a first credential number;
The integral client number searching module is used for searching a target integral client number corresponding to the first credential information in the first-level buffer area, and directly executing the step of responding to the target integral client number under the condition that the target integral client number is found in the first-level buffer area; the first-level cache area stores the credential information input in the latest preset time period and the integral client number corresponding to the response; under the condition that the target integral client number cannot be found in the first-level buffer memory area, searching the target integral client number corresponding to the first credential information in the second-level buffer memory area; under the condition that the target point client number corresponding to the first credential information cannot be found in the secondary cache region, the target point client number corresponding to the first credential information is found in a preset credential table, wherein the data volume in the preset credential table is larger than the data volume in the secondary cache region;
the credential information searching module is used for searching the credential information of the corresponding target number under the client name in a preset credential table based on the target point client number;
The splicing module is used for splicing the target point client number and all the credential information of the target number according to a first preset format to obtain splicing information, wherein the splicing information comprises the target point client number, each credential type and the credential number corresponding to each credential type;
The adding module is used for adding the splicing information into the second-level cache information of the second-level cache region;
and the response module is used for responding to the target point client number.
8. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized by: the processor, when executing the computer program, implements the steps of the method of fast responding to a point client number of any one of claims 1-6.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the method of fast response integration client number of any one of claims 1-6.
CN202310264031.7A 2023-03-18 2023-03-18 Method and system for quick response of integral client number Active CN116401274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310264031.7A CN116401274B (en) 2023-03-18 2023-03-18 Method and system for quick response of integral client number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310264031.7A CN116401274B (en) 2023-03-18 2023-03-18 Method and system for quick response of integral client number

Publications (2)

Publication Number Publication Date
CN116401274A CN116401274A (en) 2023-07-07
CN116401274B true CN116401274B (en) 2024-05-14

Family

ID=87015087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310264031.7A Active CN116401274B (en) 2023-03-18 2023-03-18 Method and system for quick response of integral client number

Country Status (1)

Country Link
CN (1) CN116401274B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003233744A (en) * 2002-02-08 2003-08-22 Nec Soft Ltd Point card system and information acquiring method in point card system
CN105320676A (en) * 2014-07-04 2016-02-10 中国移动通信集团黑龙江有限公司 Customer data query service method and device
CN105378776A (en) * 2013-02-26 2016-03-02 维萨国际服务协会 Methods and systems for providing payment credentials
CN105719139A (en) * 2016-01-20 2016-06-29 李政德 Mobile fusion electronic payment method adopting participation of electronic vouchers in consumption payment
CN110597739A (en) * 2019-06-03 2019-12-20 上海云盾信息技术有限公司 Configuration management method, system and equipment
CN114116827A (en) * 2022-01-28 2022-03-01 北京华品博睿网络技术有限公司 Query system and method for user portrait data
CN114691742A (en) * 2022-04-01 2022-07-01 中国建设银行股份有限公司 Information processing method, device, equipment and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11721176B2 (en) * 2015-01-18 2023-08-08 Blackhawk Network, Inc. Mobile point of sale application for redemption of game winnings

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003233744A (en) * 2002-02-08 2003-08-22 Nec Soft Ltd Point card system and information acquiring method in point card system
CN105378776A (en) * 2013-02-26 2016-03-02 维萨国际服务协会 Methods and systems for providing payment credentials
CN105320676A (en) * 2014-07-04 2016-02-10 中国移动通信集团黑龙江有限公司 Customer data query service method and device
CN105719139A (en) * 2016-01-20 2016-06-29 李政德 Mobile fusion electronic payment method adopting participation of electronic vouchers in consumption payment
CN110597739A (en) * 2019-06-03 2019-12-20 上海云盾信息技术有限公司 Configuration management method, system and equipment
CN114116827A (en) * 2022-01-28 2022-03-01 北京华品博睿网络技术有限公司 Query system and method for user portrait data
CN114691742A (en) * 2022-04-01 2022-07-01 中国建设银行股份有限公司 Information processing method, device, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"E-Voucher System Development for Social Assistance with Blockchain Technology";Juniardi Akbar等;《2021 International Conference on ICT for Smart Society (ICISS)》;20210913;第1-4页 *
"基于Android的亲子社交分享平台的设计与实现";周瑶;《移动通信》;20151231;第73-76页 *

Also Published As

Publication number Publication date
CN116401274A (en) 2023-07-07

Similar Documents

Publication Publication Date Title
CN106326361B (en) Data query method and device based on HBase database
US11972228B2 (en) Merging database tables by classifying comparison signatures
CN110162637B (en) Information map construction method, device and equipment
CN106202416A (en) Table data write method and device, table data read method and device
CN111125118B (en) Associated data query method, device, equipment and medium
CN111625638A (en) Question processing method, device and equipment and readable storage medium
CN110222015B (en) File data reading and querying method and device and readable storage medium
CN111831682A (en) Method, device, equipment and computer readable medium for processing accumulation fund service
CN114398520A (en) Data retrieval method, system, device, electronic equipment and storage medium
CN116401274B (en) Method and system for quick response of integral client number
CN111913977B (en) Data processing method, device and medium
CN115495457A (en) Data processing system, device and storage medium based on single machine vector database
CN110781375A (en) User state identification determining method and device
CN115328898A (en) Data processing method and device, electronic equipment and medium
CN112416626B (en) Data processing method and device
CN117009430A (en) Data management method, device, storage medium and electronic equipment
CN110363515B (en) Rights and interests card account information inquiry method, system, server and readable storage medium
CN111708935A (en) Multi-node word segmentation system and method for keyword search
CN111159112B (en) Data processing method and system
CN113609130B (en) Method, device, electronic equipment and storage medium for acquiring gateway access data
CN109657108A (en) A kind of storage of domain name asset data and querying method and system
CN114513558B (en) User request processing method and device
CN114519090B (en) Method and device for managing stop words and electronic equipment
CN111507783B (en) Electronic bill pushing method and device, blockchain node equipment and storage medium
CN109977176B (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant