CN108833495A - Data cache method, equipment and the computer readable storage medium of user's request - Google Patents

Data cache method, equipment and the computer readable storage medium of user's request Download PDF

Info

Publication number
CN108833495A
CN108833495A CN201810510851.9A CN201810510851A CN108833495A CN 108833495 A CN108833495 A CN 108833495A CN 201810510851 A CN201810510851 A CN 201810510851A CN 108833495 A CN108833495 A CN 108833495A
Authority
CN
China
Prior art keywords
caching
user
response data
mapping relations
function
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
CN201810510851.9A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201810510851.9A priority Critical patent/CN108833495A/en
Publication of CN108833495A publication Critical patent/CN108833495A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Abstract

The invention discloses a kind of data cache methods of user request, including:The first parameter information carried is requested based on the user received, the first response data for calling the user that corresponding function is requested to obtain is fed back through, and the first caching mapping relations of first parameter information and first response data are set in preset caching;When receiving the user for carrying first parameter information request again, according to the first caching mapping relations in the caching, first response data is fed back.The invention also discloses the data buffering devices and computer readable storage medium of a kind of user request, by implementing above scheme, the response efficiency that server requests user can be effectively improved, the user for effectively increasing server requests the feedback speed of corresponding response data.

Description

Data cache method, equipment and the computer readable storage medium of user's request
Technical field
The present invention relates to data cache method, equipment and meters that field of computer technology more particularly to a kind of user are requested Calculation machine readable storage medium storing program for executing.
Background technique
With the fast development of Internet technology, the quantity for user's request that terminal to server proposes is increasing.Cause This is in the case where server receives a large number of users request, the speed for the response data that server is requested to terminal feedback user Slowly, the response efficiency of server reduces, and seriously affects the response data that terminal normally obtains user's request.
Summary of the invention
It is a primary object of the present invention to propose a kind of data cache method of user's request, equipment and computer-readable deposit Storage media, it is intended to solve in the prior art in the case where server receives a large number of users request, the response efficiency of server Reduced defect.
To achieve the above object, the data cache method of a kind of user's request provided by the invention, including:
The first parameter information carried is requested based on the user received, is fed back through and is called user's request corresponding The first response data that function obtains, and first parameter information and first response data are set in preset caching First caching mapping relations;
When receiving the user for carrying first parameter information request again, according to described first in the caching Mapping relations are cached, first response data is fed back.
Optionally, it is arranged the first of first parameter information and first response data in preset caching described After caching mapping relations, the method also includes:
When detecting that the function is changed based on the first response data that first parameter information obtains, in institute It states and deletes the first caching mapping relations in caching.
Optionally, first parameter information includes:The user requests corresponding function identification and user request Corresponding function parameter value.
Optionally, multiple the second parameter informations comprising the function identification are provided in the caching, with the letter Base is in the case where the second caching mapping relations of the second response data that second parameter information obtains, and the method is also Including:
The identity map relationship of the function identification and the second caching mapping relations is set in the caching;
When detecting that the function is changed based on the response data that any function parameter value obtains, based on described Identity map relationship deletes the second caching mapping relations in the caching.
Optionally, multiple third parameter letters comprising the function identification and setup parameter value are provided in the caching The case where breath, the third of the third response data obtained with the function based on the third party system caches mapping relations Under, the method also includes:
The parameter mapping relations of third party system and third caching mapping relations are set in the caching;
When detect the function based on any group include the setup parameter value function parameter value, obtained number of responses When according to changing, mapping relations, delete the third caching mapping relations in the caching based on the parameter.
In addition, to achieve the above object, the present invention also proposes a kind of data buffering device of user's request, the user is asked The data buffering device asked includes processor and memory;
The processor is used to execute the data buffer storage program of the user's request stored in memory, to realize following step Suddenly:
The first parameter information carried is requested based on the user received, is fed back through and is called user's request corresponding The first response data that function obtains, and first parameter information and first response data are set in preset caching First caching mapping relations;
When receiving the user for carrying first parameter information request again, according to described first in the caching Mapping relations are cached, first response data is fed back.
Optionally, it is arranged the first of first parameter information and first response data in preset caching described After caching mapping relations, the processor is also used to execute the data buffer storage program of user's request, to realize following step Suddenly:
When detecting that the function is changed based on the first response data that first parameter information obtains, in institute It states and deletes the first caching mapping relations in caching.
Optionally, first parameter information includes:The user requests corresponding function identification and user request Corresponding function parameter value.
Optionally, multiple the second parameter informations comprising the function identification are provided in the caching, with the letter Base is in the case where the second caching mapping relations of the second response data that second parameter information obtains, and the method is also Including:
The identity map relationship of the function identification and the second caching mapping relations is set in the caching;
When detecting that the function is changed based on the response data that any function parameter value obtains, based on described Identity map relationship deletes the second caching mapping relations in the caching.
Optionally, multiple third parameter letters comprising the function identification and setup parameter value are provided in the caching The case where breath, the third of the third response data obtained with the function based on the third party system caches mapping relations Under, the method also includes:
The parameter mapping relations of third party system and third caching mapping relations are set in the caching;
When detect the function based on any group include the setup parameter value function parameter value, obtained number of responses When according to changing, mapping relations, delete the third caching mapping relations in the caching based on the parameter.
In addition, to achieve the above object, the present invention also proposes a kind of computer readable storage medium, described computer-readable Storage medium is stored with one or more program, and one or more of programs can be held by one or more processor The step of row, data cache method to realize above-mentioned user's request.
Data cache method, equipment and the computer readable storage medium of a kind of user's request proposed by the present invention, can The response efficiency that server requests user is effectively improved, the user for effectively increasing server requests corresponding response data Feedback speed.
Detailed description of the invention
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment one to realize the present invention;
Fig. 2 optional communications network system architecture diagram of each embodiment one to realize the present invention;
Fig. 3 is the data cache method flow chart that the user of first embodiment of the invention requests;
Fig. 4 is the data cache method flow chart that the user of second embodiment of the invention requests;
Fig. 5 is the data cache method flow chart that the user of third embodiment of the invention requests;
Fig. 6 is the data buffering device structural schematic diagram of user's request of the 4th to the 5th embodiment of the invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Moving terminal 100 may include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
First embodiment of the invention, a kind of data cache method of user's request, as shown in figure 3, including walking in detail below Suddenly:
Step S101 requests the first parameter information carried based on the user received, feds back through and calls user's request The first response data that corresponding function obtains, and the of the first parameter information and the first response data is arranged in preset caching One caching mapping relations.
Optionally, the first parameter information includes but is not limited to:The user requests corresponding function identification and user request The parameter informations such as corresponding function parameter value.
Optionally, step S101 is specifically included:
Receive the user's request for carrying the first parameter information;Wherein, the first parameter information includes:User request is corresponding Function identification and the user request the parameter informations such as corresponding function parameter value;
Corresponding function identification is requested based on the user, calls the user to request corresponding function, and asked according to the user Corresponding function parameter value is sought, the first response data of function return is obtained;
First response data is fed back, and is arranged in preset caching the of the first parameter information and first response data One caching mapping relations.
In the present embodiment, it requests the quantity of corresponding function parameter value to be not specifically limited the user, can be one It is a, it is also possible to multiple.
In the present embodiment, user's request is the request of data that terminal to server is sent.
In the present embodiment, the first parameter information is set in preset caching and the first caching of first response data reflects The mode for penetrating relationship includes but is not limited to:
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations, wherein key is the first parameter information, and the corresponding value of key is the response data.
Such as:Step S101, including:
The first parameter information carried is requested based on the user received, feds back through and user is called to request corresponding function The first obtained response data;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm, And the user requests two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) Parameter value:Game, PageNo (page) parameter value:2.
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
For another example, step S101, including:
Receive the user's request for carrying the first parameter information;Wherein, the first parameter information includes:User request is corresponding Function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values point It Wei not Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2;
Corresponding function identification SearchForm is requested based on the user, the user is called to request corresponding function SearchForm, and corresponding two function parameter values are requested according to the user, obtain the first of function SearchForm return Response data feeds back first response data;
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
Step S102 is slow according to first in caching when receiving the user for carrying the first parameter information request again Deposit mapping relations, corresponding first response data of the first parameter information of feedback.
Such as:Step S102, including:
When receiving the user for carrying the first parameter information request again, closed according to the first caching mapping in caching System, corresponding first response data of the first parameter information of feedback, wherein the first parameter information includes:The user requests to correspond to Function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values Respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
By being closed according to the first caching mapping for storing the first parameter information and first response data in preset caching It is feedback response data, avoids and receive the user's request for carrying the first parameter information again, fed back through and user is called to ask The first response data that corresponding function obtains is sought, processing speed and processing that server receives user's request are greatly improved Efficiency effectively increases the response data feedback speed in the case that server receives a large number of users request.
The data cache method of the request of user described in first embodiment of the invention, can effectively improve server to user The response efficiency of request, the user for effectively increasing server request the feedback speed of corresponding response data.
Second embodiment of the invention, a kind of data cache method of user's request, as shown in figure 4, including walking in detail below Suddenly:
Step S201 requests the first parameter information carried based on the user received, feds back through and calls user's request The first response data that corresponding function obtains, and the of the first parameter information and the first response data is arranged in preset caching One caching mapping relations.
Optionally, the first parameter information includes but is not limited to:The user requests corresponding function identification and user request The parameter informations such as corresponding function parameter value.
Optionally, step S201 is specifically included:
Receive the user's request for carrying the first parameter information;Wherein, the first parameter information includes:User request is corresponding Function identification and the user request the parameter informations such as corresponding function parameter value;
Corresponding function identification is requested based on the user, calls the user to request corresponding function, and asked according to the user Corresponding function parameter value is sought, the first response data of function return is obtained;
First response data is fed back, and is arranged in preset caching the of the first parameter information and first response data One caching mapping relations.
In the present embodiment, it requests the quantity of corresponding function parameter value to be not specifically limited the user, can be one It is a, it is also possible to multiple.
In the present embodiment, user's request is the request of data that terminal to server is sent.
In the present embodiment, the first parameter information is set in preset caching and the first caching of first response data reflects The mode for penetrating relationship includes but is not limited to:
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations, wherein key is the first parameter information, and the corresponding value of key is the response data.
Such as:Step S201, including:
The first parameter information carried is requested based on the user received, feds back through and user is called to request corresponding function The first obtained response data;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm, And the user requests two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) Parameter value:Game, PageNo (page) parameter value:2.
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
For another example, step S201, including:
Receive the user's request for carrying the first parameter information;Wherein, the first parameter information includes:User request is corresponding Function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values point It Wei not Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2;
Corresponding function identification SearchForm is requested based on the user, the user is called to request corresponding function SearchForm, and corresponding two function parameter values are requested according to the user, obtain the first of function SearchForm return Response data feeds back first response data;
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
Step S202 is slow according to first in caching when receiving the user for carrying the first parameter information request again Deposit mapping relations, corresponding first response data of the first parameter information of feedback.
Such as:Step S202, including:
When receiving the user for carrying the first parameter information request again, closed according to the first caching mapping in caching System, corresponding first response data of the first parameter information of feedback, wherein the first parameter information includes:The user requests to correspond to Function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values Respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
By being closed according to the first caching mapping for storing the first parameter information and first response data in preset caching It is feedback response data, avoids and receive the user's request for carrying the first parameter information again, fed back through and user is called to ask The first response data that corresponding function obtains is sought, processing speed and processing that server receives user's request are greatly improved Efficiency effectively increases the response data feedback speed in the case that server receives a large number of users request.
Step S203, when detecting that the function is changed based on the response data that the first parameter information obtains, slow Deposit middle the first caching of deletion mapping relations.
For example, step S203, including:
When detecting that the function is changed based on the response data that the first parameter information obtains, is deleted in the buffer One caching mapping relations;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm, and should User requests two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) parameter Value:Game, PageNo (page) parameter value:2.
In the present embodiment, the response data which is obtained based on the first parameter information changes, including but unlimited In:
Since function is modified, the response data for causing the function to be obtained based on the first parameter information is changed;
Alternatively, since the corresponding database of function is modified, the response for causing the function to obtain based on the first parameter information Data change.
The response data that function caused by due to function is modified or the corresponding database of function is modified etc. returns Change, in the buffer delete first caching mapping relations, avoid the response data of feedback error, improve user request The precision of response data.
The data cache method of the request of user described in second embodiment of the invention, can effectively improve server to user The response efficiency of request, the user for effectively increasing server request the feedback speed of corresponding response data.
Third embodiment of the invention, a kind of data cache method of user's request, as shown in figure 5, including walking in detail below Suddenly:
Step S301 requests the first parameter information carried based on the user received, feds back through and calls user's request The first response data that corresponding function obtains, and the of the first parameter information and the first response data is arranged in preset caching One caching mapping relations.
Optionally, the first parameter information includes but is not limited to:The user requests corresponding function identification and user request The parameter informations such as corresponding function parameter value.
Optionally, step S301 is specifically included:
Receive the user's request for carrying the first parameter information;Wherein, the first parameter information includes:User request is corresponding Function identification and the user request the parameter informations such as corresponding function parameter value;
Corresponding function identification is requested based on the user, calls the user to request corresponding function, and asked according to the user Corresponding function parameter value is sought, the first response data of function return is obtained;
First response data is fed back, and is arranged in preset caching the of the first parameter information and first response data One caching mapping relations.
In the present embodiment, it requests the quantity of corresponding function parameter value to be not specifically limited the user, can be one It is a, it is also possible to multiple.
In the present embodiment, user's request is the request of data that terminal to server is sent.
In the present embodiment, the first parameter information is set in preset caching and the first caching of first response data reflects The mode for penetrating relationship includes but is not limited to:
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations, wherein key is the first parameter information, and the corresponding value of key is the response data.
Such as:Step S301, including:
The first parameter information carried is requested based on the user received, feds back through and user is called to request corresponding function The first obtained response data;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm, And the user requests two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) Parameter value:Game, PageNo (page) parameter value:2.
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
For another example, step S301, including:
Receive the user's request for carrying the first parameter information;Wherein, the first parameter information includes:User request is corresponding Function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values point It Wei not Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2;
Corresponding function identification SearchForm is requested based on the user, the user is called to request corresponding function SearchForm, and corresponding two function parameter values are requested according to the user, obtain the first of function SearchForm return Response data feeds back first response data;
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
Step S302 is slow according to first in caching when receiving the user for carrying the first parameter information request again Deposit mapping relations, corresponding first response data of the first parameter information of feedback.
Such as:Step S302, including:
When receiving the user for carrying the first parameter information request again, closed according to the first caching mapping in caching System, corresponding first response data of the first parameter information of feedback, wherein the first parameter information includes:The user requests to correspond to Function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values Respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
By being closed according to the first caching mapping for storing the first parameter information and first response data in preset caching It is feedback response data, avoids and receive the user's request for carrying the first parameter information again, fed back through and user is called to ask The first response data that corresponding function obtains is sought, processing speed and processing that server receives user's request are greatly improved Efficiency effectively increases the response data feedback speed in the case that server receives a large number of users request.
Step S303, when detecting that the function is changed based on the response data that the first parameter information obtains, slow Deposit middle the first caching of deletion mapping relations.
For example, step S303, including:
When detecting that the function is changed based on the response data that the first parameter information obtains, is deleted in the buffer One caching mapping relations;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm, and should User requests two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) parameter Value:Game, PageNo (page) parameter value:2.
In the present embodiment, the response data which is obtained based on the first parameter information changes, including but unlimited In:
Since function is modified, the response data for causing the function to be obtained based on the first parameter information is changed;
Alternatively, since the corresponding database of function is modified, the response for causing the function to obtain based on the first parameter information Data change.
Step S304, is provided with multiple the second parameter informations comprising function identification in the buffer, and and function is based on second In the case where second caching mapping relations of the second response data that parameter information obtains, function identification and the is set in the buffer The identity map relationship of two caching mapping relations;When the response data for detecting that function is obtained based on any function parameter value is sent out When raw change, it is based on identity map relationship, deletes the second caching mapping relations in the buffer.
For example, step S304, including:
Second caching mapping relations of key-value pair format there are four being stored in caching;Wherein, the of four key-value pair formats Two, which cache mapping relations, includes:
Cache mapping relations:Key is SearchForm, game, 2;The corresponding value of key is response data Form_1;
Cache mapping relations:Key is SearchForm, game, 4;The corresponding value of key is response data Form_2;
Cache mapping relations:Key is SearchForm, mobile phone, 2;The corresponding value of key is response data Form_3;
Cache mapping relations:Key is SearchForm, mobile phone, 4;The corresponding value of key is response data Form_4;
Second caching mapping relations of function identification SearchForm and four key-value pair formats are set in the buffer Identity map relationship;
When detect function SearchForm be based on any function parameter value (such as:Game or mobile phone) obtained number of responses When according to changing, it being based on identity map relationship, deleting the second caching mapping relations of four key-value pair formats in the buffer.
Step S305 is provided with multiple third party systems comprising function identification and setup parameter value in the buffer, with In the case where the third caching mapping relations for the third response data that function is obtained based on third party system, it is arranged in the buffer The parameter mapping relations of third party system and third caching mapping relations;It include setting ginseng when detecting that function is based on any group The function parameter value of numerical value when obtained response data changes, is based on parameter mapping relations, deletes third in the buffer Cache mapping relations.
Such as:Step S305, including:
Second caching mapping relations of key-value pair format there are four being stored in caching;Wherein, the of four key-value pair formats Two, which cache mapping relations, includes:
Cache mapping relations:Key is SearchForm, game, 2;The corresponding value of key is response data Form_1;
Cache mapping relations:Key is SearchForm, game, 4;The corresponding value of key is response data Form_2;
Cache mapping relations:Key is SearchForm, mobile phone, 2;The corresponding value of key is response data Form_3;
Cache mapping relations:Key is SearchForm, mobile phone, 4;The corresponding value of key is response data Form_4;
The parameter mapping relations of third party system and third caching mapping relations are set in the caching;Third parameter letter Breath includes:User requests corresponding function identification SearchForm, which requests two of corresponding function SearchForm Setup parameter value Keyword parameter value in parameter value (Keyword parameter value and PageNo parameter value):Game;
Wherein, the parameter mapping relations of third party system and third caching mapping relations, specifically include:Third parameter letter The parameter mapping relations of breath and following two third caching mapping relations:
Cache mapping relations:Key is SearchForm, game, 2;The corresponding value of key is response data Form_1;
Cache mapping relations:Key is SearchForm, game, 4;The corresponding value of key is response data Form_2;
It include setup parameter value (Keyword parameter value when detecting that function SearchForm is based on any group:Game) Function parameter value, when obtained response data changes, be based on parameter mapping relations, in the buffer delete third caching Mapping relations.
The response data that function caused by due to function is modified or the corresponding database of function is modified etc. returns Change, in the buffer delete first caching mapping relations, avoid the response data of feedback error, improve user request The precision of response data;And according to Function Mapping relationship and/or parameter mapping relations to the caching mapping relations in caching into Row management effectively raises the efficiency of management and management accuracy of caching mapping relations.
The data cache method of the request of user described in third embodiment of the invention, can effectively improve server to user The response efficiency of request, the user for effectively increasing server request the feedback speed of corresponding response data,
Fourth embodiment of the invention, a kind of data buffering device of user's request, as shown in fig. 6, including consisting of portion Point:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to Cross bus or other way connection.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit, CPU), it can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (English: Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention One or more integrated circuits.Wherein, memory 502 is used for the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory 502 also may include nonvolatile memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store, performs the following operations:
1) the first parameter information carried is requested based on the user received, feds back through and user is called to request corresponding letter Obtained the first response datas of number, and be arranged in preset caching the first of the first parameter information and the first response data and cache and reflect Penetrate relationship.
Optionally, the first parameter information includes but is not limited to:The user requests corresponding function identification and user request The parameter informations such as corresponding function parameter value.
Optionally, the first parameter information carried is requested based on the user received, feds back through and calls user's request pair The first response data that the function answered obtains, and the first of the first parameter information and the first response data is arranged in preset caching The mode for caching mapping relations, specifically includes:
Receive the user's request for carrying the first parameter information;Wherein, the first parameter information includes:User request is corresponding Function identification and the user request the parameter informations such as corresponding function parameter value;
Corresponding function identification is requested based on the user, calls the user to request corresponding function, and asked according to the user Corresponding function parameter value is sought, the first response data of function return is obtained;
First response data is fed back, and is arranged in preset caching the of the first parameter information and first response data One caching mapping relations.
In the present embodiment, it requests the quantity of corresponding function parameter value to be not specifically limited the user, can be one It is a, it is also possible to multiple.
In the present embodiment, user's request is the request of data that terminal to server is sent.
In the present embodiment, the first parameter information is set in preset caching and the first caching of first response data reflects The mode for penetrating relationship includes but is not limited to:
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations, wherein key is the first parameter information, and the corresponding value of key is the response data.
Such as:The first parameter information carried is requested based on the user received, feds back through and user is called to request to correspond to Obtained the first response data of function;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
For another example, the user's request for carrying the first parameter information is received;Wherein, the first parameter information includes:User request Corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two ginsengs Numerical value is respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2;
Corresponding function identification SearchForm is requested based on the user, the user is called to request corresponding function SearchForm, and corresponding two function parameter values are requested according to the user, obtain the first of function SearchForm return Response data feeds back first response data;
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
2) it when receiving the user for carrying the first parameter information request again, is closed according to the first caching mapping in caching System, corresponding first response data of the first parameter information of feedback.
Such as:When receiving the user for carrying the first parameter information request again, reflected according to the first caching in caching Penetrate relationship, corresponding first response data of the first parameter information of feedback, wherein the first parameter information includes:User request Corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two ginsengs Numerical value is respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
By being closed according to the first caching mapping for storing the first parameter information and first response data in preset caching It is feedback response data, avoids and receive the user's request for carrying the first parameter information again, fed back through and user is called to ask The first response data that corresponding function obtains is sought, processing speed and processing that server receives user's request are greatly improved Efficiency effectively increases the response data feedback speed in the case that server receives a large number of users request.
The data buffering device of the request of user described in fourth embodiment of the invention, can effectively improve server to user The response efficiency of request, the user for effectively increasing server request the feedback speed of corresponding response data.
Fifth embodiment of the invention, a kind of data buffering device of user's request, as shown in fig. 6, including consisting of portion Point:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to Cross bus or other way connection.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit, CPU), it can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (English: Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention One or more integrated circuits.Wherein, memory 502 is used for the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory 502 also may include nonvolatile memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store, performs the following operations:
1) the first parameter information carried is requested based on the user received, feds back through and user is called to request corresponding letter Obtained the first response datas of number, and be arranged in preset caching the first of the first parameter information and the first response data and cache and reflect Penetrate relationship.
Optionally, the first parameter information includes but is not limited to:The user requests corresponding function identification and user request The parameter informations such as corresponding function parameter value.
Optionally, the first parameter information carried is requested based on the user received, feds back through and calls user's request pair The first response data that the function answered obtains, and the first of the first parameter information and the first response data is arranged in preset caching The mode for caching mapping relations, specifically includes:
Receive the user's request for carrying the first parameter information;Wherein, the first parameter information includes:User request is corresponding Function identification and the user request the parameter informations such as corresponding function parameter value;
Corresponding function identification is requested based on the user, calls the user to request corresponding function, and asked according to the user Corresponding function parameter value is sought, the first response data of function return is obtained;
First response data is fed back, and is arranged in preset caching the of the first parameter information and first response data One caching mapping relations.
In the present embodiment, it requests the quantity of corresponding function parameter value to be not specifically limited the user, can be one It is a, it is also possible to multiple.
In the present embodiment, user's request is the request of data that terminal to server is sent.
In the present embodiment, the first parameter information is set in preset caching and the first caching of first response data reflects The mode for penetrating relationship includes but is not limited to:
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations, wherein key is the first parameter information, and the corresponding value of key is the response data.
Such as:The first parameter information carried is requested based on the user received, feds back through and user is called to request to correspond to Obtained the first response data of function;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
For another example, the user's request for carrying the first parameter information is received;Wherein, the first parameter information includes:User request Corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two ginsengs Numerical value is respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2;
Corresponding function identification SearchForm is requested based on the user, the user is called to request corresponding function SearchForm, and corresponding two function parameter values are requested according to the user, obtain the first of function SearchForm return Response data feeds back first response data;
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
2) it when receiving the user for carrying the first parameter information request again, is closed according to the first caching mapping in caching System, corresponding first response data of the first parameter information of feedback.
Such as:When receiving the user for carrying the first parameter information request again, reflected according to the first caching in caching Penetrate relationship, corresponding first response data of the first parameter information of feedback, wherein the first parameter information includes:User request Corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two ginsengs Numerical value is respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
By being closed according to the first caching mapping for storing the first parameter information and first response data in preset caching It is feedback response data, avoids and receive the user's request for carrying the first parameter information again, fed back through and user is called to ask The first response data that corresponding function obtains is sought, processing speed and processing that server receives user's request are greatly improved Efficiency effectively increases the response data feedback speed in the case that server receives a large number of users request.
3) it when detecting that the function is changed based on the response data that the first parameter information obtains, deletes in the buffer First caching mapping relations.
For example, when detecting that the function is changed based on the response data that the first parameter information obtains, in the buffer Delete the first caching mapping relations;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
In the present embodiment, the response data which is obtained based on the first parameter information changes, including but unlimited In:
Since function is modified, the response data for causing the function to be obtained based on the first parameter information is changed;
Alternatively, since the corresponding database of function is modified, the response for causing the function to obtain based on the first parameter information Data change.
The response data that function caused by due to function is modified or the corresponding database of function is modified etc. returns Change, in the buffer delete first caching mapping relations, avoid the response data of feedback error, improve user request The precision of response data.
The data buffering device of the request of user described in fifth embodiment of the invention, can effectively improve server to user The response efficiency of request, the user for effectively increasing server request the feedback speed of corresponding response data.
Sixth embodiment of the invention, a kind of data buffering device of user's request, as shown in fig. 6, including consisting of portion Point:
Processor 501 and memory 502.In some embodiments of the invention, processor 501 and memory 502 can lead to Cross bus or other way connection.
Processor 501 can be general processor, such as central processing unit (Central Processing Unit, CPU), it can also be digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (English: Application Specific Integrated Circuit, ASIC), or be arranged to implement the embodiment of the present invention One or more integrated circuits.Wherein, memory 502 is used for the executable instruction of storage processor 501;
Memory 502 is transferred to processor 501 for storing program code, and by the program code.Memory 502 can To include volatile memory (Volatile Memory), such as random access memory (Random Access Memory, RAM);Memory 502 also may include nonvolatile memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid State hard disk (Solid-State Drive, SSD);Memory 502 can also include the combination of the memory of mentioned kind.
Wherein, the program code management code that processor 501 is used to that memory 502 to be called to store, performs the following operations:
1) the first parameter information carried is requested based on the user received, feds back through and user is called to request corresponding letter Obtained the first response datas of number, and be arranged in preset caching the first of the first parameter information and the first response data and cache and reflect Penetrate relationship.
Optionally, the first parameter information includes but is not limited to:The user requests corresponding function identification and user request The parameter informations such as corresponding function parameter value.
Optionally, the first parameter information carried is requested based on the user received, feds back through and calls user's request pair The first response data that the function answered obtains, and the first of the first parameter information and the first response data is arranged in preset caching The mode for caching mapping relations, specifically includes:
Receive the user's request for carrying the first parameter information;Wherein, the first parameter information includes:User request is corresponding Function identification and the user request the parameter informations such as corresponding function parameter value;
Corresponding function identification is requested based on the user, calls the user to request corresponding function, and asked according to the user Corresponding function parameter value is sought, the first response data of function return is obtained;
First response data is fed back, and is arranged in preset caching the of the first parameter information and first response data One caching mapping relations.
In the present embodiment, it requests the quantity of corresponding function parameter value to be not specifically limited the user, can be one It is a, it is also possible to multiple.
In the present embodiment, user's request is the request of data that terminal to server is sent.
In the present embodiment, the first parameter information is set in preset caching and the first caching of first response data reflects The mode for penetrating relationship includes but is not limited to:
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations, wherein key is the first parameter information, and the corresponding value of key is the response data.
Such as:The first parameter information carried is requested based on the user received, feds back through and user is called to request to correspond to Obtained the first response data of function;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
For another example, the user's request for carrying the first parameter information is received;Wherein, the first parameter information includes:User request Corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two ginsengs Numerical value is respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2;
Corresponding function identification SearchForm is requested based on the user, the user is called to request corresponding function SearchForm, and corresponding two function parameter values are requested according to the user, obtain the first of function SearchForm return Response data feeds back first response data;
The first parameter information and the first caching of first response data are stored in preset caching with the format of key-value pair Mapping relations;Wherein, key SearchForm, game, 2;The corresponding value of key is first response data.
2) it when receiving the user for carrying the first parameter information request again, is closed according to the first caching mapping in caching System, corresponding first response data of the first parameter information of feedback.
Such as:When receiving the user for carrying the first parameter information request again, reflected according to the first caching in caching Penetrate relationship, corresponding first response data of the first parameter information of feedback, wherein the first parameter information includes:User request Corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two ginsengs Numerical value is respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
By being closed according to the first caching mapping for storing the first parameter information and first response data in preset caching It is feedback response data, avoids and receive the user's request for carrying the first parameter information again, fed back through and user is called to ask The first response data that corresponding function obtains is sought, processing speed and processing that server receives user's request are greatly improved Efficiency effectively increases the response data feedback speed in the case that server receives a large number of users request.
3) it when detecting that the function is changed based on the response data that the first parameter information obtains, deletes in the buffer First caching mapping relations.
For example, when detecting that the function is changed based on the response data that the first parameter information obtains, in the buffer Delete the first caching mapping relations;Wherein, the first parameter information includes:The user requests corresponding function identification SearchForm and the user request two parameter values of corresponding function SearchForm;Two parameter values are respectively Keyword (keyword) parameter value:Game, PageNo (page) parameter value:2.
In the present embodiment, the response data which is obtained based on the first parameter information changes, including but unlimited In:
Since function is modified, the response data for causing the function to be obtained based on the first parameter information is changed;
Alternatively, since the corresponding database of function is modified, the response for causing the function to obtain based on the first parameter information Data change.
4) it is provided with multiple the second parameter informations comprising function identification in the buffer, and function is based on the second parameter information In the case where second caching mapping relations of the second obtained response data, function identification is set in the buffer and is reflected with the second caching Penetrate the identity map relationship of relationship;When the response data for detecting that function is obtained based on any function parameter value changes When, it is based on identity map relationship, deletes the second caching mapping relations in the buffer.
For example, there are four the second caching mapping relations of key-value pair format for storage in caching;Wherein, four key-value pair formats Second caching mapping relations include:
Cache mapping relations:Key is SearchForm, game, 2;The corresponding value of key is response data Form_1;
Cache mapping relations:Key is SearchForm, game, 4;The corresponding value of key is response data Form_2;
Cache mapping relations:Key is SearchForm, mobile phone, 2;The corresponding value of key is response data Form_3;
Cache mapping relations:Key is SearchForm, mobile phone, 4;The corresponding value of key is response data Form_4;
Second caching mapping relations of function identification SearchForm and four key-value pair formats are set in the buffer Identity map relationship;
When detect function SearchForm be based on any function parameter value (such as:Game or mobile phone) obtained number of responses When according to changing, it being based on identity map relationship, deleting the second caching mapping relations of four key-value pair formats in the buffer.
5) it is provided with multiple third party systems comprising function identification and setup parameter value in the buffer, and function is based on In the case where the third caching mapping relations for the third response data that third party system obtains, third parameter is set in the buffer The parameter mapping relations of information and third caching mapping relations;When detect function based on any group include setup parameter value letter Number parameter value, when obtained response data changes, is based on parameter mapping relations, deletes third caching mapping in the buffer Relationship.
Such as:Second caching mapping relations of key-value pair format there are four being stored in caching;Wherein, four key-value pair formats Second caching mapping relations include:
Cache mapping relations:Key is SearchForm, game, 2;The corresponding value of key is response data Form_1;
Cache mapping relations:Key is SearchForm, game, 4;The corresponding value of key is response data Form_2;
Cache mapping relations:Key is SearchForm, mobile phone, 2;The corresponding value of key is response data Form_3;
Cache mapping relations:Key is SearchForm, mobile phone, 4;The corresponding value of key is response data Form_4;
The parameter mapping relations of third party system and third caching mapping relations are set in the caching;Third parameter letter Breath includes:User requests corresponding function identification SearchForm, which requests two of corresponding function SearchForm Setup parameter value Keyword parameter value in parameter value (Keyword parameter value and PageNo parameter value):Game;
Wherein, the parameter mapping relations of third party system and third caching mapping relations, specifically include:Third parameter letter The parameter mapping relations of breath and following two third caching mapping relations:
Cache mapping relations:Key is SearchForm, game, 2;The corresponding value of key is response data Form_1;
Cache mapping relations:Key is SearchForm, game, 4;The corresponding value of key is response data Form_2;
It include setup parameter value (Keyword parameter value when detecting that function SearchForm is based on any group:Game) Function parameter value, when obtained response data changes, be based on parameter mapping relations, in the buffer delete third caching Mapping relations.
The response data that function caused by due to function is modified or the corresponding database of function is modified etc. returns Change, in the buffer delete first caching mapping relations, avoid the response data of feedback error, improve user request The precision of response data;And according to Function Mapping relationship and/or parameter mapping relations to the caching mapping relations in caching into Row management effectively raises the efficiency of management and management accuracy of caching mapping relations.
The data buffering device of the request of user described in sixth embodiment of the invention, can effectively improve server to user The response efficiency of request, the user for effectively increasing server request the feedback speed of corresponding response data.
Seventh embodiment of the invention, a kind of computer readable storage medium.
Computer storage medium can be RAM memory, flash memory, ROM memory, eprom memory, EEPROM storage Device, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art storage medium.
Computer-readable recording medium storage has one or more program, one or more program can by one or The multiple processors of person execute, with realize first embodiment of the invention into third embodiment of the invention in any embodiment part or Overall Steps.
One of seventh embodiment of the invention computer readable storage medium is stored with one or more program, should One or more program can be executed by one or more processor, can effectively improve the response that server requests user Efficiency, the user for effectively increasing server request the feedback speed of corresponding response data.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, all of these belong to the protection of the present invention.

