Movatterモバイル変換


[0]ホーム

URL:


CN111324586B - Picture display method and device based on cache, electronic equipment and medium - Google Patents

Picture display method and device based on cache, electronic equipment and medium
Download PDF

Info

Publication number
CN111324586B
CN111324586BCN201811536775.5ACN201811536775ACN111324586BCN 111324586 BCN111324586 BCN 111324586BCN 201811536775 ACN201811536775 ACN 201811536775ACN 111324586 BCN111324586 BCN 111324586B
Authority
CN
China
Prior art keywords
picture
data stream
cache
characteristic information
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811536775.5A
Other languages
Chinese (zh)
Other versions
CN111324586A (en
Inventor
周高锋
邓冬
史俊峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co LtdfiledCriticalChina Mobile Communications Group Co Ltd
Priority to CN201811536775.5ApriorityCriticalpatent/CN111324586B/en
Publication of CN111324586ApublicationCriticalpatent/CN111324586A/en
Application grantedgrantedCritical
Publication of CN111324586BpublicationCriticalpatent/CN111324586B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The invention discloses a picture display method, a device, electronic equipment and a medium based on cache, wherein the method comprises the following steps: the electronic equipment acquires the characteristic information of the picture data stream head of the picture from a server according to the network address of the picture to be displayed, wherein the characteristic information of the picture data stream head is generated according to the timestamp of the picture uploading server; generating a key according to a character string spliced by the timestamp corresponding to the characteristic information and the network address and a preset hash algorithm; if the target picture corresponding to the key is not stored in the cache, acquiring a picture data stream of the picture from the server, converting the picture data stream into the picture, storing the picture in the cache according to the key, and displaying the picture. The picture display scheme based on the cache, which can avoid network traffic waste and ensure picture display accuracy, is provided.

Description

Picture display method and device based on cache, electronic equipment and medium
Technical Field
The present invention relates to the field of image buffering technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for displaying images based on buffering.
Background
When an Application (APP) runs in an electronic device, a picture caching technology is generally used to cache pictures in order to improve a User Interface (UI) response speed, user experience, and reduce network traffic usage. Specifically, when the electronic device loads the picture for the first time, the picture is not cached in the electronic device, the electronic device needs to load the picture from the network, and after the loading is completed, the picture is stored in the cache, so that when the picture is used again, the picture does not need to be loaded from the network again, and the purposes of reducing network traffic use, improving UI response speed and the like are achieved.
Currently, a picture is usually stored in a buffer memory in the form of a (key), wherein the hash (key) is a hash value obtained by performing hash operation on a name, a network address and other identifiers of the picture, and the value (value) is real data of the picture. However, in the actual use process, the network address of the picture is unchanged, but the content of the picture is changed, in this case, the key generated according to the identification of the picture is not changed, the picture corresponding to the key having the mapping relation with the network address in the display buffer memory is always an old picture, and the user experience is affected.
In the prior art, a mode of automatically updating the cache is generally adopted to prevent the situation that the cached pictures are always old pictures, but the cache expiration time cannot be accurately set in the mode, and when the pictures are automatically updated, the unchanged pictures are updated again, so that huge flow waste is caused, the meaning of the cache is reduced, and the problems that network flow resource waste exists in the prior art and the pictures are displayed as old pictures are needed to be solved.
Disclosure of Invention
The invention provides a picture display method, device, electronic equipment and medium based on cache, which are used for solving the problems of network traffic waste and inaccurate picture display in the prior art.
In a first aspect, the present invention discloses a method for displaying a picture based on cache, the method comprising:
according to the network address of the picture to be displayed, obtaining the characteristic information of the picture data stream head of the picture from a server, wherein the characteristic information of the picture data stream head is generated according to the timestamp of the picture uploading server;
generating a hash value key according to a character string spliced by the timestamp corresponding to the characteristic information and the network address and a preset hash algorithm;
if the target picture corresponding to the key is not stored in the cache, acquiring a picture data stream of the picture from the server, converting the picture data stream into the picture, storing the picture in the cache according to the key, and displaying the picture.
In an alternative design, generating the characteristic information of the picture data stream header according to the timestamp of the picture upload server includes:
and converting the picture into a picture data stream, adding the characteristic information of which the current time stamp is converted into a set byte to the head of the picture data stream, and uploading the picture data stream added with the characteristic information to the server.
In an alternative design, the method further comprises:
and if the target picture corresponding to the key is stored in the cache, acquiring and displaying the target picture stored in the cache.
In an alternative design, before the saving of the picture in the cache according to the key, the method further includes:
and establishing a mapping relation between the network address and the key.
In an optional design, before the obtaining, from the server, the feature information of the header of the picture data stream of the picture according to the network address of the picture to be displayed, the method further includes:
judging whether the network can be connected or not;
if so, the step of acquiring the characteristic information of the picture data stream head of the picture from the server according to the network address of the picture to be displayed is carried out;
if not, judging whether a target key with a mapping relation with the network address exists in the cache, if so, acquiring and displaying a picture corresponding to the target key in the cache, and if not, displaying prompt information of the wrong picture.
In an optional design, before the key is generated according to the character string formed by splicing the timestamp corresponding to the feature information and the network address and the preset hash algorithm, the method further includes:
and checking the integrity of the characteristic information, and if the characteristic information passes the checking, performing a character string spliced by the timestamp corresponding to the characteristic information and the network address and a preset hash algorithm to generate a key.
In a second aspect, the present invention discloses a buffer-based picture display device, the device comprising:
the acquisition module is used for acquiring the characteristic information of the picture data stream head of the picture from the server according to the network address of the picture to be displayed, wherein the characteristic information of the picture data stream head is generated according to the timestamp of the picture uploading server;
the generation module is used for generating a hash value key according to a character string spliced by the timestamp corresponding to the characteristic information and the network address and a preset hash algorithm;
and the cache display module is used for acquiring a picture data stream of the picture from the server if the target picture corresponding to the key is not stored in the cache, converting the picture data stream into the picture, storing the picture in the cache according to the key, and displaying the picture.
In an alternative design, generating the characteristic information of the picture data stream header according to the timestamp of the picture upload server includes:
and converting the picture into a picture data stream, adding the characteristic information of which the current time stamp is converted into a set byte to the head of the picture data stream, and uploading the picture data stream added with the characteristic information to the server.
In an optional design, the buffer memory display module is further configured to, if a target picture corresponding to the key is stored in the buffer memory, obtain the target picture stored in the buffer memory, and display the target picture.
In an optional design, the buffer display module is further configured to establish a mapping relationship between the network address and the key.
In an alternative design, the apparatus further comprises:
the judging module is used for judging whether the network can be connected or not; if so, triggering an acquisition module, if not, judging whether a target key with a mapping relation with the network address exists in the cache, if so, acquiring and displaying a picture corresponding to the target key in the cache, and if not, displaying prompt information of the wrong picture.
In an alternative design, the apparatus further comprises:
and the verification module is used for verifying the integrity of the characteristic information, and triggering the generation module if the verification is passed.
In a third aspect, the present invention discloses an electronic device, comprising: a memory, a processor, and a transceiver;
the processor is configured to read the program in the memory, and execute the following procedures: according to the network address of the picture to be displayed, obtaining the characteristic information of the picture data stream head of the picture from a server through a transceiver, wherein the characteristic information of the picture data stream head is generated according to the timestamp of the picture uploading server; generating a hash value key according to a character string spliced by the timestamp corresponding to the characteristic information and the network address and a preset hash algorithm; if the target picture corresponding to the key is not stored in the cache, acquiring a picture data stream of the picture from the server, converting the picture data stream into the picture, storing the picture in the cache according to the key, and displaying the picture.
In an alternative design, generating the characteristic information of the picture data stream header according to the timestamp of the picture upload server includes:
and converting the picture into a picture data stream, adding the characteristic information of which the current time stamp is converted into a set byte to the head of the picture data stream, and uploading the picture data stream added with the characteristic information to the server.
In an optional design, the processor is further configured to, if the target picture corresponding to the key is stored in the cache, obtain the target picture stored in the cache, and display the target picture.
In an alternative design, the processor is further configured to establish a mapping relationship between the network address and the key.
In an alternative design, the processor is further configured to determine whether a network connection is possible; if so, the step of acquiring the characteristic information of the picture data stream head of the picture from the server through the transceiver according to the network address of the picture to be displayed is carried out, if not, whether a target key with a mapping relation with the network address exists in the cache is judged, if yes, the picture corresponding to the target key in the cache is acquired and displayed, and if not, the prompt information of the wrong picture is displayed.
In an alternative design, the processor is further configured to verify the integrity of the characteristic information, and if verification passes the subsequent steps.
In a fourth aspect, the present invention discloses an electronic device, comprising: the device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory has stored therein a computer program which, when executed by the processor, causes the processor to perform the method described in the first aspect or any of the alternative designs of the first aspect.
In a fifth aspect, the invention discloses a computer readable storage medium storing a computer program executable by an electronic device, the program, when run on the electronic device, causing the electronic device to perform the method as described in the first aspect or any of the alternative designs of the first aspect.
In a sixth aspect, the invention discloses a computer program product which, when read and executed by an electronic device, causes the electronic device to perform the method described in the first aspect or any of the alternative designs of the first aspect.
The invention has the following beneficial effects:
in the embodiment of the invention, the characteristic information generated according to the uploading timestamp is added to the head of the picture data stream, and whether the picture exists in the cache or not is judged according to the characteristic information and the hash value generated by the network address of the picture during picture display, so that whether the cache needs to be updated or not is judged, the problem that the picture is displayed as an old picture due to the fact that the picture content cannot be identified to be changed when the network address of the picture is unchanged in the prior art is avoided, and the picture display accuracy is improved. Meanwhile, whether the content of the picture changes or not can be determined by only acquiring the characteristic information of the header of the picture data stream, so that the picture in the cache is prevented from being updated when the picture does not change, and the network traffic is saved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a process for displaying a picture based on cache according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a picture uploading process according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a characteristic information data protocol according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a picture display device based on cache according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of promoting an understanding of the principles and advantages of the invention, reference will now be made in detail to the drawings, in which embodiments illustrated in the drawings are intended to illustrate, but not limit the invention to the specific embodiments illustrated. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1:
fig. 1 is a schematic diagram of a process for displaying a picture based on cache, which includes:
s101: and acquiring the characteristic information of the picture data stream header of the picture from the server according to the network address of the picture to be displayed.
The image display method based on the cache is applied to electronic equipment, and the electronic equipment can be mobile phones, tablet computers, notebook computers, personal computers and other equipment.
Specifically, in the embodiment of the present invention, the header of the picture data stream of the picture stored in the server contains the feature information of the picture, where the feature information of the picture is generated according to the timestamp of the picture uploading server.
Generating the characteristic information of the header of the picture data stream according to the timestamp of the picture uploading server comprises:
and converting the picture into a picture data stream, adding the characteristic information of which the current time stamp is converted into a set byte to the head of the picture data stream, and uploading the picture data stream added with the characteristic information to the server.
Specifically, the picture uploading device converts a picture into a picture data stream, acquires a current time stamp, generates feature information of a set byte containing the current time stamp, adds the generated feature information to the head of the picture data stream, generates the picture data stream containing the feature information, and uploads the picture data stream containing the feature information to the server.
For example, referring to the picture upload flow shown in fig. 2: (1) The picture uploading equipment converts a picture to be uploaded into a picture data stream (Br); (2) The picture uploading device obtains a current time stamp (ts) and constructs feature information (Bh) containing a set byte of the current time stamp (ts) according to a set feature information data protocol, the set byte is taken as 32 bytes as an example in the embodiment of the invention, the set feature information (Bh) data protocol is shown in fig. 3, and the feature information sequentially comprises a time stamp length of 4 bytes (bits), a time stamp of t bytes and a bit supplementing part of 32-4-t bytes; (3) The picture uploading device adds the generated characteristic information (Bh) to the head of the picture data stream (Br) to output a new picture data stream (Bp), wherein bp=Bh+Br; (4) The picture uploading device encodes the picture data stream (Bp) according to the encoding mode of the device, such as Base64 encoding, and the like, so as to obtain an encoded picture data stream (Bb), and uploads the picture data stream (Bb) containing the characteristic information to the server.
Specifically, when updating the content of the picture uploaded to the server, referring to fig. 3, after the picture uploading device converts the new picture into a picture data stream, the picture uploading device regenerates the feature information according to the current timestamp, adds the regenerated feature information into the picture data stream converted by the new picture, uploads the picture data stream containing the regenerated feature information to the network address of the picture to be updated in the server, updates the picture to be updated, and changes the feature information in the updated picture.
Preferably, in the embodiment of the present invention, the network address of the picture is a uniform resource locator (UniformResource Locator, URL), and the picture uploading device may be a device such as a mobile phone, a tablet computer, a notebook computer, or the like, may be the same device as the electronic device, or may be different from the electronic device, and will not be described again.
Specifically, the electronic device obtains, according to a network address of a picture to be displayed, feature information of a header of a picture data stream stored by a server under the network address. As shown in fig. 3, taking the feature information as an example of 32 bytes, the electronic device only obtains the feature information of 32 bytes of the header of the picture data stream stored by the server under the network address, so that the whole picture data stream is prevented from being obtained, and the data amount of 1M, 3M, etc. relative to the picture can be ignored.
S102: and generating a key according to a character string spliced by the timestamp corresponding to the characteristic information and the network address and a preset hash algorithm.
Specifically, the electronic device obtains a timestamp corresponding to the feature information according to the feature information of the header of the picture data stream. Taking the feature information shown in fig. 3 as an example, an exemplary process of acquiring the timestamp corresponding to the feature information is: the electronic device first obtains the content of the first 4 bytes of the feature information, parses the content of the first 4 bytes, for example, performs Base64 decoding, and obtains the length (size) of the integer type timestamp, that is, the timestamp length t shown in fig. 3. And obtaining the contents from the 5 th byte to the 4 th+size byte from the characteristic information, analyzing the contents from the 5 th byte to the 4 th+size byte, and obtaining the long integer time stamp (ts).
The electronic device concatenates the obtained timestamp (ts) with the network address of the picture to be displayed into a string, and runs a set hash algorithm, such as a message digest algorithm (Message Digest Algorithm, MD 5), to generate a key for the concatenated string.
Optionally, before generating the key, the method further includes:
and checking the integrity of the characteristic information, and if the characteristic information passes the checking, performing a character string spliced by the timestamp corresponding to the characteristic information and the network address and a preset hash algorithm to generate a key.
Preferably, in the embodiment of the present invention, after the electronic device obtains the feature information of the header of the picture data stream, the integrity of the feature information is checked, for example, whether the feature information is a set byte or not is checked, and after the verification is passed, the subsequent step of generating the key is performed, so as to ensure the accuracy of picture caching and display.
S103: and judging whether the target picture corresponding to the key is stored in the cache, if so, performing S104, and if not, performing S105.
S104: and obtaining and displaying the target picture stored in the cache.
S105: and acquiring a picture data stream of the picture from the server, converting the picture data stream into the picture, storing the picture in a cache according to the key, and displaying the picture.
In the embodiment of the invention, the cache of the electronic device can be a network cache, a memory cache, a disk cache and the like of the electronic device. In the cache of the electronic device, the picture cached by the electronic device is saved in the form of (key, value). After generating the key of the spliced character string, the electronic equipment searches whether the target key which is the same as the generated key exists in the self cache, further judges whether the target picture which corresponds to the generated key exists in the cache, and if the target key which is the same as the generated key exists in the cache, determines that the target picture which corresponds to the generated key exists in the cache, acquires the target picture which corresponds to the target key in the cache and displays the target picture.
If the target picture corresponding to the generated key does not exist in the cache, the electronic equipment acquires the complete picture data stream of the picture from the server according to the network address of the picture to be displayed, removes the characteristic information of the head of the picture data stream, and obtains the picture data stream of the real picture content and converts the picture data stream into the picture. Meanwhile, the electronic device takes the generated key as a key value to store the picture in a buffer, namely, stores the picture in the form of (key, value) in the buffer. Illustratively, taking the generated key as key (x), the picture as value (y) as an example, the picture is saved in a form of (key (x), value (y)) in a cache of the electronic device. And the electronic equipment displays the picture after storing the picture in the cache.
In the embodiment of the invention, the characteristic information generated according to the uploading timestamp is added to the head of the picture data stream, and whether the picture exists in the cache or not is judged according to the characteristic information and the hash value generated by the network address of the picture during picture display, so that whether the cache needs to be updated or not is judged, the problem that the picture is displayed as an old picture due to the fact that the picture content cannot be identified to be changed when the network address of the picture is unchanged in the prior art is avoided, and the picture display accuracy is improved. Meanwhile, whether the content of the picture changes or not can be determined by only acquiring the characteristic information of the header of the picture data stream, so that the picture in the cache is prevented from being updated when the picture does not change, and the network traffic is saved.
Example 2:
in order to improve the user experience, on the basis of the foregoing embodiment, in an embodiment of the present invention, before the picture is saved in the cache according to the key, the method further includes:
and establishing a mapping relation between the network address and the key.
Specifically, in the embodiment of the invention, a mapping relationship between a network address corresponding to the picture and a key corresponding to the picture is also established, so that the picture is displayed when the electronic equipment cannot be connected with a network.
Optionally, before the obtaining, from the server, the feature information of the header of the picture data stream of the picture according to the network address of the picture to be displayed, the method further includes:
judging whether the network can be connected or not;
if so, the step of acquiring the characteristic information of the picture data stream head of the picture from the server according to the network address of the picture to be displayed is carried out;
if not, judging whether a target key with a mapping relation with the network address exists in the cache, if so, acquiring and displaying a picture corresponding to the target key in the cache, and if not, displaying prompt information of the wrong picture.
Specifically, before the electronic equipment obtains the characteristic information of the picture data stream header from the server, judging whether the network can be connected, if so, carrying out the subsequent step of obtaining the characteristic information of the picture data stream header of the picture from the server according to the network address of the picture to be displayed; if the network cannot be connected, searching whether a target key with a mapping relation with the network address of the picture to be displayed exists in the mapping relation between the network address and the key, if so, acquiring and displaying a picture corresponding to the target key in a cache, and if not, displaying prompt information of an error picture, such as displaying a default error picture.
Example 3:
fig. 4 is a schematic structural diagram of a buffer-based image display device according to an embodiment of the present invention, where the device includes:
the obtaining module 41 is configured to obtain, from a server, feature information of a header of a picture data stream of a picture according to a network address of the picture to be displayed, where the feature information of the header of the picture data stream is generated according to a timestamp of the picture uploading server;
the generating module 42 is configured to generate a hash value key according to a character string formed by splicing the timestamp corresponding to the feature information and the network address and a preset hash algorithm;
and the cache display module 43 is configured to obtain a picture data stream of the picture from the server if the target picture corresponding to the key is not stored in the cache, convert the picture data stream into the picture, store the picture in the cache according to the key, and display the picture.
Preferably, generating the feature information of the picture data stream header according to the timestamp of the picture upload server includes:
and converting the picture into a picture data stream, adding the characteristic information of which the current time stamp is converted into a set byte to the head of the picture data stream, and uploading the picture data stream added with the characteristic information to the server.
Preferably, the buffer display module 43 is further configured to obtain and display the target picture stored in the buffer if the target picture corresponding to the key is stored in the buffer.
Preferably, the cache display module 43 is further configured to establish a mapping relationship between the network address and the key.
Preferably, the apparatus further comprises:
a judging module 44, configured to judge whether the network can be connected; if so, triggering an acquisition module, if not, judging whether a target key with a mapping relation with the network address exists in the cache, if so, acquiring and displaying a picture corresponding to the target key in the cache, and if not, displaying prompt information of the wrong picture.
Preferably, the apparatus further comprises:
and the checking module 45 is used for checking the integrity of the characteristic information, and triggering the generating module if the checking is passed.
Example 4:
based on the same inventive concept, the embodiment of the invention also provides an electronic device, and because the principle of solving the problem of the electronic device is similar to that of the image display method based on the cache, the implementation of the electronic device can refer to the implementation of the method, and the repetition is omitted.
As shown in fig. 5, which is a schematic structural diagram of an electronic device according to an embodiment of the present invention, in fig. 5, a bus architecture may include any number of buses and bridges interconnected, and in particular, one or more processors 51 represented by the processor 51 and various circuits of the memory 53 represented by the memory 53 are linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. The transceiver 52 may be a number of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 51 is responsible for managing the bus architecture and general processing, and the memory 53 may store data used by the processor 51 in performing operations.
In the electronic device provided by the embodiment of the invention:
the processor 51 is configured to read the program in the memory 53, and execute the following procedures: according to the network address of the picture to be displayed, obtaining the characteristic information of the picture data stream header of the picture from a server through a transceiver 52, wherein the characteristic information of the picture data stream header is generated according to the timestamp of the picture uploading server; generating a hash value key according to a character string spliced by the timestamp corresponding to the characteristic information and the network address and a preset hash algorithm; if the target picture corresponding to the key is not stored in the cache, acquiring a picture data stream of the picture from the server, converting the picture data stream into the picture, storing the picture in the cache according to the key, and displaying the picture.
Preferably, generating the feature information of the picture data stream header according to the timestamp of the picture upload server includes:
and converting the picture into a picture data stream, adding the characteristic information of which the current time stamp is converted into a set byte to the head of the picture data stream, and uploading the picture data stream added with the characteristic information to the server.
Preferably, the processor 51 is further configured to obtain and display the target picture stored in the buffer if the target picture corresponding to the key is stored in the buffer.
Preferably, the processor 51 is further configured to establish a mapping relationship between the network address and the key.
Preferably, the processor 51 is further configured to determine whether a network can be connected; if so, the step of acquiring the characteristic information of the picture data stream header of the picture from the server through the transceiver 52 according to the network address of the picture to be displayed is performed, if not, whether a target key with a mapping relation with the network address exists in the cache is judged, if yes, the picture corresponding to the target key in the cache is acquired and displayed, and if not, the prompt information of the wrong picture is displayed.
Preferably, the processor 51 is further configured to check the integrity of the characteristic information, and if the check passes the following steps.
Example 5:
on the basis of the above embodiments, the embodiment of the present invention further provides an electronic device, as shown in fig. 6, including: processor 61, communication interface 62, memory 63 and communication bus 64, wherein processor 61, communication interface 62, memory 63 accomplish the mutual communication through communication bus 64;
the memory 63 stores therein a computer program which, when executed by the processor 61, causes the processor 61 to execute the cache-based picture display method described in the above embodiment.
On the basis of the above embodiments, the present invention further provides a computer storage readable storage medium, in which a computer program executable by an electronic device is stored, which when executed on the electronic device, causes the electronic device to execute the cache-based picture display method described in the above embodiments.
For system/device embodiments, the description is relatively simple as it is substantially similar to method embodiments, with reference to the description of method embodiments in part.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

the processor is configured to read the program in the memory, and execute the following procedures: according to the network address of the picture to be displayed, obtaining the characteristic information of the picture data stream head of the picture from a server through a transceiver, wherein the characteristic information of the picture data stream head is generated according to the timestamp of the picture uploading server; generating a hash value key according to a character string spliced by the timestamp corresponding to the characteristic information and the network address and a preset hash algorithm; if the target picture corresponding to the key is not stored in the cache, acquiring a picture data stream of the picture from the server, converting the picture data stream into a picture, storing the picture in the cache according to the key, and displaying the picture;
CN201811536775.5A2018-12-142018-12-14Picture display method and device based on cache, electronic equipment and mediumActiveCN111324586B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811536775.5ACN111324586B (en)2018-12-142018-12-14Picture display method and device based on cache, electronic equipment and medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811536775.5ACN111324586B (en)2018-12-142018-12-14Picture display method and device based on cache, electronic equipment and medium

Publications (2)

Publication NumberPublication Date
CN111324586A CN111324586A (en)2020-06-23
CN111324586Btrue CN111324586B (en)2024-04-09

Family

ID=71166955

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811536775.5AActiveCN111324586B (en)2018-12-142018-12-14Picture display method and device based on cache, electronic equipment and medium

Country Status (1)

CountryLink
CN (1)CN111324586B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN112256993B (en)*2020-09-222023-06-27恒鸿达科技有限公司Picture acceleration display method, system, equipment and medium
CN113434546B (en)*2021-06-242024-12-24江苏通付盾科技有限公司 A method for data flow computing based on dynamic time slice caching

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101409706A (en)*2007-10-092009-04-15华为技术有限公司Method, system and relevant equipment for distributing data of edge network
CN102096712A (en)*2011-01-282011-06-15深圳市五巨科技有限公司Method and device for cache-control of mobile terminal
CN103503486A (en)*2011-12-272014-01-08华为技术有限公司 A video publishing method and system, and a video playing method and system
CN104933054A (en)*2014-03-182015-09-23上海帝联信息科技股份有限公司Uniform resource locator (URL) storage method and device of cache resource file, and cache server
CN107766469A (en)*2017-09-292018-03-06北京金山安全管理系统技术有限公司A kind of method for caching and processing and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US7363361B2 (en)*2000-08-182008-04-22Akamai Technologies, Inc.Secure content delivery system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101409706A (en)*2007-10-092009-04-15华为技术有限公司Method, system and relevant equipment for distributing data of edge network
CN102096712A (en)*2011-01-282011-06-15深圳市五巨科技有限公司Method and device for cache-control of mobile terminal
CN103503486A (en)*2011-12-272014-01-08华为技术有限公司 A video publishing method and system, and a video playing method and system
CN104933054A (en)*2014-03-182015-09-23上海帝联信息科技股份有限公司Uniform resource locator (URL) storage method and device of cache resource file, and cache server
CN107766469A (en)*2017-09-292018-03-06北京金山安全管理系统技术有限公司A kind of method for caching and processing and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马郓 ; 刘譞哲 ; 梅宏 ; .面向移动Web应用的浏览器缓存性能度量与优化.软件学报.2020,(07),全文.*

Also Published As

Publication numberPublication date
CN111324586A (en)2020-06-23

Similar Documents

PublicationPublication DateTitle
US20150229613A1 (en)Methods and apparatus to provide extended object notation data
CN110597814B (en)Structured data serialization and deserialization method and device
CN104363271B (en)Document breakpoint transmission method and device
US20080071857A1 (en)Method, computer program, transcoding server and computer system for modifying a digital document
CN102882974B (en)Method for saving website access resources by identifying version number of website
WO2021051597A1 (en)Animation playing method and apparatus, and computer device and storage medium
CN104978277A (en)Method for debugging page, terminal and server
CN108733317B (en)Data storage method and device
JP2012529115A (en) Web page optimization
CN111897846B (en)Cache data verification method, device, equipment and storage medium
CN112580062A (en)Data consistency checking method and data uploading and downloading device
CN111324586B (en)Picture display method and device based on cache, electronic equipment and medium
CN112506878B (en) File processing method, device, storage medium and electronic device
CN112817602A (en)JSON format data sending and receiving method, device and medium
CN105988814B (en)Interface generation method and device
US20210099432A1 (en)Data consistency verification method, and data uploading and downloading device
CN112905464B (en)Application running environment data processing method and device
CN114189331B (en)Key storage and reading method, device, equipment and storage medium
CN108519884B (en)Application program installation package updating method, fusion method and related device
CN113438226B (en)Message generating and analyzing method, device and system based on hybrid transmission protocol
WO2015052967A1 (en)Server device, client device, information processing method, and recording medium
CN109361767B (en) Optimize the processing method, server, and client of client data display errors
CN106156235B (en)Picture downloading method and system based on Android platform
CN116702218B (en)Rendering method, device, terminal and storage medium of three-dimensional model in applet
CN105162594A (en)Quick signing method and signing device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp