Video file retrieval method and apparatus

By storing image files in a temporary cache and recording tag information on the server, the problem of low image file retrieval efficiency under multi-task concurrency is solved, achieving efficient image file transmission and resource utilization, and improving user experience.

CN116501708BActive Publication Date: 2026-07-31PING AN TECH (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PING AN TECH (SHENZHEN) CO LTD
Filing Date
2023-03-27
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In multi-task concurrent scenarios, existing technologies have low efficiency in retrieving image files, resulting in long waiting times for users. In particular, when multiple users access the file in batches or large files, access to the formal storage area becomes severely congested.

Method used

Image files are stored in a temporary cache and tagged with information. The tagged information is then used to retrieve the files from the temporary cache during the image file retrieval stage, which relieves pressure on the main storage area and improves transmission efficiency.

Benefits of technology

By using a temporary cache for retrieving image files, the transmission efficiency of image files is improved, server resources are fully utilized, user experience is enhanced, and storage pressure is alleviated in scenarios involving multiple users, batch retrieval, and large file retrieval.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116501708B_ABST
    Figure CN116501708B_ABST
Patent Text Reader

Abstract

This application relates to the field of data processing technology, and provides a method and apparatus for retrieving image files. The method includes: storing the acquired current image file into a temporary cache area with a remaining storage space not less than a preset storage space, based on the current remaining storage space of each temporary cache area, and recording the tag information corresponding to the current image file; during the image file retrieval stage, determining the tag information of a target image file from the acquired retrieval request, and retrieving the target image file from the target temporary cache area corresponding to the tag information of the target image file in each of the temporary cache areas according to the tag information of the target image file, and sending it to a target terminal. The image file retrieval method provided in this application can improve the efficiency of retrieving image files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, specifically to a method and apparatus for retrieving image files. Background Technology

[0002] Currently, when retrieving image files, the system typically searches the official storage area on the server to retrieve the corresponding image file. However, in multi-task concurrent scenarios, such as when a large number of users simultaneously retrieve files, retrieve files in batches, or retrieve large files, access to the official storage area can become congested, resulting in low efficiency in retrieving image files and long waiting times for users.

[0003] Invention documents

[0004] This application aims to at least solve one of the technical problems existing in the related art. To this end, this application proposes an image file retrieval method that can improve the efficiency of retrieving image files.

[0005] This application also proposes an image file retrieval device.

[0006] This application also proposes an electronic device.

[0007] This application also proposes a computer-readable storage medium.

[0008] The image file retrieval method according to the first aspect of this application includes:

[0009] Based on the current remaining storage space of each temporary cache area, the acquired current image file is stored in the temporary cache area with a current remaining storage space not less than the preset storage space, and the tag information corresponding to the current image file is recorded.

[0010] During the image file retrieval stage, the tag information of the target image file is determined from the obtained retrieval request. Based on the tag information of the target image file, the target image file is retrieved from the target temporary cache corresponding to the tag information of the target image file in each of the temporary caches and sent to the target terminal.

[0011] The image file is a file that records the user's verification process.

[0012] The tag information includes user information and recording time;

[0013] Each of the temporary cache areas has a preset file cleanup cycle, which is used to determine the storage duration of the image file in the temporary cache area.

[0014] The image file retrieval method provided in this application embodiment stores the acquired current image file in a temporary cache area with remaining storage space not less than a preset storage space, and records the user information corresponding to the current image file. During the image file retrieval stage, based on the tag information of the target image file in the retrieval request, the target image file is retrieved from the target temporary cache area corresponding to the user information and sent to the target terminal. This allows the image file to be retrieved from each temporary cache area according to the tag information of the image file to be retrieved, thereby alleviating the pressure on the server's formal storage area in scenarios such as multi-user retrieval, batch retrieval, and large file retrieval, improving the transmission efficiency of image files, making full use of server resources, and significantly improving the customer experience, thereby alleviating the pressure of image file retrieval and improving the efficiency of image file retrieval.

[0015] According to one embodiment of this application, it also includes:

[0016] If it is determined that the target image file does not exist in the target temporary cache area, then based on the tag information corresponding to the target image file, obtain the user terminals that have retrieved the target image file from the historical retrieval information;

[0017] The access request is forwarded to at least one of the user terminals to retrieve the target image file from the user terminal and send it to the target terminal.

[0018] According to one embodiment of this application, the user terminal is a user terminal whose terminal identifier is recorded in the server.

[0019] According to one embodiment of this application, it also includes:

[0020] If it is determined that the target image file does not exist in any of the user terminals, the target image file is retrieved from the formal storage area and sent to the target terminal;

[0021] The formal storage area contains the image files of each of the temporary cache areas simultaneously;

[0022] After the image file is completely stored in the temporary cache area, it is synchronized from the temporary cache area to the formal storage area.

[0023] According to one embodiment of this application, after the image file is fully stored in the temporary cache area, it is synchronized from the temporary cache area to the formal storage area.

[0024] According to one embodiment of this application, retrieving the target image file and sending it to the target terminal includes:

[0025] The target image file is retrieved, and the target image file is encrypted according to a preset encryption strategy corresponding to the tag information of the target image file to generate an encrypted image file;

[0026] Send the encrypted image file to the target terminal;

[0027] The preset encryption strategy corresponding to the tag information is unique.

[0028] According to one embodiment of this application, the access request is generated periodically by the server, and the target terminal is determined based on the tag information of the target image file.

[0029] An image file retrieval apparatus according to a second aspect embodiment of this application includes:

[0030] The image file storage module is used to store the acquired current image file into the temporary cache area with a current remaining storage space not less than a preset storage space, based on the current remaining storage space of each temporary cache area, and to record the tag information corresponding to the current image file.

[0031] The image file retrieval module is used to determine the tag information of the target image file from the obtained retrieval request during the image file retrieval stage, so as to retrieve the target image file from the target temporary cache corresponding to the tag information of the target image file in each of the temporary caches and send it to the target terminal according to the tag information of the target image file.

[0032] The image file is a file that records the user's verification process.

[0033] The tag information includes user information and recording time;

[0034] Each of the temporary cache areas has a preset file cleanup cycle, which is used to determine the storage duration of the image file in the temporary cache area.

[0035] An electronic device according to a third aspect of this application includes a processor and a memory storing a computer program, wherein the processor executes the computer program to implement the image file retrieval method described in any of the above embodiments.

[0036] A computer-readable storage medium according to a fourth aspect of this application stores a computer program thereon, which, when executed by a processor, implements the image file retrieval method described in any of the above embodiments.

[0037] A computer program product according to a fifth aspect of this application includes: when the computer program is executed by a processor, it implements the image file retrieval method as described in any of the above embodiments.

[0038] The above-described one or more technical solutions in the embodiments of this application have at least one of the following technical effects:

[0039] By storing the acquired current image file in a temporary cache with remaining storage space no less than a preset storage space, and recording the user information corresponding to the current image file, during the image file retrieval stage, the target image file is retrieved from the target temporary cache corresponding to the user information based on the tag information of the target image file in the retrieval request and sent to the target terminal. This allows image files to be retrieved from various temporary caches according to the tag information of the image file to be retrieved, thereby alleviating the pressure on the server's formal storage area in scenarios such as multi-user retrieval, batch retrieval, and large file retrieval, improving the transmission efficiency of image files, making full use of server resources, and significantly improving the customer experience, thus relieving the pressure of image file retrieval and improving the efficiency of image file retrieval.

[0040] Furthermore, when it is determined that the target image file does not exist in the target temporary cache, the system retrieves the user terminals that have retrieved the target image file from the historical retrieval information and forwards the retrieval request to at least one user terminal to retrieve the target image file from the user terminal and send it to the target terminal. This allows the target image file to be retrieved from the user terminals that have retrieved the target image file, thereby further alleviating the pressure on the server's formal storage area caused by scenarios such as multi-user retrieval, batch retrieval, and large file retrieval. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 This is a flowchart illustrating the image file retrieval method provided in the embodiments of this application;

[0043] Figure 2 This is a flowchart illustrating an image file retrieval method provided in another embodiment of this application;

[0044] Figure 3 This is an embodiment of the present application. Figure 1 A more detailed flowchart illustrating the process of retrieving the target image file in the image file retrieval method;

[0045] Figure 4 This is a schematic diagram of the image file retrieval device provided in the embodiments of this application;

[0046] Figure 5 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0048] The image file retrieval method and apparatus provided in this application will be described in detail and explained through several specific embodiments.