Claims (11)

1. a kind of data cache method of user's request, which is characterized in that including:
The first parameter information carried is requested based on the user received, feds back through and the user is called to request corresponding function The first obtained response data, and the first of first parameter information and first response data is arranged in preset caching Cache mapping relations;
When receiving the user for carrying first parameter information request again, according to first caching in the caching Mapping relations feed back first response data.
2. the method according to claim 1, wherein the first parameter letter is arranged in preset caching described After breath caches mapping relations with the first of first response data, the method also includes:
When detecting that the function is changed based on the first response data that first parameter information obtains, described slow Deposit middle deletion the first caching mapping relations.
3. method according to claim 1 or 2, which is characterized in that first parameter information includes:User's request Corresponding function identification and the user request corresponding function parameter value.
4. according to the method described in claim 3, it is characterized in that, being provided in the caching multiple comprising the function mark Second caching of the second parameter information known, the second response data obtained with the function based on second parameter information is reflected In the case where penetrating relationship, the method also includes:
The identity map relationship of the function identification and the second caching mapping relations is set in the caching;
When detecting that the function is changed based on the response data that any function parameter value obtains, it is based on the mark Mapping relations delete the second caching mapping relations in the caching.
5. according to the method described in claim 3, it is characterized in that, being provided in the caching multiple comprising the function mark Know the third party system with setup parameter value, the third response data obtained with the function based on the third party system Third caching mapping relations in the case where, the method also includes:
The parameter mapping relations of third party system and third caching mapping relations are set in the caching;
When detecting the function based on any group of function parameter value comprising the setup parameter value, obtained response data is equal When changing, mapping relations, delete the third caching mapping relations in the caching based on the parameter.
6. a kind of data buffering device of user's request, which is characterized in that the data buffering device of user's request includes place Manage device and memory;
The processor is used to execute the data buffer storage program of the user's request stored in memory, to realize following steps:
The first parameter information carried is requested based on the user received, feds back through and the user is called to request corresponding function The first obtained response data, and the first of first parameter information and first response data is arranged in preset caching Cache mapping relations;
When receiving the user for carrying first parameter information request again, according to first caching in the caching Mapping relations feed back first response data.
7. equipment according to claim 6, which is characterized in that the first parameter letter is arranged in preset caching described For breath with after the first caching mapping relations of first response data, the processor is also used to execute user's request Data buffer storage program, to realize following steps:
When detecting that the function is changed based on the first response data that first parameter information obtains, described slow Deposit middle deletion the first caching mapping relations.
8. equipment according to claim 6 or 7, which is characterized in that first parameter information includes:User's request Corresponding function identification and the user request corresponding function parameter value.
9. equipment according to claim 6, which is characterized in that be provided in the caching multiple comprising the function mark Second caching of the second parameter information known, the second response data obtained with the function based on second parameter information is reflected In the case where penetrating relationship, the method also includes:
The identity map relationship of the function identification and the second caching mapping relations is set in the caching;
When detecting that the function is changed based on the response data that any function parameter value obtains, it is based on the mark Mapping relations delete the second caching mapping relations in the caching.
10. equipment according to claim 6, which is characterized in that be provided in the caching multiple comprising the function The third party system of mark and setup parameter value, the third number of responses obtained with the function based on the third party system According to third caching mapping relations in the case where, the method also includes:
The parameter mapping relations of third party system and third caching mapping relations are set in the caching;
When detecting the function based on any group of function parameter value comprising the setup parameter value, obtained response data is equal When changing, mapping relations, delete the third caching mapping relations in the caching based on the parameter.
11. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or Multiple programs, one or more of programs can be executed by one or more processor, with realize according to claim 1~ The step of data cache method of the request of user described in any one of 5.
CN201810510851.9A 2018-05-24 2018-05-24 Data cache method, equipment and the computer readable storage medium of user's request Pending CN108833495A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810510851.9A CN108833495A (en) 2018-05-24 2018-05-24 Data cache method, equipment and the computer readable storage medium of user's request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810510851.9A CN108833495A (en) 2018-05-24 2018-05-24 Data cache method, equipment and the computer readable storage medium of user's request

Publications (1)

Publication Number Publication Date
CN108833495A true CN108833495A (en) 2018-11-16

Family

ID=64145449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810510851.9A Pending CN108833495A (en) 2018-05-24 2018-05-24 Data cache method, equipment and the computer readable storage medium of user's request

Country Status (1)

Country Link
CN (1) CN108833495A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111192165A (en) * 2020-01-03 2020-05-22 南京天溯自动化控制系统有限公司 Intelligent ammeter management platform based on preprocessing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646111A (en) * 2013-12-25 2014-03-19 普元信息技术股份有限公司 System and method for realizing real-time data association in big data environment
CN105812189A (en) * 2016-04-26 2016-07-27 努比亚技术有限公司 Information processing method and server
CN106354565A (en) * 2016-09-21 2017-01-25 努比亚技术有限公司 Distributed lock client and control method
CN106934044A (en) * 2017-03-16 2017-07-07 北京深思数盾科技股份有限公司 A kind of data processing method and device
CN107066570A (en) * 2017-04-07 2017-08-18 聚好看科技股份有限公司 Data managing method and device
CN107832163A (en) * 2017-11-29 2018-03-23 努比亚技术有限公司 A kind of buffering updating method, server and computer-readable recording medium
CN107967183A (en) * 2017-11-29 2018-04-27 努比亚技术有限公司 A kind of application interface merges operation method, mobile terminal and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646111A (en) * 2013-12-25 2014-03-19 普元信息技术股份有限公司 System and method for realizing real-time data association in big data environment
CN105812189A (en) * 2016-04-26 2016-07-27 努比亚技术有限公司 Information processing method and server
CN106354565A (en) * 2016-09-21 2017-01-25 努比亚技术有限公司 Distributed lock client and control method
CN106934044A (en) * 2017-03-16 2017-07-07 北京深思数盾科技股份有限公司 A kind of data processing method and device
CN107066570A (en) * 2017-04-07 2017-08-18 聚好看科技股份有限公司 Data managing method and device
CN107832163A (en) * 2017-11-29 2018-03-23 努比亚技术有限公司 A kind of buffering updating method, server and computer-readable recording medium
CN107967183A (en) * 2017-11-29 2018-04-27 努比亚技术有限公司 A kind of application interface merges operation method, mobile terminal and computer-readable recording medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗琼: "《计算机科学导论》", 31 August 2016 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111192165A (en) * 2020-01-03 2020-05-22 南京天溯自动化控制系统有限公司 Intelligent ammeter management platform based on preprocessing method

