WO2019019382A1 - Procédé et dispositif de gestion de cache, dispositif informatique et support de stockage - Google Patents

Procédé et dispositif de gestion de cache, dispositif informatique et support de stockage Download PDF

Info

Publication number
WO2019019382A1
WO2019019382A1 PCT/CN2017/104653 CN2017104653W WO2019019382A1 WO 2019019382 A1 WO2019019382 A1 WO 2019019382A1 CN 2017104653 W CN2017104653 W CN 2017104653W WO 2019019382 A1 WO2019019382 A1 WO 2019019382A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
query request
request
information query
cached
Prior art date
Application number
PCT/CN2017/104653
Other languages
English (en)
Chinese (zh)
Inventor
张辉
Original Assignee
上海壹账通金融科技有限公司
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 上海壹账通金融科技有限公司 filed Critical 上海壹账通金融科技有限公司
Publication of WO2019019382A1 publication Critical patent/WO2019019382A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a cache processing method, apparatus, computer device, and storage medium.
  • the terminal sends a request to the server, and the server caches the pulled information after pulling the corresponding information from the database, so that any information pulled by the server is cached by the server, which is likely to cause cache information.
  • the amount is too large, causing the cache pressure to be too large.
  • a cache processing method, apparatus, computer device, and storage medium are provided.
  • a cache processing method includes:
  • the information query request including the request identifier is cached corresponding to the queried information, and the queried information is returned.
  • a cache processing device includes:
  • a request parsing module configured to parse the received information query request, and obtain a request identifier carried in the information query request
  • a request identifier search module configured to search for a presence identifier of the request identifier from the cache
  • An information obtaining module configured to: when the request identifier does not exist in the cache, execute the information query request to query corresponding information from a database;
  • a cache module configured to: when the duration of the execution of the information query request exceeds a preset duration threshold, cache the information query request including the request identifier and the queried information, and return the query The information obtained.
  • a computer apparatus comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor such that the processor performs the following steps:
  • the information query request including the request identifier is cached corresponding to the queried information, and the queried information is returned.
  • One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
  • the information query request including the request identifier is cached corresponding to the queried information, and the queried information is returned.
  • 1 is an application environment diagram of a cache processing method in an embodiment
  • FIG. 2 is a schematic diagram showing the internal structure of a computer device in an embodiment
  • FIG. 3 is a schematic flow chart of a cache processing method in an embodiment
  • FIG. 4 is a schematic flow chart of a cache processing step in an embodiment
  • FIG. 5 is a schematic flowchart of a cache update step in an embodiment
  • Figure 6 is a block diagram of a cache processing apparatus in one embodiment
  • FIG. 7 is a block diagram of a cache processing device in another embodiment.
  • Figure 8 is a block diagram of a cache processing apparatus in still another embodiment.
  • FIG. 1 is an application environment diagram of a cache processing method in an embodiment.
  • the application environment includes a terminal 110 and a server 120 connected through a network.
  • the terminal 110 sends an information query request to the server 120 through the network.
  • the server 120 parses the received information query request and obtains the request identifier carried in the information query request.
  • the server 120 searches for a presence or absence of the request identifier from the cache.
  • the information query request is executed to query the corresponding information from the database.
  • the duration of the execution of the information query request exceeds the preset duration threshold, then The information query request including the request identifier is cached correspondingly to the queried information, and the queried information is returned to the terminal 110.
  • the computer device may be the server 120 in FIG. 1, and the server 120 may be implemented by a stand-alone server or a server cluster composed of a plurality of physical servers.
  • the computer device includes a processor, memory, and network interface coupled by a system bus.
  • the memory comprises a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium of the computer device can store an operating system and computer readable instructions that, when executed by the processor, cause the processor to implement a cache processing method.
  • the processor is used to provide computing and control capabilities to support the operation of the entire computer device.
  • Computer readable instructions may be stored in the internal memory of the computer device, and when the computer readable instructions are executed by the processor, the processor may be caused to perform a cache processing method.
  • the network interface of the computer device is used to connect to the network for communication, for example, to return the queried information.
  • FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • a cache processing method is provided. This embodiment is mainly illustrated by the method being applied to the computer device in FIG. 2 described above. Referring to FIG. 3, the cache processing method specifically includes the following steps:
  • the request identifier is used to uniquely identify the corresponding information query request.
  • the request identification includes a request item identification.
  • the request item refers to the requested item, such as obtaining basic personal information, obtaining user access or obtaining web content, etc., all of which are requests.
  • a request identifier that uniquely identifies the item being requested for the query. The information requested by the information query request is different, and the corresponding request identifier is different, and the request identifier is also different.
  • the information requesting to query the website A and the information requesting to query the website B belong to different request items, and the corresponding request item identifiers are different, and the request identifiers are also different.
  • the request for querying different types of information in the website A for example, "the basic personal information of the user" and the "number of users" belong to different types of information
  • the request identifier is also different.
  • the computer device may parse the received information query request, and obtain the carried request identifier from the parsed information query request.
  • the received information query request may be an information query request sent by the terminal or an information query request sent by another server, where the object for sending the information query request is not limited.
  • the cache is a storage area for storing information obtained from the database.
  • the cache can reduce the pressure on the database and improve the access or query speed of the information.
  • the computer device can match the acquired request identifier with the information stored in the cache to find out if the request identifier exists.
  • the computer device may obtain a cache server corresponding to the information query request from the distributed cache server cluster, and then look up the cache server for the presence of the acquired request identifier.
  • the computer device may select the closest cache server from the distributed cache server cluster according to the distance between the terminal that initiates the information query request and each cache server in the distributed cache server cluster. Request the corresponding cache server.
  • the computer device may execute the information query request, and invoke the database interface to obtain corresponding information from the database.
  • the computer device caches the information query request including the request identifier and the information corresponding to the information query request.
  • the information corresponding to the information query request refers to information that can be obtained by executing the information query request.
  • the request identifier ID_001 is used to uniquely identify the advertisement information query request, and the information that can be obtained by executing the advertisement information query request includes the specific advertisement content, and the advertisement information query request including the ID_001 may be cached correspondingly to the specific advertisement content.
  • the request identifier is found in the cache, the information about the requested query cached corresponding to the request identifier may be directly obtained.
  • the specific advertisement content cached corresponding to the request identifier ID_001 may be directly obtained.
  • the information query request including the request identifier is cached correspondingly to the queried information, and the queried information is returned.
  • the duration of the execution of the information query request refers to the length of time elapsed during the process of starting the execution of the information query request until the corresponding information is queried from the database (ie, the corresponding information returned by the database is received). For example, the time to start the information query request is t1, and the time to receive the corresponding information returned by the database is t2, and the duration of the execution of the information query request is t2-t1.
  • the computer device may detect the length of time that the information query request is executed, and compare the detected elapsed duration with the preset duration threshold. When the duration of the execution of the information query request exceeds the preset duration threshold, The information query request including the request identifier is cached correspondingly to the queried information, and the queried information is returned. In an embodiment, when the duration of the execution of the information query request does not exceed the preset duration threshold, it indicates that the execution information query request obtains the corresponding information from the database faster, and the pressure on the database is relatively small. , you can directly return the information returned without caching.
  • the computer device may send the information query request including the request identifier and the queried information to a corresponding cache server for caching, and return the queried information to the terminal. It will be appreciated that in other embodiments, the computer device may also include information identifying the request identification. The query request and the queried information are cached locally, and the queried information is returned to the terminal.
  • the cache processing method caches the queried information when the duration of the execution of the information query request exceeds the preset duration threshold, and does not cache all the information that is queried together, thereby reducing the cache to some extent.
  • the amount of information which reduces the problem of buffer overflow.
  • the information query request including the request identifier and the information of the requested query are cached correspondingly, and when the information query request is received, it is determined whether there is a corresponding request identifier in the cache, and when there is no request identifier, the information is not cached in the cache.
  • Querying the request means that the information requested by the query request is not cached, that is, by determining whether there is a corresponding request identifier in the cache, whether to cache the information of the requested query, and not requiring the cache to be requested.
  • the information itself performs more analysis and comparison, which improves the speed of information query.
  • the corresponding information cache request including the request identifier and the queried information is cached by: converting the information query request into a cacheable format; and converting the information query request into the cacheable format and the queried information.
  • the cacheable format refers to a file format that conforms to the cache, such as JSON (JavaScript Object Notation, a lightweight data exchange format) format.
  • JSON JavaScript Object Notation, a lightweight data exchange format
  • the received information query request is in an executable format, and the format of the executable information query request may not meet the cache requirement, so the computer device can convert the executable information query request into a cacheable format. It should be noted that if the received information query request itself satisfies the format requirement of the cache, the information query request may not be format converted.
  • the computer device may cache the information query request converted into the cacheable format and the queried information. It can be understood that, since the received information query request includes the request identifier, the information query request in the format convertible cacheable format still includes a unique request identifier.
  • step S302 includes: receiving and parsing an information query request sent by the terminal, and acquiring a request identifier carried in the information query request.
  • the user can perform an information query operation through the terminal, and the terminal responds to the operation, and the user
  • the information query request is sent to the computer device.
  • the computer device may parse the received information query request, and extract the carried request identifier from the parsed information query request.
  • step S308 (referred to as a cache processing step) specifically includes the following steps:
  • Interceptor intercepts information returned from the database and returned by the interceptor.
  • the computer device may return the queried information to the terminal, and the interceptor may intercept the information returned to the terminal.
  • the duration of the execution of the information query request refers to the length of time elapsed during the process of starting the execution of the information query request until the corresponding information is queried from the database (ie, the corresponding information returned by the database is received).
  • the computer device may record the time point at which the information query request is started, and record the corresponding time point when the corresponding information is queried from the database, and perform the information query according to the difference between the two time points.
  • the computer device may also trigger a timer to start timing when the information query request is started, and trigger a timer to stop timing when the corresponding information is queried from the database, and execute the timer duration as an execution. The time the information is queried for the request.
  • the preset time duration threshold is pre-stored in the computer device, and the acquired elapsed duration is compared with the preset duration threshold. When the duration of the execution of the information query request exceeds the preset duration threshold, the request is included. The identified information query request is cached correspondingly to the queried information. Further, the computer device can notify the interceptor to send the intercepted information to the terminal.
  • the interceptor is directly notified to transmit the intercepted information to the terminal.
  • the program itself for implementing the request execution and the information return is not changed, but the intercepted information is intercepted by the interceptor, and the information satisfying the cache condition and the corresponding information query request are cached correspondingly, and the interception is notified.
  • the device sends the intercepted information to the terminal.
  • the information is cached, it is equivalent to the original program used for request execution and information return. It avoids the changes to the program used for request execution and information return, but is used for request execution and information return. If the program changes, you need to re-test the other functions of the program and make it more complicated. Therefore, in this case, the interception of the interceptor realizes information caching, which improves the convenience of the information caching function.
  • the method further includes a cache update step, which specifically includes the following steps:
  • the information corresponding to the cached information in the database is the same information as the cached information and stored in the database. It can be understood that the cached information is information that is queried from the database and cached, so the database stores the same information as the cached information, that is, information corresponding to the cached information stored in the database.
  • the computer device can determine whether the information corresponding to the cached information is updated by determining whether an information update notification sent by the database is received.
  • the computer device can notify the database and cache the information of the information when the queried information is cached.
  • the database can send the information update notification to the computer device.
  • the computer device detects the information update notification, it can determine that the information corresponding to the cached information is updated.
  • the computer device can also monitor whether an operation request related to the cached information update is received, and when receiving and executing an operation request related to the cached information update, it can be determined that the database corresponds to the cached information.
  • the information has been updated. Updated with cached information
  • the closed operation request includes an operation request such as modification, deletion, or addition of information.
  • the executable information query request refers to a request that can be executed to obtain information corresponding to the query.
  • the computer device may search for an information query request corresponding to the cached information from the cache, and reverse the information query request of the cacheable format that is found. Parsing the processing and regenerating the executable information query request.
  • the computer device can execute the regenerated executable information query request and invoke the database interface to retrieve the information corresponding to the information query request from the database.
  • S508 Perform update processing on the information cached corresponding to the information query request according to the re-acquired information.
  • the computer device may directly update the information cached in the cache corresponding to the information query request to the reacquired information.
  • updating the information cached corresponding to the information query request according to the re-acquired information includes: acquiring an experience from when the executable information query request is started to when the corresponding information is re-acquired When the re-acquisition duration exceeds the preset duration threshold, the information cached in the cache corresponding to the information query request is updated to the re-acquired information.
  • the re-acquisition duration refers to the length of time that the information corresponding to the executable information query request is re-acquired. Specifically, re-acquiring the duration may refer to the length of time that the process of executing the executable information query request begins to re-acquire the corresponding information.
  • the computer device can record the time point at which the execution of the executable information query request is started, and record the corresponding time point when retrieving the corresponding information from the database, according to the difference between the two time points.
  • Regain time For example, start executing the executable information
  • the time point of the query request is t1
  • the time point of re-acquiring the corresponding information returned by the database is t2
  • the re-acquisition time is t2-t1.
  • the computer device may also trigger a timer to start timing when the executable information query request is executed, and trigger a timer to stop timing when the corresponding information is retrieved from the database, and the timer is The time duration is used as the regain time.
  • the preset time duration threshold is stored in the computer device, and the computer device can compare the re-acquisition duration with the preset duration threshold. When the re-acquisition duration exceeds the preset duration threshold, the cache is cached corresponding to the information query request. The information is updated to the reacquired information.
  • the information query request and the corresponding cached information in the cache may be deleted. It can be understood that when the re-acquisition duration does not exceed the preset duration threshold, it indicates that the execution information query request obtains the corresponding information from the database at a relatively fast speed, and the pressure on the database is relatively small, and the cache is not used. The database causes excessive pressure, so the cached information query request and corresponding cache information can be deleted to avoid unnecessary occupation of the cache space and improve the effective utilization of the cache space.
  • the cached information when the cached information is updated in the corresponding information in the database, the information query request corresponding to the information is back parsed into an executable request, so that the corresponding information is re-acquired and the cache update process is performed to avoid Manually and manually obtaining update information and caching operations improves the efficiency of cache updates.
  • the method further includes: giving the corresponding cache validity time for the cached information query request; and when the cache valid time is reached, the corresponding information query request in the cache, and the The information query request deletes the cached information.
  • the validity time of the cache is the length of time that the cached data is in the cache. For example, if the cache validity time of the information query request A is 3 weeks, the cached information query request A is in a valid state within 3 weeks from the start of the cache.
  • the cached information query request may be given to the corresponding cache effective duration.
  • the computer device can monitor whether the cached information query request exceeds the valid duration of the corresponding cache given, and when the cache is valid When the duration is long, the corresponding information query request in the cache and the information cached corresponding to the information query request are deleted. For example, if the cache valid time is 3 weeks, when the cache time of the information query request A exceeds 3 weeks, the information query request A in the cache is deleted, and the information cached corresponding to the information query request A is deleted.
  • the information query request may be cached.
  • the duration of the aging period is zero.
  • the active information query request can be automatically adjusted for the effective duration of the cache, so as to avoid the invalid cache validity time, causing the active information query request and the corresponding cached information to be deleted by mistake.
  • the cache validity time of the information query request A is 3 weeks, and when the cache valid time is 1 week, when the remaining 2 weeks, the information query request A is inversely parsed into an executable information query request to reacquire the corresponding information. And updating the corresponding cached information according to the re-acquired information, then zeroing the existing one-week duration of the cache query request A of the information query request A, that is, the cache valid duration of the information query request A is re-assigned to 3 weeks. .
  • the cache validity time is requested by the information query request given to the cache.
  • the information query request and the corresponding information of the corresponding cache may be automatically deleted, thereby avoiding unnecessary to some extent.
  • the cache is occupied.
  • a cache processing apparatus 600 includes a request parsing module 602, a request identifier finding module 604, an information obtaining module 606, and a caching module 608, where:
  • the request parsing module 602 is configured to parse the received information query request, and obtain the request identifier carried in the information query request.
  • the request identifier finding module 604 is configured to search for a presence or absence of the request identifier from the cache.
  • the information obtaining module 606 is configured to: when the request identifier does not exist in the cache, execute the information query request to query corresponding information from the database.
  • the caching module 608 is configured to: when the duration of the execution of the information query request exceeds a preset duration threshold, the information query request including the request identifier and the information that is queried Perform corresponding cache and return the information that was queried.
  • the cache module 608 is further configured to convert the information query request into a cacheable format; and the information query request converted into the cacheable format and the queried information are correspondingly cached; wherein the information query request in a cacheable format is Includes a unique request ID.
  • the request parsing module 602 is further configured to receive and parse the information query request sent by the terminal, and obtain the request identifier carried in the information query request.
  • the cache module 608 is further configured to intercept, by the interceptor, the information that is queried from the database and return to the terminal; obtain the duration of the execution of the information query request; and when the elapsed duration exceeds the preset duration threshold, the information including the request identifier is included.
  • the query request is cached correspondingly to the intercepted information, and the interceptor is notified to send the intercepted information to the terminal.
  • the apparatus 600 further includes:
  • the update monitoring module 610 is configured to monitor whether information corresponding to the cached information in the database is updated.
  • the anti-parsing module 612 is configured to, when the update monitoring module detects that the information corresponding to the cached information in the database is updated, parse the information query request cached with the cached information into an executable information query request.
  • the cache update module 614 is configured to execute an executable information query request, re-acquire the corresponding information from the database, and perform update processing on the information cached corresponding to the information query request according to the re-acquired information.
  • the cache update module 614 is further configured to acquire a re-acquisition duration elapsed from when the executable information query request is started to when the corresponding information is re-acquired; when the re-acquisition duration exceeds the preset duration threshold, Then, the information cached in the cache corresponding to the information query request is updated to the re-acquired information.
  • the apparatus 600 further includes:
  • the valid duration timer module 616 is configured to: for the cached information query request, the corresponding cache valid duration is given; when the cache valid duration is exceeded, the corresponding information query request in the cache and the cached information corresponding to the information query request are deleted.
  • the cache processing apparatus may be implemented in the form of a computer program executable on a computer device as shown in FIG. 2, a non-volatile storage medium of the computer device
  • the various program modules constituting the cache processing device such as the request parsing module 602, the request identifier lookup module 604, the information acquisition module 606, and the cache module 608 shown in FIG. 6, may be stored.
  • Each of the program modules includes computer readable instructions for causing the computer device to perform the steps in the cache processing method of various embodiments of the present application described in this specification, for example, the computer device may The request parsing module 602 in the cache processing device 600 shown in FIG.
  • the computer device 6 parses the received information query request, obtains the request identifier carried in the information query request, and searches the cache for the presence of the request by the request identifier search module 604.
  • logo The computer device may execute the information query request to query the corresponding information from the database when the information acquisition module 606 does not have the request identifier in the cache.
  • the computer device may cache, by the cache module 608, the information query request including the request identifier and the queried information when the duration of the execution of the information query request exceeds a preset duration threshold, and return The information queried.
  • a computer apparatus comprising a memory and a processor, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, such that the processor performs the step of parsing the received information Querying the request, obtaining the request identifier carried in the information query request; searching for whether the request identifier exists in the cache; and when the request identifier does not exist in the cache, executing the information query request to query the corresponding query from the database
  • the information query request including the request identifier is cached corresponding to the queried information, and the queried location is returned, when the duration of the execution of the information query request exceeds the preset duration threshold.
  • the buffering the information query request including the request identifier with the queried information includes: converting the information query request into a cacheable format; converting to a cacheable format The information query request and the queried information are correspondingly cached; wherein the information query request in the cacheable format includes a unique request identifier.
  • the request identifier carried in the request includes: receiving and parsing the information query request sent by the terminal, and acquiring the request identifier carried in the information query request.
  • the duration of the execution of the information query request exceeds a preset duration threshold, the information query request including the request identifier is cached corresponding to the queried information, and the queried location is returned.
  • the information includes: intercepting, by the interceptor, the information that is queried from the database that is returned to the terminal; and obtaining a duration that is performed by executing the information query request; when the elapsed duration exceeds a preset duration threshold, And the information query request including the request identifier is cached corresponding to the intercepted information, and the interceptor is notified to send the intercepted information to the terminal.
  • the computer readable instructions further cause the processor to: monitor whether information in the database corresponding to the cached information is updated; when information in the database corresponding to the cached information is updated, And then parsing the information query request cached by the cached information into an executable information query request; executing the executable information query request, and re-acquiring the corresponding information from the database; according to the reacquired information And updating the information cached corresponding to the information query request.
  • the updating, according to the re-acquired information, the information cached by the information query request includes: obtaining, from the start of executing the executable information query request, to re-acquiring to the corresponding
  • the re-acquisition time is exceeded.
  • the information cached in the cache corresponding to the information query request is updated to the re-acquired information.
  • the computer readable instructions further cause the processor to perform the following steps: for the cached information query request, to assign a corresponding cache valid duration; when the cache valid duration is exceeded, the corresponding one of the caches is The information query request and the information cached corresponding to the information query request are deleted.
  • a storage medium storing computer readable instructions, when executed by one or more processors, causes one or more processors to perform the steps of: parsing the received information Querying the request, obtaining the request identifier carried in the information query request; searching for whether the request identifier exists in the cache; and when the request identifier does not exist in the cache, The information query request is performed to query the corresponding information from the database; when the duration of the execution of the information query request exceeds a preset duration threshold, the information query request including the request identifier is queried The information is cached correspondingly, and the information that is queried is returned.
  • the buffering the information query request including the request identifier with the queried information includes: converting the information query request into a cacheable format; converting to a cacheable format The information query request and the queried information are correspondingly cached; wherein the information query request in the cacheable format includes a unique request identifier.
  • the parsing the received information query request, and acquiring the request identifier carried in the information query request includes: receiving and parsing the information query request sent by the terminal, and acquiring the request identifier carried in the information query request .
  • the duration of the execution of the information query request exceeds a preset duration threshold, the information query request including the request identifier is cached corresponding to the queried information, and the queried location is returned.
  • the information includes: intercepting, by the interceptor, the information that is queried from the database that is returned to the terminal; and obtaining a duration that is performed by executing the information query request; when the elapsed duration exceeds a preset duration threshold, And the information query request including the request identifier is cached corresponding to the intercepted information, and the interceptor is notified to send the intercepted information to the terminal.
  • the computer readable instructions further cause the processor to: monitor whether information in the database corresponding to the cached information is updated; when information in the database corresponding to the cached information is updated, And then parsing the information query request cached by the cached information into an executable information query request; executing the executable information query request, and re-acquiring the corresponding information from the database; according to the reacquired information And updating the information cached corresponding to the information query request.
  • the updating, according to the re-acquired information, the information cached by the information query request includes: obtaining, from the start of executing the executable information query request, to re-acquiring to the corresponding
  • the re-acquisition time is exceeded.
  • the information cached in the cache corresponding to the information query request is updated to the re-acquired information.
  • the computer readable instructions further cause the processor to perform the following steps: for the cached information query request, to assign a corresponding cache valid duration; when the cache valid duration is exceeded, the corresponding one of the caches is The information query request and the information cached corresponding to the information query request are deleted.
  • the various steps in the various embodiments of the present application are not necessarily performed in the order indicated by the steps. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in the embodiments may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be executed at different times, and the execution of these sub-steps or stages The order is also not necessarily sequential, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of the other steps.
  • the storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, or a read-only memory (ROM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

L'invention concerne un procédé de gestion de cache consistant à : résoudre une demande de requête d'informations reçue pour obtenir un identifiant de requête présent dans la demande de requête d'informations ; chercher dans un cache pour déterminer si l'identifiant de requête existe ; dans le cas où l'identifiant de requête n'existe pas dans le cache, exécuter la demande de requête d'informations pour rechercher les informations correspondantes dans une base de données ; et dans le cas où une période de temps durant laquelle la demande de requête d'informations est exécutée dépasse un seuil de période de temps prédéfini, effectuer une mise en cache correspondante de la demande de requête d'informations comprenant l'identifiant de demande et les informations recherchées, et renvoyer les informations recherchées.
PCT/CN2017/104653 2017-07-27 2017-09-29 Procédé et dispositif de gestion de cache, dispositif informatique et support de stockage WO2019019382A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710626312.7A CN107665235B (zh) 2017-07-27 2017-07-27 缓存处理方法、装置、计算机设备和存储介质
CN201710626312.7 2017-07-27

Publications (1)

Publication Number Publication Date
WO2019019382A1 true WO2019019382A1 (fr) 2019-01-31

Family

ID=61122474

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104653 WO2019019382A1 (fr) 2017-07-27 2017-09-29 Procédé et dispositif de gestion de cache, dispositif informatique et support de stockage

Country Status (2)

Country Link
CN (1) CN107665235B (fr)
WO (1) WO2019019382A1 (fr)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829837A (zh) * 2018-06-19 2018-11-16 北京五八信息技术有限公司 一种信息查询方法、装置、设备及计算机可读存储介质
CN109788073A (zh) * 2019-03-11 2019-05-21 四川长虹电器股份有限公司 一种Web系统中文件下载的方法
CN112100092B (zh) * 2019-06-18 2024-05-24 北京京东尚科信息技术有限公司 一种信息缓存方法、装置、设备及介质
CN111737564B (zh) * 2019-08-29 2024-04-05 北京京东尚科信息技术有限公司 一种信息查询方法、装置、设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120041970A1 (en) * 2010-08-12 2012-02-16 Cdnetworks Co., Ltd. Distributed data cache for on-demand application acceleration
CN104092776A (zh) * 2014-07-25 2014-10-08 北京赛科世纪数码科技有限公司 一种信息存取方法和系统
CN105447171A (zh) * 2015-12-07 2016-03-30 北京奇虎科技有限公司 数据缓存方法与装置
CN106021445A (zh) * 2016-05-16 2016-10-12 努比亚技术有限公司 一种加载缓存数据的方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138587B (zh) * 2015-07-31 2019-09-10 小米科技有限责任公司 数据访问方法、装置和系统
CN106469150B (zh) * 2015-08-14 2019-10-08 阿里巴巴集团控股有限公司 文件读写方法、装置和系统
CN105100289A (zh) * 2015-09-24 2015-11-25 中邮科通信技术股份有限公司 一种基于注解描述的Web缓存方法
CN105357271B (zh) * 2015-09-30 2019-05-24 华为技术有限公司 一种信息处理方法及对应装置
CN106161623A (zh) * 2016-07-05 2016-11-23 上海帝联信息科技股份有限公司 缓存服务器、更新服务器及数据更新方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120041970A1 (en) * 2010-08-12 2012-02-16 Cdnetworks Co., Ltd. Distributed data cache for on-demand application acceleration
CN104092776A (zh) * 2014-07-25 2014-10-08 北京赛科世纪数码科技有限公司 一种信息存取方法和系统
CN105447171A (zh) * 2015-12-07 2016-03-30 北京奇虎科技有限公司 数据缓存方法与装置
CN106021445A (zh) * 2016-05-16 2016-10-12 努比亚技术有限公司 一种加载缓存数据的方法及装置

Also Published As

Publication number Publication date
CN107665235B (zh) 2020-06-30
CN107665235A (zh) 2018-02-06

Similar Documents

Publication Publication Date Title
WO2018184491A1 (fr) Procédé, appareil, et système d'obtention de ressources
WO2018099107A1 (fr) Procédé et dispositif de gestion de table de hachage, et support de stockage informatique
KR102133951B1 (ko) 짧은 링크 처리 방법, 디바이스, 및 서버
RU2615057C2 (ru) Способ и устройство для доступа к web-странице и маршрутизатор
WO2019019382A1 (fr) Procédé et dispositif de gestion de cache, dispositif informatique et support de stockage
US9928178B1 (en) Memory-efficient management of computer network resources
CN105635196B (zh) 一种获取文件数据的方法、系统和应用服务器
CN106302595B (zh) 一种对服务器进行健康检查的方法及设备
WO2011144175A1 (fr) Procédé de pré-lecture de données, nœud et système pour système de mémoire à table de hachage distribuée (dht)
US9407716B1 (en) Identifying content files in a cache using a response-based cache index
CN105653198A (zh) 数据处理方法及装置
US20150222725A1 (en) Caching proxy method and apparatus
WO2011103784A1 (fr) Procédé et équipement de traitement de données
CN104331428A (zh) 一种小文件和大文件的存储及访问方法
US10057368B1 (en) Method and system for incremental cache lookup and insertion
US20150142845A1 (en) Smart database caching
CN113419824A (zh) 数据处理方法、装置、系统及计算机存储介质
WO2020125630A1 (fr) Lecture de fichier
CN108540510B (zh) 一种云主机创建方法、装置及云服务系统
US20160117366A1 (en) Autonomic caching for in memory data grid query processing
WO2013091167A1 (fr) Procédé et système de stockage de fichier journal
CN105915619A (zh) 顾及访问热度的网络空间信息服务高性能内存缓存方法
CN112866339B (zh) 数据传输方法、装置、计算机设备和存储介质
CN101459599B (zh) 一种实现缓存数据访问与加载并发进行的方法及系统
CN117033831A (zh) 一种客户端缓存方法、装置及其介质

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 29/05/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17919495

Country of ref document: EP

Kind code of ref document: A1