[0049] With rapid economic development, the user base of mobile payment / financial management software and social networking software is growing rapidly. To ensure user security when using these software programs, it is typically necessary to record the user's actions during verification processes, such as facial recognition, and then bind these images to the user information entered during verification for subsequent checks. For example, first, the user's name is obtained, then facial recognition is initiated, the image of the user during facial recognition is recorded, and the resulting image file is mapped to the user's name to obtain the corresponding image file. After obtaining the image files for each user's information, they are usually stored in the server's main storage area, such as fixed storage. When the image file needs to be retrieved for verification, it is retrieved from this main storage area. However, since image files are usually large in size and take a long time to transmit, in multi-task concurrent scenarios, if batch retrieval of image files is required, it can cause congestion in accessing the main storage area, resulting in low efficiency in retrieving image files.

[0050] Therefore, in one embodiment, an image file retrieval method is provided. This method is applied to a server for retrieving image files from users. The server can be a standalone server or a server cluster composed of multiple servers. It can also be a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence sampling point devices.

[0051] like Figure 1 As shown, the image file retrieval method provided in this embodiment includes:

[0052] Step 101: Based on the current remaining storage space of each temporary cache area, store the acquired current image file into the temporary cache area with a current remaining storage space not less than the preset storage space, and record the tag information corresponding to the current image file;