Similar Documents

Publication Publication Date Title
CN107688607A (en) The method and mobile terminal of a kind of database access, computer-readable recording medium
CN108536481A (en) A kind of application program launching method, mobile terminal and computer storage media
CN107197017A (en) A kind of consuming method, terminal and computer-readable recording medium based on consumption queue
CN108762876A (en) A kind of input method switching method, mobile terminal and computer storage media
CN107885665A (en) With case script method of testing, mobile terminal and computer-readable recording medium
CN109725866A (en) Application interface display methods, terminal and computer readable storage medium
CN110365347A (en) A kind of power amplifier control method, apparatus and computer readable storage medium
CN110007816A (en) A kind of display area determines method, terminal and computer readable storage medium
CN109726179A (en) Screenshot picture processing method, storage medium and mobile terminal
CN107273433A (en) A kind of file scanning method, equipment and computer-readable recording medium
CN108829302A (en) A kind of interaction regulation method, equipment and computer readable storage medium
CN110347306A (en) A kind of multi-screen display method, terminal and computer readable storage medium
CN110052024A (en) Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration
CN109068084A (en) Video calling picture display process, mobile terminal and computer readable storage medium
CN110209434A (en) A kind of EMS memory management process, device and computer readable storage medium
CN110007817A (en) A kind of message treatment method and mobile terminal, computer readable storage medium
CN109947519A (en) Hardware-accelerated control method, terminal and computer readable storage medium
CN109683741A (en) Function triggering method, device and computer readable storage medium
CN108900696A (en) A kind of data processing method, terminal and computer readable storage medium
CN108879117A (en) Mobile terminal and its antenna structure
CN108833495A (en) Data cache method, equipment and the computer readable storage medium of user's request
CN109062964A (en) A kind of data-erasure method, terminal and computer readable storage medium
CN107797825A (en) A kind of data transmission method for uplink, terminal and computer-readable recording medium
CN107831998A (en) A kind of Interface Moving method, terminal and computer-readable recording medium
CN110377359A (en) Game performance optimization method, mobile terminal and computer readable 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116