[0053] Step 102: In the image file retrieval stage, the tag information of the target image file is determined from the obtained retrieval request. Based on the tag information of the target image file, the target image file is retrieved from the target temporary cache corresponding to the tag information of the target image file in each of the temporary caches and sent to the target terminal.

[0054] The image file is a file that records the user's verification process.

[0055] The tag information includes user information and recording time;

[0056] Each of the temporary cache areas has a preset file cleanup cycle, which is used to determine the storage duration of the image file in the temporary cache area.

[0057] By storing the acquired current image file in a temporary cache with remaining storage space no less than a preset storage space, and recording the user information corresponding to the current image file, during the image file retrieval stage, the target image file is retrieved from the target temporary cache corresponding to the user information based on the tag information of the target image file in the retrieval request and sent to the target terminal. This allows image files to be retrieved from various temporary caches according to the tag information of the image file to be retrieved, thereby alleviating the pressure on the server's formal storage area in scenarios such as multi-user retrieval, batch retrieval, and large file retrieval, improving the transmission efficiency of image files, making full use of server resources, and significantly improving the customer experience, thus relieving the pressure of image file retrieval and improving the efficiency of image file retrieval.

[0058] In one embodiment, the temporary object storage area in the server used for temporary data storage is pre-divided into multiple temporary cache areas, each with the same storage space. Each temporary cache area has a corresponding file cleanup cycle, which can be the same for all temporary cache areas or set according to actual needs. When the storage time of an image file in a certain temporary cache area reaches the file cleanup cycle, the image file is deleted from that temporary cache area. When a user-uploaded current image file is obtained, the current remaining storage space of each temporary cache area is pre-detected and compared with a preset storage space. A temporary cache area with a current remaining storage space not less than the preset storage space is selected from all temporary cache areas to store the current image file. The preset storage space can be the maximum value of the current remaining storage space of each temporary cache area. If each temporary buffer includes buffer 1, buffer 2, and buffer 3, and the current remaining storage space in buffer 1 is 500MB, in buffer 2 it is 600MB, and in buffer 3 it is 700MB, then the current remaining storage space in buffer 3 will be used as the preset storage space. In this case, the temporary buffer with the largest current remaining storage space can be selected to store the current image file. If there are multiple temporary buffers with a current remaining storage space not less than the preset storage space, then one temporary buffer can be randomly selected to store the current image file.

[0059] To improve the storage efficiency of the current image file, in one embodiment, if there are multiple temporary caches with remaining storage space not less than the preset storage space, one can select a temporary cache that is in an idle state, i.e., there is no storage thread for the current image file, or select a temporary cache with the fewest storage threads for the current image file to store the current image file, thereby relieving storage pressure and improving the storage efficiency of the current image file.

[0060] For example, each temporary cache area with remaining storage space not less than the preset storage space includes cache area 1, cache area 2, and cache area 3. If cache area 1 and cache area 2 are storing a certain image file, then the current image file is stored in cache area 3. Alternatively, if cache area 1 and cache area 2 are storing two image files, while cache area 3 is storing one image file, then the current image file is stored in cache area 3.

[0061] While storing image files in the temporary cache, if an image file is completely stored in the temporary cache, the image file is synchronized from the temporary cache to the formal storage area. This is to prevent the image file from being unable to be retrieved again when it is deleted from the temporary cache due to the file cleanup cycle after storage.

[0062] When storing the current image file in the temporary cache, since the current image file is a video of a user performing a verification operation, the user information of the user performing the verification operation, such as the user's name, is also obtained along with the current image file. Additionally, each image file has its corresponding recording time. Therefore, after obtaining the current image file, a filename can be generated based on the user's name and the corresponding recording time. The user's name and recording time information are combined as the tag information for the current image file. For example, if the user who recorded the current image file is user A, and the recording time is YYYYMMDD, then the tag information for the current image file is (user A, YYYYMMDD). The current image file can also be stored in the temporary cache and named as Current Date (YYYYMMDD)\User A.

[0063] Because image files are temporarily stored in a temporary cache upon acquisition, subsequent batch retrieval of image files can directly retrieve them from this temporary cache. This fully utilizes server resources, alleviates system pressure, and improves the transmission efficiency of image files during retrieval. Furthermore, since image files are stored in a temporary cache with available remaining storage space equal to or greater than a preset storage space upon acquisition, server resources are also fully utilized during image file storage.

[0064] During the stage where image file retrieval is required, the tag information of the target image file can be extracted from the obtained retrieval request. This retrieval request can be sent by a target terminal. For example, the target terminal selects a specific user information and recording time from the recorded user information and recording time of each image file to form tag information, and then generates a retrieval request based on this tag information according to the HTTP or SOCKET protocol and sends it to the server, allowing the server to receive the retrieval request. Alternatively, the retrieval request can also be a periodically generated retrieval request by the server. For example, the server can randomly select a user information and recording time from the recorded user information and recording time of each image file every 5 minutes to form tag information, and generate a retrieval request based on this tag information.

[0065] After receiving a request, the tag information of the target image file to be obtained is extracted from the request. Then, based on the tag information, the temporary cache area that stores the target image file corresponding to the tag information is determined from each temporary cache area as the target temporary cache area. The target image file is then searched in the target temporary cache area. After the target image file is found in the target temporary cache area, the target image file is sent to the target terminal.

[0066] In one embodiment, if the retrieval request is generated periodically by the server, the target terminal can be determined based on the tag information of the target image file. Specifically, to improve review efficiency, multiple terminal devices can be set up to receive image files for review. Each terminal device can be a desktop terminal or a portable terminal, such as a laptop computer. Simultaneously, the server pre-stores a mapping table recording the correspondence between each tag information and each terminal device, i.e., pre-setting which image file with which tag information should be sent to which terminal device for review. At this time, after obtaining the target image file from the target temporary cache, the target terminal can be selected from the mapping table based on the tag information of the target image file, and the target image file can be sent to the target terminal corresponding to the tag information for review.

[0067] When searching for a target image file in the temporary cache, considering that the target image file may have reached the file cleanup cycle in the target cache, meaning that the target image file has been deleted from the target cache, in order to retrieve the target image file, the target image file can be directly searched for in the formal storage area based on the tag information of the target image file.

[0068] Alternatively, in one embodiment, such as Figure 2 As shown, it also includes:

[0069] Step 201: Determine that the target image file does not exist in the target temporary cache area, and obtain the user terminals that have retrieved the target image file from the historical retrieval information based on the tag information corresponding to the target image file.

[0070] Step 202: Forward the access request to at least one of the user terminals to retrieve the target image file from the user terminal and send it to the target terminal.

[0071] In one embodiment, the server pre-records terminal identifiers of multiple user terminals, and the server and the user terminals corresponding to the recorded terminal identifiers are in the same distributed system. The terminal identifier may include the IP address of the user terminal. Since a user terminal downloads the retrieved image file to itself when retrieving it, user terminals that have retrieved an image file typically store that image file. Therefore, if the target image file cannot be found in the target temporary cache based on its tag information, the system can search for user terminals that have retrieved the target image file in the historical retrieval information, and then forward the retrieval request to one of those user terminals. Based on the tag information in the retrieval request, the target image file is retrieved from that user terminal and sent to the target terminal. After forwarding the retrieval request to the user terminal, if the user terminal retrieves the target image file, it directly sends the retrieved target image file to the target terminal without first transmitting it to the server. The user terminal simply sends a notification message to the server indicating that the target image file has been successfully sent.

[0072] When it is determined that the target image file does not exist in the target temporary cache, the system retrieves the user terminals that have retrieved the target image file from the historical retrieval information and forwards the retrieval request to at least one user terminal to retrieve the target image file from the user terminal and send it to the target terminal. This allows the target image file to be retrieved from the user terminals that have retrieved the target image file, thereby further alleviating the pressure on the server's formal storage area caused by scenarios such as multi-user retrieval, batch retrieval, and large file retrieval.

[0073] In one embodiment, if the target image file is not found on the user terminal, the user terminal will send a message to the server indicating that the target image file does not exist. If the server receives the message from all user terminals, in order to retrieve the target image file, it can search for the target image file in the formal storage area based on the target image file's tag information, retrieve the target image file, and send it to the target terminal. If the target image file is still not found in the formal storage area, it indicates that the target image file does not exist, and a message indicating that the target image file does not exist is generated and sent to the target terminal.

[0074] When the target image file is retrieved from the temporary cache or formal storage, to ensure the security of the target image file transmission, in one embodiment, such as... Figure 3 As shown, retrieving the target image file and sending it to the target terminal includes:

[0075] Step 301: Retrieve the target image file, encrypt the target image file according to the preset encryption strategy corresponding to the tag information of the target image file, and generate an encrypted image file;

[0076] Step 302: Send the encrypted image file to the target terminal;

[0077] The preset encryption strategy corresponding to the tag information is unique.

[0078] In one embodiment, to ensure the security of target image file transmission, after retrieving the target image file, a preset encryption strategy uniquely corresponding to the tag information of the target image file can be obtained from various encryption strategies based on the tag information of the target image file, and then encrypted to generate an encrypted image file. This ensures that image files with different tag information have different encryption methods, thereby improving the security of image file transmission. After obtaining the encrypted image file, it can be sent to the target terminal.

[0079] The image file retrieval apparatus provided in this application is described below. The image file retrieval apparatus described below can be referred to in correspondence with the image file retrieval method described above.

[0080] In one embodiment, such as Figure 4 As shown, an image file retrieval device is provided, comprising:

[0081] The image file storage module 210 is used to store the acquired current image file into the temporary cache area with a current remaining storage space not less than a preset storage space, based on the current remaining storage space of each temporary cache area, and to record the tag information corresponding to the current image file.

[0082] The image file retrieval module 220 is used to determine the tag information of the target image file from the obtained retrieval request during the image file retrieval stage, so as to retrieve the target image file from the target temporary cache corresponding to the tag information of the target image file in each of the temporary caches and send it to the target terminal according to the tag information of the target image file.

[0083] The image file is a file that records the user's verification process.

[0084] The tag information includes user information and recording time;

[0085] Each of the temporary cache areas has a preset file cleanup cycle, which is used to determine the storage duration of the image file in the temporary cache area.

[0086] By storing the acquired current image file in a temporary cache with remaining storage space no less than a preset storage space, and recording the user information corresponding to the current image file, during the image file retrieval stage, the target image file is retrieved from the target temporary cache corresponding to the user information based on the tag information of the target image file in the retrieval request and sent to the target terminal. This allows image files to be retrieved from various temporary caches according to the tag information of the image file to be retrieved, thereby alleviating the pressure on the server's formal storage area in scenarios such as multi-user retrieval, batch retrieval, and large file retrieval, improving the transmission efficiency of image files, making full use of server resources, and significantly improving the customer experience, thus relieving the pressure of image file retrieval and improving the efficiency of image file retrieval.

[0087] In one embodiment, the image file retrieval module 220 is further configured to:

[0088] If it is determined that the target image file does not exist in the target temporary cache area, then based on the tag information corresponding to the target image file, obtain the user terminals that have retrieved the target image file from the historical retrieval information;

[0089] The access request is forwarded to at least one of the user terminals to retrieve the target image file from the user terminal and send it to the target terminal.

[0090] In one embodiment, the user terminal is a user terminal whose terminal identifier is recorded in the server.

[0091] In one embodiment, the image file retrieval module 220 is further configured to:

[0092] If it is determined that the target image file does not exist in any of the user terminals, the target image file is retrieved from the formal storage area and sent to the target terminal;

[0093] The formal storage area contains the image files of each of the temporary cache areas simultaneously;

[0094] After the image file is completely stored in the temporary cache area, it is synchronized from the temporary cache area to the formal storage area.

[0095] In one embodiment, after the image file is fully stored in the temporary cache, it is synchronized from the temporary cache to the formal storage area.

[0096] In one embodiment, the image file retrieval module 220 is specifically used for:

[0097] The target image file is retrieved, and the target image file is encrypted according to a preset encryption strategy corresponding to the tag information of the target image file to generate an encrypted image file;

[0098] Send the encrypted image file to the target terminal;

[0099] The preset encryption strategy corresponding to the tag information is unique.

[0100] Figure 5 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 5 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 can call a computer program in the memory 830 to execute an image file retrieval method, such as including:

[0101] Based on the current remaining storage space of each temporary cache area, the acquired current image file is stored in the temporary cache area with a current remaining storage space not less than the preset storage space, and the tag information corresponding to the current image file is recorded.

[0102] During the image file retrieval stage, the tag information of the target image file is determined from the obtained retrieval request. Based on the tag information of the target image file, the target image file is retrieved from the target temporary cache corresponding to the tag information of the target image file in each of the temporary caches and sent to the target terminal.

[0103] The image file is a file that records the user's verification process.

[0104] The tag information includes user information and recording time;

[0105] Each of the temporary cache areas has a preset file cleanup cycle, which is used to determine the storage duration of the image file in the temporary cache area.

[0106] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0107] On the other hand, embodiments of this application also provide a storage medium, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the image file retrieval methods provided in the above embodiments, such as including:

[0108] Based on the current remaining storage space of each temporary cache area, the acquired current image file is stored in the temporary cache area with a current remaining storage space not less than the preset storage space, and the tag information corresponding to the current image file is recorded.

[0109] During the image file retrieval stage, the tag information of the target image file is determined from the obtained retrieval request. Based on the tag information of the target image file, the target image file is retrieved from the target temporary cache corresponding to the tag information of the target image file in each of the temporary caches and sent to the target terminal.

[0110] The image file is a file that records the user's verification process.

[0111] The tag information includes user information and recording time;

[0112] Each of the temporary cache areas has a preset file cleanup cycle, which is used to determine the storage duration of the image file in the temporary cache area.

[0113] On the other hand, embodiments of this application also provide a processor-readable storage medium storing a computer program for causing a processor to execute the methods provided in the above embodiments, such as including:

[0114] Based on the current remaining storage space of each temporary cache area, the acquired current image file is stored in the temporary cache area with a current remaining storage space not less than the preset storage space, and the tag information corresponding to the current image file is recorded.

[0115] During the image file retrieval stage, the tag information of the target image file is determined from the obtained retrieval request. Based on the tag information of the target image file, the target image file is retrieved from the target temporary cache corresponding to the tag information of the target image file in each of the temporary caches and sent to the target terminal.

[0116] The image file is a file that records the user's verification process.

[0117] The tag information includes user information and recording time;

[0118] Each of the temporary cache areas has a preset file cleanup cycle, which is used to determine the storage duration of the image file in the temporary cache area.

[0119] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for retrieving image files, characterized in that, Applied to servers, including: Based on the current remaining storage space of each temporary cache area, the acquired current image file is stored in the temporary cache area with a current remaining storage space not less than the preset storage space, and the tag information corresponding to the current image file is recorded. During the image file retrieval stage, the tag information of the target image file is determined from the obtained retrieval request. Based on the tag information of the target image file, the target image file is retrieved from the target temporary cache corresponding to the tag information of the target image file in each of the temporary caches and sent to the target terminal. The image file is a file that records the user's verification process. The tag information includes user information and recording time; Each of the aforementioned temporary cache areas has a preset file cleanup cycle, which is used to determine the storage duration of the image file in the temporary cache area; If the target image file is determined not to exist in the target temporary cache, search for each user terminal that has retrieved the target image file from the historical retrieval information; The access request is forwarded to at least one of the user terminals, so that the user terminal retrieves the target image file according to the tag information in the access request and sends it to the target terminal; The tag information is determined based on the user's name and the recording time corresponding to the current image file.

2. The image file retrieval method according to claim 1, characterized in that, The user terminal is the user terminal whose terminal identifier is recorded in the server.

3. The image file retrieval method according to claim 1, characterized in that, Also includes: If it is determined that the target image file does not exist in any of the user terminals, the target image file is retrieved from the formal storage area and sent to the target terminal; The formal storage area contains the image files of each of the temporary cache areas simultaneously; After the image file is completely stored in the temporary cache area, it is synchronized from the temporary cache area to the formal storage area.

4. The image file retrieval method according to claim 3, characterized in that, After the image file is completely stored in the temporary cache area, it is synchronized from the temporary cache area to the formal storage area.

5. The image file retrieval method according to any one of claims 1-4, characterized in that, Retrieving the target image file and sending it to the target terminal includes: The target image file is retrieved, and the target image file is encrypted according to a preset encryption strategy corresponding to the tag information of the target image file to generate an encrypted image file; Send the encrypted image file to the target terminal; The preset encryption strategy corresponding to the tag information is unique.

6. The image file retrieval method according to any one of claims 1-4, characterized in that, The access request is generated periodically by the server, and the target terminal is determined based on the tag information of the target image file.

7. An image file retrieval device, characterized in that, include: The image file storage module is used to store the acquired current image file into the temporary cache area with a current remaining storage space not less than a preset storage space, based on the current remaining storage space of each temporary cache area, and to record the tag information corresponding to the current image file. The image file retrieval module is used to determine the tag information of the target image file from the obtained retrieval request during the image file retrieval stage, so as to retrieve the target image file from the target temporary cache corresponding to the tag information of the target image file in each of the temporary caches and send it to the target terminal according to the tag information of the target image file. The image file is a file that records the user's verification process. The tag information includes user information and recording time; Each of the aforementioned temporary cache areas has a preset file cleanup cycle, which is used to determine the storage duration of the image file in the temporary cache area; The image file retrieval module is also used for: If the target image file is determined not to exist in the target temporary cache, search for each user terminal that has retrieved the target image file from the historical retrieval information; The access request is forwarded to at least one of the user terminals, so that the user terminal retrieves the target image file according to the tag information in the access request and sends it to the target terminal; The tag information is determined based on the user's name and the recording time corresponding to the current image file.

8. An electronic device comprising a processor and a memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the image file retrieval method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the image file retrieval method according to any one of claims 1 to 6.