CN110209968B - Data storage system, method, device and computer readable storage medium - Google Patents

Data storage system, method, device and computer readable storage medium Download PDF

Info

Publication number
CN110209968B
CN110209968B CN201910335405.3A CN201910335405A CN110209968B CN 110209968 B CN110209968 B CN 110209968B CN 201910335405 A CN201910335405 A CN 201910335405A CN 110209968 B CN110209968 B CN 110209968B
Authority
CN
China
Prior art keywords
data
information
client
cached
promotion
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
CN201910335405.3A
Other languages
Chinese (zh)
Other versions
CN110209968A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910335405.3A priority Critical patent/CN110209968B/en
Publication of CN110209968A publication Critical patent/CN110209968A/en
Application granted granted Critical
Publication of CN110209968B publication Critical patent/CN110209968B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0251Targeted advertisements

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a data storage system, a data storage method, a data storage device and a computer readable storage medium. Wherein the method comprises the following steps: the client firstly judges whether a corresponding data acquisition request can be generated according to the configuration information sent by the server, and the server generates information to be cached of the corresponding client according to the data acquisition request, so that the client can conveniently perform corresponding data caching operation, and the data is cached on the local of the client. Therefore, the client can send the data acquisition request generated correspondingly according to the popularization data information and the characteristic information to the server based on the configuration information acquired from the server, so that the acquired data to be popularized takes the popularization data information and the characteristic information into consideration by the server, the problem that the use of the client is influenced due to the fact that a large amount of space of the client is occupied is avoided, meanwhile, the flow consumption of the client is reduced, and the use efficiency of the client and the broadband is improved while the popularization data are guaranteed to be smoothly played.

Description

Data storage system, method, device and computer readable storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a data storage system, method, apparatus, and computer-readable storage medium.
Background
At present, when a user watches a video by using a client, an operator generates corresponding advertisement data according to a preset strategy, and then correspondingly displays the advertisement data when the user watches the video through the client. Generally, advertisement data is obtained by a real-time online request server along with advertisement page loading, so that the advertisement data is influenced by a server (server) with cached data and the current network condition, and further, when the network condition is poor or the response of the server with cached data is slow, the problems of slow data loading and loading failure occur; for some types of advertisement data, the play-out speed of the video is directly influenced due to display failure.
In the prior art, in order to reduce the influence of the network and service conditions on the real-time loading of advertisement data, the display speed of the advertisement data is accelerated by using a mode of converting the real-time network loading into the local cache loading. However, when the advertisement data is cached, the problem of occupying the storage space in the user equipment is not considered, and the memory space of the user equipment is occupied when a large amount of popularization data is downloaded to the user equipment for caching, so that the normal use of the user equipment is influenced; and when a large amount of advertisement data caching operations are performed, the available network bandwidth is reduced while the user traffic is wasted.
Disclosure of Invention
In view of the above, embodiments of the present invention are proposed in order to provide a data storage method, system, apparatus and computer-readable storage medium that overcome the above problems or at least partially solve the above problems.
According to a first aspect of the present invention, there is provided a data storage method applied to a system including a client and a server, the method including:
the server side sends the configuration information to the client side according to a configuration acquisition request sent by the client side and used for acquiring the configuration information;
the client side judges whether a request condition of data caching is met or not according to configuration information sent by the server side, wherein the configuration information comprises a residual storage space threshold value and a preset network connection type;
under the condition that the client meets the request condition, generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client, and sending the data acquisition request to the server;
the server side generates information to be cached according to the data acquisition request sent by the client side, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client side;
and the client caches the data to be promoted according to the information to be cached and the configuration information sent by the server.
According to a second aspect of the present invention, there is provided another data storage method applied to a client, the method including:
receiving configuration information from a server, wherein the configuration information comprises a residual storage space threshold value and a preset network connection type;
judging whether the request condition of data caching is met or not according to the configuration information sent by the server;
under the condition that the request condition is met, generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client;
sending the data acquisition request to the server;
receiving information to be cached sent by the server, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
and caching the data to be promoted according to the information to be cached and the configuration information.
According to a third aspect of the present invention, a configuration obtaining request sent by a client for obtaining configuration information is provided, where the configuration information is sent to the client, and the configuration information includes a remaining storage space threshold and a preset network connection type;
receiving a data acquisition request sent by the client;
generating information to be cached according to the data acquisition request, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
and sending the information to be cached to the client.
According to a fourth aspect of the present invention, there is provided a data storage system, the system comprising: a client and a server;
the server is used for sending the configuration information to the client according to a configuration obtaining request sent by the client for obtaining the configuration information;
the client is used for judging whether a request condition of data caching is met or not according to configuration information sent by the server, wherein the configuration information comprises a residual storage space threshold value and a preset network connection type;
the client is used for generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client under the condition of meeting the request condition, and sending the data acquisition request to the server;
the server is used for generating information to be cached for indicating the client to perform caching operation according to the data acquisition request sent by the client, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
and the client is used for caching the data to be promoted according to the information to be cached and the configuration information sent by the server.
According to a fifth aspect of the present invention, there is provided another data storage apparatus, for use with a client, the apparatus comprising:
the information receiving module is used for receiving configuration information from a server, wherein the configuration information comprises a residual storage space threshold value and a preset network connection type;
the condition judgment module is used for judging whether the request condition of the data cache is met or not according to the configuration information sent by the server;
the information generation module is used for generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client under the condition of meeting the request condition;
the information sending module is used for sending the data acquisition request to the server;
the information receiving module is used for receiving information to be cached sent by the server, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
and the data caching module is used for caching the data to be promoted according to the information to be cached and the configuration information.
According to a sixth aspect of the present invention, there is provided a further data storage device applied to a server, the device comprising:
the information sending module is used for sending the configuration information to the client according to a configuration obtaining request which is sent by the client and used for obtaining the configuration information, wherein the configuration information comprises a residual storage space threshold value and a preset network connection type;
the information receiving module is used for receiving a data acquisition request sent by the client;
the information generating module is used for generating information to be cached according to the data acquisition request, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
the information sending module is further configured to send the information to be cached to the client.
The embodiment of the invention has the following advantages:
after the server side issues the configuration information to the client side, the client side determines whether the request generation condition is met according to the actual popularization data information and the characteristic information, correspondingly generates a data acquisition request under the condition that the request generation condition is met so as to acquire the information to be cached determined by the server side according to the data acquisition request, and the client side executes corresponding data caching operation according to the information to be cached. Therefore, the server can controllably set the to-be-cached data to be promoted of the client according to the promotion data information and the characteristic information of the client and by combining with the preset configuration information, and generate the to-be-cached information which accords with the promotion data information and the characteristic information of the client for the client; under the condition of meeting the request condition, caching of the data to be promoted is carried out, so that occupation of a large amount of space of the client side and consumption of excessive flow can be avoided, normal use and available bandwidth of client side equipment are guaranteed while the playing speed and accuracy of the promoted data are guaranteed, and the utilization rate of the client side is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating steps of a data storage method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating steps of another data storage method according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating steps of a further data storage method according to an embodiment of the present invention;
FIG. 4 is a block diagram of a data storage system provided by an embodiment of the present invention;
FIG. 5 is a block diagram of a data storage device provided by an embodiment of the present invention;
FIG. 6 is a block diagram of another data storage device provided by an embodiment of the present invention;
FIG. 7 is a block diagram of yet another data storage device provided by an embodiment of the present invention;
FIG. 8 is a block diagram of yet another data storage device provided by an embodiment of the present invention;
FIG. 9 is a block diagram of yet another data storage device provided by an embodiment of the present invention;
FIG. 10 is a block diagram of yet another data storage device provided by an embodiment of the present invention;
fig. 11 is a block diagram of another data storage device according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
It should be understood that the specific embodiments described herein are merely illustrative of the invention, but do not limit the invention to only some, but not all embodiments.
The embodiment of the invention provides a data storage method which can be applied to a system comprising a client and a server, wherein the server sends configuration information to the client according to a configuration acquisition request sent by the client for acquiring the configuration information; the client judges whether the request condition of data caching is met or not according to the configuration information sent by the server; the client generates a data acquisition request under the condition of meeting the request condition; after the client sends the data acquisition request to the server, the server generates information to be cached for indicating the client to perform caching operation according to the data acquisition request sent by the client; the information to be cached is the information which is generated by the server side according to the data acquisition request and comprises the data to be promoted, which is to be cached by the client side; and the client caches the data to be promoted according to the information to be cached and the configuration information sent by the server. In the embodiment of the invention, the client judges whether the corresponding data acquisition request can be generated according to the configuration information, the server generates the information to be cached of the corresponding client according to the data acquisition request, thereby facilitating the client to carry out the cache operation of the corresponding data to be promoted, therefore, when the promotion data is played, the corresponding promotion data can be directly called from the equipment where the client is positioned for playing, the synchronous downloading and playing of the promotion data under the condition of poor network condition and/or server state can be avoided, the playing speed of the promotion data is improved due to the influence on the playing speed of the promotion data, and the data to be promoted is downloaded and cached under the condition that the request is met, so that the possible faults in the promotion data acquisition process can be reduced.
Referring to fig. 1, a flow chart of steps of a data storage method is shown, which is applied to a system including a client and a server.
In the embodiment of the present invention, the client may specifically be an application installed on various terminals, such as an application on a computer or a mobile terminal, and the embodiment of the present invention does not limit the specific content of the client.
It can be understood that the server is a device communicating with the client, and the server may specifically be a corresponding server, a base station, and the like.
As shown in fig. 1, the method may include:
step 101, a server sends configuration information to a client according to a configuration obtaining request sent by the client for obtaining the configuration information.
In the embodiment of the present invention, the server may be a server for distributing data to be promoted, and after being started, the client sends a configuration acquisition request to the server to synchronize configuration information set on the server to the client, so that the client can perform the following caching operation on the data to be promoted according to the configuration information.
It should be noted that the configuration information is used to specifically control the cache operation of the data to be promoted at the client, where the configuration information includes a threshold of the remaining storage space, a preset network connection type, and a download condition including information such as a download speed limit, a download time interval, a download repetition threshold, and a download time.
Exemplarily, the cache operation can be performed under the condition that the residual storage space of the device where the client is located exceeds the threshold value of the residual storage space; the method comprises the steps that a preset network connection type is set, and data caching operation can be performed on a client under the condition of which network connection is determined, for example, the data caching operation can be performed on the client under the condition that the client uses WiFi connection; the method also comprises the steps of setting a caching moment for deciding when caching operation can be started, setting for deciding whether the promotion data downloading has a speed limit and the size of the corresponding speed limit, setting for deciding a time interval between two times of data caching, setting a promotion data downloading repeated time threshold value for deciding the overtime time and retry times of promotion data downloading, setting for deciding the caching capacity of the maximum client space occupied by caching the to-be-promoted data, setting for deciding the starting times of how many times of caching operation can be executed by one cold starting of the client and the like.
And 102, the client judges whether the request condition of the data cache is met or not according to the configuration information sent by the server.
In the embodiment of the invention, the client automatically judges whether the requirements in the configuration information are met or not according to the configuration information so as to determine whether the data caching request can be sent or not.
Specifically, when the remaining storage space of the device where the client is located is greater than or equal to the remaining storage space threshold and the network connection type of the device where the client is located is the preset network connection type, it is determined that the request condition is satisfied, for example, the preset network connection type may be WiFi connection.
And 103, generating a data acquisition request according to the popularization data information in the client and the characteristic information of the client under the condition that the client meets the request condition.
In the embodiment of the present invention, when the client satisfies the request condition, the client may generate a corresponding data acquisition request according to promotion data information cached in the client, for example, ID information of each promotion data in the client, file content information of the promotion data, and characteristic information of the client, for example, a remaining storage space of a device where the client is located, device information where the client is located, and current display content information of the client; the client currently displays content information, namely content watched by a current user, for example, episode content, episode information and the like, and sends a data acquisition request composed of the content to the server, and the server generates information to be cached correspondingly according to the data acquisition request, so that the client performs caching operation on the data to be promoted.
And 104, the client sends the data acquisition request to the server.
And 105, the server receives a data acquisition request sent by the client.
And 106, the server side generates information to be cached according to the data acquisition request.
The information to be cached comprises information of the data to be promoted, which is to be cached by the client.
In the embodiment of the invention, after receiving a data acquisition request sent by a client, a server detects existing promotion data (promotion data information) on the current client according to the data acquisition request so as to determine whether expired promotion data exists or not, whether tampered promotion data exists or not and the like; further, the information to be cached is correspondingly generated by combining the characteristic information of the client, such as the watching episode content and the episode number of the client, and the like, included in the data acquisition request sent by the client, wherein the information to be cached includes the data to be promoted, which is determined according to the characteristic information and corresponds to the watching episode content and the episode number of the client, that is, the data to be downloaded to the device where the client is located for caching, and if the tampered promotion data is detected to exist on the client, the promotion data to be promoted includes the promotion data which needs to be downloaded again and cached, that is, the data information which is cached on the client but tampered; in addition, if the fact that the expired popularization data exists on the client is detected, the information to be cached also comprises the information of the popularization data to be deleted, so that the client can delete the popularization data to be deleted corresponding to the information of the popularization data to be deleted after receiving the information to be cached.
It should be noted that when determining the data to be promoted according to the characteristic information of the client, the data to be promoted may be based on a release policy of the promotion data preset by a release provider of each promotion data at the server, such as a common contract release or a PDB (chinese: proprietary programmed purchase, english: programmed Direct Buy) release, and the like.
And step 107, the server side sends the information to be cached to the client side.
And step 108, the client receives the information to be cached sent by the server.
In a specific application, the information to be cached includes promotion information (if existing) that the client needs to delete and information of the data to be promoted, where the information includes a data ID of the data to be promoted, a download link of the data to be promoted, and the client can correspondingly delete expired promotion data and download and cache the data to be promoted according to the information to be cached.
And step 109, caching the data to be promoted by the client according to the information to be cached and the configuration information.
In a specific application, the client determines whether the downloading condition is satisfied based on the downloading condition in the configuration information set by the server received in step 102, and determines whether the downloading and caching operations of the data to be promoted can be performed. For example, the client may check, for example, every 5 minutes according to a loop set by the corresponding download condition, and determine whether the client satisfies the download condition, such as: the method comprises the steps that the current network connection type, whether a user puts the application of a client side in a background for too long time or not, whether the loading of the client side on a page is less than a preset time or not, whether the user watches videos of preset types or not through the client side or not and the like at present are determined, after the downloading condition is met, the downloading of data to be promoted can be started, and the data to be promoted are cached on the client side, so that the promoting data can be directly obtained from the client side locally to be played and displayed quickly.
It should be noted that the downloading condition may be that one of the requirements is satisfied, for example, whether the current network type or the loading of the page is less than a preset duration or is a preset type of video, etc.; preferably, it may be determined that the download condition is satisfied only when the above conditions are satisfied at the same time, and then the data to be promoted is downloaded and cached, which is not limited by the present invention.
In summary, the server in the embodiment of the present invention can controllably set the promotion data information to be cached at the client according to the promotion data information and the feature information of the client and by combining the preset configuration information, generate the information to be cached that conforms to the promotion data information and the feature information at the client, and perform the caching operation corresponding to the data to be promoted when the request condition is satisfied, thereby avoiding a large amount of occupation of the space and consumption of the traffic at the client, ensuring the normal use and the available bandwidth of the client device while ensuring the playing speed and the accuracy of the promotion data, and improving the utilization rate of the client.
The above-mentioned data storage method is described in detail below.
Fig. 2 is a flowchart of steps of another data storage method provided in an embodiment of the present invention, which is applied to a client, and as shown in fig. 2, the method may include:
step 201, after the client starts to operate, sending a configuration acquisition request for acquiring configuration information to the server.
It should be noted that, after the client is turned off each time, the cache information, such as the cached promotion data information and the cached configuration information, may be emptied, and then after the client is restarted each time, the configuration acquisition request needs to be sent again to acquire new configuration information and promotion data information from the server for caching.
Step 202, receiving configuration information from a server.
The configuration information includes a remaining storage space threshold and a preset network connection type.
Step 203, judging whether the request condition of the data cache is satisfied according to the configuration information sent by the server.
The configuration information includes a remaining storage space threshold, a preset network connection type and includes: the download speed limit, the download time interval, the download repetition time threshold, the download time and the like.
For example, the configuration information may be information that is generated correspondingly based on user experience, and is used to provide an optimal viewing experience for the user, where the download condition is used to indicate that, in a case where the download condition is satisfied, a download operation for the data to be promoted can be started. The downloading time indicates when to download the data to be promoted, for example, the downloading may be started after the user watches the feature for more than 2 minutes; in addition, the threshold of the remaining storage space can be set to 400M, and the preset network connection type is set to be WiFi connection, the threshold of the number of times of downloading repetition is set to be 10 times, the downloading time interval is set to be 1 minute, and the downloading time is set to be 1 second-2 seconds.
In addition, the configuration information can be further finely adjusted according to actual conditions, for example, the threshold of the remaining storage space is adjusted according to different device information corresponding to the client, and a threshold larger than the current threshold (400M) of the remaining storage space can be set for a large device storage space; otherwise, a threshold value smaller than the current remaining memory space threshold value may be set. And in the case of a good network condition, the preset network connection type may also be set to be a 4G network, etc., and the present invention is not limited specifically.
In a specific application, when the remaining storage space of the device where the client is located is greater than or equal to the remaining storage space threshold and the network connection type of the device where the client is located is a preset network connection type, it is determined that the request condition is satisfied.
Illustratively, when the remaining storage space of the device where the client is located is greater than 400M and the network connection type is WiFi connection, the request condition is satisfied.
And 204, determining expired popularization data in all the popularization data according to the identification information corresponding to all the popularization data cached in the client.
Wherein the identification information includes a data ID and a data expiration time. The data to be promoted in the invention can comprise data in the forms of videos, pictures or web pages and the like.
And step 205, deleting the expired popularization data from all the popularization data.
And step 206, generating promotion data information according to all promotion data after the overdue promotion data are deleted.
Specifically, after the client determines that the request condition of the data cache is met according to the configuration information, the client performs check (self-check) in the client, and if the expired promotion data exists according to the data expiration time in the identification information of the promotion data, the promotion data is directly deleted if the expired promotion data exists, so as to optimize the residual storage space in the client, and the residual promotion data (unexpired promotion data) in the client is used as promotion data information required by the following step for determining the data acquisition request, so as to update the promotion data on the client in real time.
For example, whether the promotion data is expired or not is determined based on the data expiration time set in the identification information corresponding to each promotion data, that is, the client may determine whether the promotion data is expired or not according to the comparison between the current time and the data expiration time, and if the current time is later than the data expiration time, it indicates that the promotion data is not expired; if the current time is earlier than the data expiration time, the promotion data is expired.
And step 207, under the condition that the request condition is met, generating a data acquisition request according to the popularization data information in the client and the characteristic information of the client.
The promotion data information comprises ID information of promotion data and file content information of the promotion data; the characteristic information of the client comprises the residual storage space of the equipment where the client is located, the network connection type of the equipment where the client is located, the information of the current display content of the client and the like.
Specifically, the ID information of the promotion data, the file content information of the promotion data, and the characteristic information of the client are spliced to form a uniform resource locator, which is used as the data acquisition request.
For example, the file content information of the promotion data may be digital signature information of the file content of the promotion data, for example, MD5 (english: Message Digest Algorithm; chinese: fifth version of Message Digest Algorithm) encryption processing is performed on the file content of the promotion data, and then a preset number of bits are taken as the digital signature information of the file content of the promotion data, for example, the first 4 bits after MD5 encryption are taken as the digital signature information of the file content of the promotion data and a data acquisition request is generated, so that while information security is ensured, since only the encrypted content with the preset number of bits is taken as the file content information and the data acquisition request is generated and then transmitted to the server, the data amount transmitted from the client is also reduced; the file content information of the promotion data can also be used for the server side to judge whether the promotion data in the client side is tampered, the server side can search and determine the original content of the file of the promotion data through the ID information of the promotion data, the original content is compared with the file content information of the promotion data after being processed by the MD5, whether the original content is consistent with the file content information of the promotion data is determined, and if the original content is consistent with the file content information of the promotion data, the promotion data is not tampered; otherwise, the promotion data needs to be downloaded again.
For example, the ID information of the promotion data, the file content information of the promotion data, the remaining storage space of the device where the client is located, the device information where the client is located, the current display content information of the client, and the like may be spliced into a URL (chinese: Uniform Resource Locator; english: hypertext transfer protocol) of an HTTP (hypertext transfer protocol), which is used to provide the current actual information of the client for the server, including the characteristic information corresponding to the device and the promotion data, so that the actual information (the current space size available for data caching, the current network condition, the current display actual content, and the like) of the client at the server provides information to be cached, thereby avoiding the occurrence of a situation that the normal use of the device where the client is located is influenced, and further performing download caching of the promotion data under the WiFi connection condition, thereby reducing the waste of the flow; after the client sends the data acquisition request to the server, the server determines the actual information of the client by analyzing the URL to generate the information to be cached for the client.
In addition, it should be noted that the generation method of the specific file content information (digital signature) is not limited in the present invention, and methods that can implement the specific technical solutions of the present invention all fall within the scope of the present invention.
And step 208, sending the data acquisition request to the server.
And step 209, receiving the information to be cached sent by the server.
The information to be cached comprises information of the data to be promoted, which is to be cached by the client.
And step 210, deleting the promotion data to be deleted corresponding to the promotion data information to be deleted.
The information to be cached also comprises promotion data information to be deleted.
In a specific application, according to received information to be cached, the client side firstly deletes expired or tampered popularization data indicated by the popularization data information to be deleted in the information to be cached, and then correspondingly downloads and caches the data to be promoted.
And step 211, caching the data to be promoted according to the information to be cached and the configuration information.
The configuration information further includes a download condition, which includes, for example: one or more of a download speed limit, a download time interval, a download repetition time threshold, and a download time.
Optionally, the step may include:
substep A1: and generating a queue to be cached corresponding to the data to be promoted according to the information to be cached.
The queue to be cached may be a queue generated according to a timestamp ordering corresponding to the data to be promoted or a queue generated according to a preset weight ordering, where the corresponding weight may be determined by different contract provisions set by a provider of the data to be promoted.
Substep A2: and downloading and caching the data to be promoted in the equipment where the client is located according to the queue to be cached and a preset downloading strategy under the condition that the downloading condition is met.
The downloading strategy is a strategy for controlling the caching operation of the data to be promoted, which is determined based on the configuration information.
For example, when a download condition is satisfied (for example, the remaining storage space of the device where the client is located is greater than or equal to the remaining storage space threshold and the network connection type of the device where the client is located is a preset network connection type), downloading of the data to be promoted may be started, the first data to be promoted to be cached is obtained from the queue to be cached, and downloading of the first data to be promoted is started according to the download speed limit, the download timeout time, the download retry number, and the like.
The download condition and the request condition may be the same or different.
For example, after the first to-be-promoted data is downloaded successfully, the client may store information such as a data ID and data expiration time corresponding to the first to-be-promoted data in a database of the client, and simultaneously detect whether a remaining storage space of the device where the client is located has reached a threshold of the remaining storage space after the device where the client is located caches the first to-be-promoted data, if the remaining storage space has exceeded the threshold, delete the promotion data that has been cached in the client for the longest time and is not used, and then determine whether the remaining storage space has reached the threshold of the remaining storage space, that is, whether the to-be-promoted data can be downloaded again: if the download condition is met, the data to be promoted which is sequenced to be the first bit at this time can be obtained from the queue to be cached, and the caching operation of the data to be promoted is repeated until all the promotion data in the queue to be cached finish the caching operation.
Step 212, responding to the play instruction, determining whether the data to be played corresponding to the play instruction is cached on the device where the client is located.
In step 213, in case that it is determined that the data to be played is cached on the device where the client is located, the data to be played is played.
In the specific application, when a client needs to display data, after a play instruction is correspondingly generated, firstly, data to be played corresponding to the play instruction is searched on the client, whether the data is cached in the client is judged, if the data is cached in the client, the data is directly called and played, and therefore the display speed of popularization data is improved; if the data to be played is not cached in the client, the data to be played is requested again from the server, that is, the steps described in the embodiment of the present invention are executed, so as to download and cache the data to be played on the device where the client is located.
In addition, it should be noted that after the data to be promoted is downloaded and cached in the client, the data to be promoted can be directly obtained locally from the client and repeatedly displayed for many times, so as to deepen the impression of the user. Meanwhile, under the condition of good network condition, the promotion data can be downloaded to the local (the device where the client is located is cached), so that when the promotion data is displayed in the following steps, the real-time and rapid display of the data to be promoted can be realized, the display speed is increased, the probability of promotion data display is increased, and the failure rate which possibly occurs in the promotion data acquisition process is reduced.
The technical scheme of the invention can be used as a process under a video playing application program at the client and used for carrying out cache control on the promotion data at the client according to the configuration information; or may be independent of the playing application program as an independent control function, and the application is not limited to a specific form.
Fig. 3 is a flowchart of steps of another data storage method provided in an embodiment of the present invention, which is applied to a server, and as shown in fig. 3, the method may include:
step 301, receiving a configuration acquisition request sent by a client.
Step 302, sending the configuration information to the client according to a configuration obtaining request sent by the client for obtaining the configuration information.
Optionally, the step may include:
sub-step C1, in response to the configuration acquisition request, generates corresponding configuration information.
Sub-step C2 sending the configuration information to the client.
For example, the server generates configuration information corresponding to an actual situation according to the received configuration acquisition request, and then sends the configuration information to the client, for example, the configuration information is adjusted through previous user investigation or feedback, and after receiving a new configuration acquisition request, the configuration information is correspondingly generated to be used as a basis for the client to perform caching.
Step 303, receiving a data acquisition request sent by the client.
The above steps are specifically referred to the embodiment shown in fig. 1, and are not described herein again.
And step 304, generating information to be cached for instructing the client to perform caching operation according to the data acquisition request.
The data acquisition request comprises promotion data information in the client and characteristic information of the client, and the information to be cached comprises information of data to be promoted, which is to be cached by the client.
Illustratively, the step includes:
and a substep D1 of generating the first to-be-cached data information by using a preset generation strategy according to the data acquisition request.
The generating strategy is to set a strategy for downloading the promotion data for the client according to the characteristic information of the client. Exemplarily, the server generates corresponding data information to be cached for the client in a personalized manner according to the characteristic information and the remaining storage space of the client; for example, according to episode information watched by a current user at the client, corresponding customized promotion data information is obtained, and the size, the number and the like of data to be promoted are determined by combining the residual storage space.
And a substep D2 of judging whether the cached promotion data of the client has expired promotion data and tampered promotion data or not according to the promotion data information.
Illustratively, when the cached promotion data of the client is updated or a delivery contract corresponding to the promotion data expires, the cached promotion data can be determined to be expired, and then the updated promotion data can be downloaded again after the expired promotion data is deleted according to the updated content; or the data to be promoted corresponding to the new release contract is downloaded again. The promotion data information also comprises file content information of the promotion data, so that the server can compare the file content information of the promotion data with corresponding file content information stored on the server to determine whether the file content information of the promotion data is consistent with the corresponding file content information; in the case of consistency, no tampering occurs; otherwise, the client side indicates that the tampered popularization data exists in the cached popularization data, namely, the client side needs to download again.
And a substep D3, generating overdue data information according to the overdue promotion data when the overdue promotion data exist in the promotion data cached by the client.
Illustratively, all pieces of information of the promotion data are stored in the server, after the server receives ID information in the promotion data information of the client, the server correspondingly searches for data expiration time corresponding to the ID information to determine whether there is expired promotion data, and if so, the ID information of the expired promotion data is sent to the client as expired data information, so that the client deletes the expired promotion data corresponding to the ID of the expired promotion data.
And a substep D4, generating second data information to be cached according to the tampered popularization data when the tampered popularization data exists in the popularization data cached by the client.
Illustratively, the promotion data information includes ID information of the promotion data and file content information of the promotion data, the server searches for corresponding file content according to the received ID information of the promotion data, compares the file content information with the file content information of the promotion data to determine whether there is tampered promotion data, and if there is tampered promotion data, the tampered promotion data is used as a part of the information to be cached to instruct the client to re-download the tampered promotion data.
And a substep D5, taking the first to-be-cached promotion data information, the expired data information and/or the second to-be-cached data information as to-be-cached information.
Substep D6: and under the condition that the expired promotion data does not exist in the promotion data cached by the client and the tampered promotion data exists, taking the first data information to be cached and the second data information to be cached as the information to be cached.
Substep D7: and under the conditions that expired promotion data exists in the promotion data cached by the client and tampered promotion data does not exist, taking the first to-be-cached data information and the expired data information as to-be-cached information.
Substep D8: and under the condition that the expired promotion data does not exist in the promotion data cached by the client and the tampered promotion data does not exist, the first to-be-cached data information is used as to-be-cached information.
That is, the information to be cached first includes the first promotion data information to be cached, which is to be downloaded and cached; further, according to the judgment result of the sub-step D2, the method may further include: expired data information to be deleted; and/or the second to-be-buffered data information to be replaced, namely the data information to be downloaded and buffered again, and then any sub-step from the sub-step D5 to the sub-step D8 is correspondingly executed.
Step 305, sending the information to be cached to the client.
In summary, in the embodiments of the present invention, the client determines whether a corresponding data acquisition request can be generated according to the configuration information sent by the server, and the server then generates information to be cached corresponding to the client according to the data acquisition request, so as to facilitate the client to perform a corresponding data caching operation, and after data is cached locally at the client, when promotional data is displayed, promotional data information can be directly acquired from the client cache, thereby reducing the influence of a network condition and a server state on a promotional data display rate, improving a promotional data display speed, and reducing a failure rate that may occur in a promotional data acquisition process.
Fig. 4 is a block diagram of a data storage system according to an embodiment of the present invention, and as shown in fig. 4, the system 400 may include a server 410 and a client 420;
the server side is used for sending the configuration information to the client side according to a configuration obtaining request which is sent by the client side and used for obtaining the configuration information;
the client is used for judging whether the request condition of the data cache is met or not according to configuration information sent by the server, wherein the configuration information comprises a residual storage space threshold value and a preset network connection type;
the client is used for generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client under the condition of meeting the request condition, and sending the data acquisition request to the server;
the server is used for generating information to be cached according to the data acquisition request sent by the client, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
and the client is used for caching the data to be promoted according to the information to be cached and the configuration information sent by the server.
Optionally, the client is further configured to determine, after the play instruction is obtained, whether the data to be played corresponding to the play instruction is cached on the device where the client is located;
and the client is also used for playing the data to be played under the condition that the data to be played is determined to be cached on the equipment where the client is located.
Fig. 5 is a block diagram of a data storage device according to an embodiment of the present invention, which is applied to a client, and as shown in fig. 5, the data storage device 500 may include:
the information receiving module 510 is configured to receive configuration information from the server, where the configuration information includes a remaining storage space threshold and a preset network connection type.
The condition determining module 520 is configured to determine whether a request condition for data caching is satisfied according to the configuration information sent by the server.
And an information generating module 530, configured to generate a data obtaining request according to the promotion data information in the client and the characteristic information of the client if the request condition is met.
The information sending module 540 is configured to send the data obtaining request to the server.
The information receiving module 510 is further configured to receive information to be cached sent by the server, where the information to be cached includes information of data to be promoted, which is to be cached by the client.
And the data caching module 550 is configured to cache the data to be promoted according to the information to be cached and the configuration information.
Optionally, on the basis of fig. 5, fig. 6 is a block diagram of another data storage device provided in the embodiment of the present invention, as shown in fig. 6, the device 500 may further include:
and a data determining module 560, configured to determine, according to identification information corresponding to all pieces of popularization data cached in the client, expired popularization data in all pieces of popularization data before the step of generating the data acquisition request according to the popularization data information in the client and the characteristic information of the client when the request condition is satisfied, where the identification information includes a data ID and a data expiration time.
And the data deleting module 570 is used for deleting the expired popularization data from all the popularization data.
The information generating module 530 is further configured to generate promotion data information according to all promotion data after the expired promotion data is deleted.
Preferably, on the basis of fig. 5, fig. 7 is a block diagram of another data storage device provided by the embodiment of the present invention, as shown in fig. 7, the device 500 may further include:
the request sending module 580 is configured to send a configuration obtaining request for obtaining the configuration information to the server after the client starts running before the step of determining whether the request condition of the data cache is satisfied according to the configuration information sent by the server.
Preferably, the characteristic information of the client includes a remaining storage space of the device where the client is located and a network connection type of the device where the client is located; the condition judgment module is used for:
and determining that the request condition is met under the condition that the residual storage space of the equipment where the client is located is greater than or equal to the residual storage space threshold and the network connection type of the equipment where the client is located is a preset network connection type.
Preferably, the promotion data information includes ID information of the promotion data and file content information of the promotion data; an information generating module 530 configured to:
splicing the ID information of the promotion data, the file content information of the promotion data and the characteristic information of the client to form a uniform resource locator serving as a data acquisition request;
the characteristic information of the client also comprises the equipment information of the client and the content information currently displayed by the client.
Preferably, on the basis of fig. 5, the configuration information further includes a download condition, and the data caching module 550, as shown in fig. 8, includes:
and the queue generating submodule 551 is used for generating a queue to be cached corresponding to the data to be promoted according to the information to be cached.
And the data caching submodule 552 is configured to, when the download condition is met, download and cache the data to be promoted in the device where the client is located according to the queue to be cached and a preset download policy.
The downloading strategy is a strategy for controlling the caching operation of the data to be promoted, which is determined according to the configuration information.
Optionally, the apparatus 500 further comprises:
and the data deleting module 570 is configured to delete the promotion data to be deleted corresponding to the promotion data information to be deleted before the step of caching the promotion data to be deleted according to the information to be cached and the configuration information.
Alternatively, on the basis of fig. 5, fig. 9 is a block diagram of another data storage device provided in the embodiment of the present invention, as shown in fig. 9, the device 500 may further include:
the data determining module 590 is configured to, after the step of performing the caching operation according to the information to be cached, respond to the play instruction and determine whether the data to be played corresponding to the play instruction is cached on the device where the client is located;
the data playing module 5110 is configured to play the data to be played when it is determined that the data to be played is cached on the device where the client is located.
Fig. 10 is a block diagram of another data storage device provided in an embodiment of the present invention, which is applied to a server, and as shown in fig. 10, the device 1000 may include:
the information sending module 1010 is configured to send the configuration information to the client according to a configuration obtaining request sent by the client for obtaining the configuration information, where the configuration information includes a remaining storage space threshold and a preset network connection type.
The information receiving module 1020 is configured to receive a data obtaining request sent by a client.
The information generating module 1030 is configured to generate information to be cached according to the data obtaining request, where the information to be cached includes information of data to be promoted, where the data to be cached by the client is to be promoted.
The information sending module 1010 is further configured to send the information to be cached to the client.
Preferably, on the basis of fig. 10, the apparatus 1000, as shown in fig. 11, comprises: :
the information receiving module 1020 is further configured to receive the configuration obtaining request sent by the client before the step of sending the configuration information to the client according to the configuration obtaining request sent by the client for obtaining the configuration information.
Optionally, the information sending module 1010 includes:
the information generating sub-module 1011 is configured to generate corresponding configuration information in response to the configuration obtaining request.
And an information sending sub-module 1012, configured to send the configuration information to the client.
Preferably, the data acquisition request includes promotion data information in the client and characteristic information of the client; the information generating module 1030 includes:
a first generation submodule 1031, configured to generate first to-be-cached data information according to the data acquisition request by using a preset generation policy;
the judging submodule 1032 is configured to judge whether the promotion data cached by the client includes expired promotion data and tampered promotion data according to the promotion data information;
a second generating sub-module 1033, configured to generate, when there is expired popularization data in the popularization data cached by the client, expired data information according to the expired popularization data;
a third generation submodule 1034, configured to, when there is tampered promotional data in the promotional data cached by the client, generate second to-be-cached data information according to the tampered promotional data;
and the information synthesis submodule 1035 is configured to use the first to-be-cached data information, the expired data information, and the second to-be-cached data information as information to be cached.
Preferably, the information generating module 1030 includes:
the information determining submodule 735 is further configured to, in the cached promotional data of the client, take the first to-be-cached data information and the second to-be-cached data information as to-be-cached information when the expired promotional data does not exist and tampered promotional data exists; or
The information determining submodule 735 is further configured to, in the cached promotional data of the client, use the first to-be-cached data information and the outdated data information as to-be-cached information under the condition that the outdated promotional data exists and the tampered promotional data does not exist; or
The information determining submodule 735 is further configured to, when there is no expired promotion data in the promotion data cached by the client and there is no tampered promotion data, use the first to-be-cached data information as to-be-cached information.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention 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.
In a typical configuration, the computer device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (fransitory media), such as modulated data signals and carrier waves.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 storage device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data storage device, 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 storage device 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 storage device 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 invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data storage method, system, apparatus and computer-readable storage medium provided by the present invention are described in detail above, and specific examples are applied herein to illustrate the principles and embodiments of the present invention, and the descriptions of the above embodiments are only used to help understand the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (29)

1. A data storage method is applied to a system comprising a server and a client, and comprises the following steps:
the server side sends the configuration information to the client side according to a configuration acquisition request sent by the client side and used for acquiring the configuration information;
determining that a request condition is met when the remaining storage space of the device where the client is located is greater than or equal to the remaining storage space threshold and the network connection type of the device where the client is located is a preset network connection type, wherein the configuration information comprises the remaining storage space threshold and the preset network connection type;
under the condition that the client meets the request condition, generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client, and sending the data acquisition request to the server;
the server side generates information to be cached according to the data acquisition request sent by the client side, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client side;
and the client caches the data to be promoted according to the information to be cached and the configuration information sent by the server.
2. The method of claim 1, further comprising:
after the client acquires the playing instruction, judging whether the data to be played corresponding to the playing instruction is cached on the equipment where the client is located;
and the client plays the data to be played under the condition that the data to be played is determined to be cached on the equipment where the client is located.
3. A data storage method is applied to a client, and the method comprises the following steps:
receiving configuration information from a server, wherein the configuration information comprises a residual storage space threshold value and a preset network connection type;
determining that a request condition is met when the remaining storage space of the equipment where the client is located is greater than or equal to the remaining storage space threshold and the network connection type of the equipment where the client is located is the preset network connection type;
under the condition that the request condition is met, generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client;
sending the data acquisition request to the server;
receiving information to be cached sent by the server, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
and caching the data to be promoted according to the information to be cached and the configuration information.
4. The method according to claim 3, wherein before the step of generating a data acquisition request according to the promotion data information in the client and the feature information of the client if the request condition is satisfied, the method further comprises:
determining expired promotion data in all promotion data according to identification information corresponding to all promotion data cached in the client, wherein the identification information comprises a data ID and data expiration time;
deleting the expired promotion data from all promotion data;
and generating the promotion data information according to all promotion data after the overdue promotion data are deleted.
5. The method according to claim 3, wherein before the step of determining whether the request condition of the data cache is satisfied according to the configuration information sent by the server, the method further comprises:
and after the client starts to operate, sending a configuration acquisition request for acquiring the configuration information to the server.
6. The method according to claim 3, wherein the characteristic information of the client includes a remaining storage space of the device where the client is located and a network connection type of the device where the client is located.
7. The method according to claim 6, wherein the promotion data information includes ID information of promotion data and file content information of promotion data; under the condition that the request condition is met, generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client comprises the following steps:
splicing the ID information of the promotion data, the file content information of the promotion data and the characteristic information of the client to form a uniform resource locator serving as the data acquisition request;
the characteristic information of the client also comprises the equipment information of the client and the content information currently displayed by the client.
8. The method according to claim 3, wherein the configuration information further includes a download condition, and the caching the data to be promoted according to the information to be cached and the configuration information includes:
generating a to-be-cached queue corresponding to the to-be-promoted data according to the to-be-cached information;
and downloading and caching the data to be promoted in the equipment where the client is located according to the queue to be cached and a preset downloading strategy under the condition that the downloading condition is met, wherein the downloading strategy is a strategy which is determined according to the configuration information and is used for controlling the caching operation of the data to be promoted.
9. The method according to claim 8, wherein the information to be cached further includes information of promotion data to be deleted, and before the step of caching the data to be promoted according to the information to be cached and the configuration information, the method further includes:
deleting the promotion data to be deleted corresponding to the promotion data information to be deleted.
10. The method according to claim 3, wherein after the step of caching the data to be promoted according to the information to be cached and the configuration information, the method further comprises:
in response to the acquisition of the playing instruction, judging whether the data to be played corresponding to the playing instruction is cached on the equipment where the client is located;
and playing the data to be played under the condition that the data to be played is determined to be cached on the equipment where the client is located.
11. A data storage method is applied to a server side, and the method comprises the following steps:
sending configuration information to a client according to a configuration acquisition request sent by the client for acquiring the configuration information, determining that a request condition is met when the residual storage space of equipment where the client is located is greater than or equal to the residual storage space threshold and the network connection type of the equipment where the client is located is a preset network connection type, wherein the configuration information comprises the residual storage space threshold and the preset network connection type;
receiving a data acquisition request sent by the client;
generating information to be cached according to the data acquisition request, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
and sending the information to be cached to the client.
12. The method according to claim 11, wherein before the step of sending the configuration information to the client according to a configuration obtaining request sent by the client for obtaining the configuration information, the method further comprises:
receiving the configuration acquisition request sent by the client;
the step of sending the configuration information to the client according to a configuration acquisition request sent by the client for acquiring the configuration information includes:
responding to the configuration acquisition request, and generating corresponding configuration information;
and sending the configuration information to the client.
13. The method according to claim 11 or 12, wherein the data acquisition request includes promotion data information in the client and feature information of the client; the generating, according to the data obtaining request, information to be cached for instructing the client to perform caching includes:
generating first to-be-cached data information by using a preset generation strategy according to the data acquisition request;
judging whether expired promotion data and tampered promotion data exist in the promotion data cached by the client side according to the promotion data information;
generating overdue data information according to the overdue promotion data under the condition that the overdue promotion data exist in the promotion data cached by the client;
generating second to-be-cached data information according to the tampered popularization data under the condition that the tampered popularization data exists in the popularization data cached by the client;
and taking the first to-be-cached data information, the expired data information and the second to-be-cached data information as the to-be-cached information.
14. The method according to claim 13, wherein the generating information to be cached for instructing the client to cache according to the data acquisition request further comprises:
taking the first to-be-cached data information and the second to-be-cached data information as the to-be-cached information under the condition that the expired promotion data does not exist in the promotion data cached by the client and the tampered promotion data exists; or
Taking the first to-be-cached data information and the expired data information as the to-be-cached information under the condition that the expired promotion data exists in the promotion data cached by the client and the tampered promotion data does not exist; or
And under the condition that the expired promotion data does not exist in the promotion data cached by the client and the tampered promotion data does not exist, taking the first to-be-cached data information as the to-be-cached information.
15. A data storage system is characterized in that the system comprises a server and a client;
the server is used for sending the configuration information to the client according to a configuration obtaining request sent by the client for obtaining the configuration information;
the client is used for determining that a request condition is met when the residual storage space of the equipment where the client is located is larger than or equal to the residual storage space threshold and the network connection type of the equipment where the client is located is a preset network connection type, and the configuration information comprises the residual storage space threshold and the preset network connection type;
the client is used for generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client under the condition of meeting the request condition, and sending the data acquisition request to the server;
the server is used for generating information to be cached according to the data acquisition request sent by the client, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
and the client is used for caching the data to be promoted according to the information to be cached and the configuration information sent by the server.
16. The system of claim 15,
the client is further configured to determine whether to-be-played data corresponding to the playing instruction is cached on the device where the client is located after the playing instruction is obtained;
the client is further configured to play the data to be played when it is determined that the data to be played is cached on the device where the client is located.
17. A data storage device, for application to a client, the device comprising:
the information receiving module is used for receiving configuration information from a server, wherein the configuration information comprises a residual storage space threshold value and a preset network connection type;
the condition judgment module is used for determining that the request condition is met when the residual storage space of the equipment where the client is located is larger than or equal to the residual storage space threshold and the network connection type of the equipment where the client is located is the preset network connection type;
the information generation module is used for generating a data acquisition request according to the promotion data information in the client and the characteristic information of the client under the condition of meeting the request condition;
the information sending module is used for sending the data acquisition request to the server;
the information receiving module is further configured to receive information to be cached sent by the server, where the information to be cached includes information of data to be promoted, which is to be cached by the client;
and the data caching module is used for caching the data to be promoted according to the information to be cached and the configuration information.
18. The apparatus of claim 17, further comprising:
a data determining module, configured to determine, before the step of generating a data acquisition request according to promotional data information in the client and feature information of the client when the request condition is satisfied, expired promotional data in all promotional data according to identification information corresponding to all promotional data cached in the client, where the identification information includes a data ID and data expiration time;
the data deleting module is used for deleting the expired popularization data from all the popularization data;
the information generating module is further configured to generate the promotion data information according to all promotion data after the expired promotion data is deleted.
19. The apparatus of claim 17, further comprising:
and the request sending module is used for sending a configuration acquisition request for acquiring the configuration information to the server after the client starts to operate before the step of judging whether the request condition of the data cache is met according to the configuration information sent by the server.
20. The apparatus according to claim 17, wherein the characteristic information of the client includes a remaining storage space of a device where the client is located and a network connection type of the device where the client is located.
21. The apparatus according to claim 20, wherein the promotion data information includes ID information of the promotion data and file content information of the promotion data; the information generation module is configured to:
splicing the ID information of the promotion data, the file content information of the promotion data and the characteristic information of the client to form a uniform resource locator serving as the data acquisition request;
the characteristic information of the client also comprises the equipment information of the client and the content information currently displayed by the client.
22. The apparatus of claim 17, wherein the configuration information further includes a download condition, and the data caching module includes:
the queue generating submodule is used for generating a queue to be cached corresponding to the data to be promoted according to the information to be cached;
and the data caching submodule is used for downloading and caching the data to be promoted in the equipment where the client is located according to the queue to be cached and a preset downloading strategy under the condition that the downloading condition is met, wherein the downloading strategy is a strategy which is determined according to the configuration information and is used for controlling the caching operation of the data to be promoted.
23. The apparatus according to claim 22, wherein the information to be cached further includes information of promotion data to be deleted, the apparatus further comprising:
and the data deleting module is used for deleting the promotion data to be deleted corresponding to the promotion data information to be deleted before the step of caching the promotion data to be promoted according to the information to be cached and the configuration information.
24. The apparatus of claim 17, further comprising:
the data judgment module is used for responding to the acquired playing instruction after the step of caching the data to be promoted according to the information to be cached and the configuration information, and judging whether the data to be played corresponding to the playing instruction is cached on the equipment where the client is located;
and the data playing module is used for playing the data to be played under the condition that the data to be played is determined to be cached on the equipment where the client is located.
25. A data storage device, applied to a server, the device comprising:
the information sending module is used for sending the configuration information to the client according to a configuration obtaining request sent by the client for obtaining the configuration information, determining that a request condition is met when the residual storage space of the equipment where the client is located is larger than or equal to the residual storage space threshold and the network connection type of the equipment where the client is located is a preset network connection type, wherein the configuration information comprises the residual storage space threshold and the preset network connection type;
the information receiving module is used for receiving a data acquisition request sent by the client;
the information generating module is used for generating information to be cached according to the data acquisition request, wherein the information to be cached comprises information of data to be promoted, which is to be cached by the client;
the information sending module is further configured to send the information to be cached to the client.
26. The apparatus of claim 25, wherein the apparatus comprises:
the information receiving module is further configured to receive a configuration acquisition request sent by a client before the step of sending the configuration information to the client according to the configuration acquisition request sent by the client for acquiring the configuration information;
the information sending module comprises:
the information generation submodule is used for responding to the configuration acquisition request and generating corresponding configuration information;
and the information sending submodule is used for sending the configuration information to the client.
27. The apparatus according to claim 25 or 26, wherein the data obtaining request includes promotion data information in the client and feature information of the client; the information generation module comprises:
the first generation submodule is used for generating first to-be-cached data information by using a preset generation strategy according to the data acquisition request;
the judging submodule is used for judging whether the cached promotion data of the client side has expired promotion data and tampered promotion data or not according to the promotion data information;
the second generation submodule is used for generating overdue data information according to the overdue promotion data under the condition that the overdue promotion data exist in the promotion data cached by the client;
a third generation submodule, configured to generate second to-be-cached data information according to the tampered promotional data when the tampered promotional data exists in the promotional data cached by the client;
and the information determining submodule is used for taking the first to-be-cached data information, the expired data information and the second to-be-cached data information as the to-be-cached information.
28. The apparatus of claim 27, wherein the information generating module comprises:
the information determining submodule is further configured to use the first to-be-cached data information and the second to-be-cached data information as the to-be-cached information when the expired promotion data does not exist in the promotion data cached by the client and the tampered promotion data exists; or
The information determining submodule is further configured to use the first to-be-cached data information and the expired data information as the to-be-cached information under the condition that the expired promotion data exists in the promotion data cached by the client and the tampered promotion data does not exist; or
The information determining submodule is further configured to, when the expired promotion data does not exist in the promotion data cached by the client and the tampered promotion data does not exist, use the first to-be-cached data information as the to-be-cached information.
29. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a data storage method according to any one of claims 1 to 14.
CN201910335405.3A 2019-04-24 2019-04-24 Data storage system, method, device and computer readable storage medium Active CN110209968B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910335405.3A CN110209968B (en) 2019-04-24 2019-04-24 Data storage system, method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910335405.3A CN110209968B (en) 2019-04-24 2019-04-24 Data storage system, method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110209968A CN110209968A (en) 2019-09-06
CN110209968B true CN110209968B (en) 2022-02-01

Family

ID=67786273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910335405.3A Active CN110209968B (en) 2019-04-24 2019-04-24 Data storage system, method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110209968B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184021A (en) * 2007-12-14 2008-05-21 华为技术有限公司 Method, equipment and system for implementing stream media caching replacement
CN103731931A (en) * 2013-09-22 2014-04-16 深圳市优逸电子科技有限公司 Wireless wifi hotspot sharing method and system
CN105279163A (en) * 2014-06-16 2016-01-27 Tcl集团股份有限公司 Buffer memory data update and storage method and system
CN105631035A (en) * 2016-01-04 2016-06-01 北京百度网讯科技有限公司 Data storage method and device
CN106649691A (en) * 2016-12-19 2017-05-10 雷桦松 Stream data storage method and device
CN103888934B (en) * 2012-12-21 2018-06-22 腾讯科技(深圳)有限公司 A kind of mobile terminal cache management device and management method
CN109040794A (en) * 2018-08-01 2018-12-18 北京奇艺世纪科技有限公司 A kind of video website method of river diversion and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8909807B2 (en) * 2005-04-07 2014-12-09 Opanga Networks, Inc. System and method for progressive download using surplus network capacity
US9171006B2 (en) * 2007-04-06 2015-10-27 Alcatel Lucent Mobile station with expanded storage space and method of retrieving files by the mobile station
EP2497293A4 (en) * 2009-11-06 2013-06-05 Ericsson Telefon Ab L M Method and apparatus for pre-caching in a telecommunication system
CN103124275B (en) * 2011-11-18 2016-01-20 腾讯科技(深圳)有限公司 A kind of method and apparatus obtaining file
CN103873513B (en) * 2012-12-13 2018-06-08 中国电信股份有限公司 Adaptive method for down loading and system
EP3028241A4 (en) * 2013-07-31 2017-04-19 Opanga Networks, Inc. Pre-delivery of content to a user device
CN104424125A (en) * 2013-09-10 2015-03-18 腾讯科技(深圳)有限公司 Clearing method for mobile terminal cache, device and mobile terminal
CN104699628B (en) * 2015-03-11 2018-07-27 小米科技有限责任公司 The pre-stored method and device of caching
CN107291756A (en) * 2016-04-01 2017-10-24 阿里巴巴集团控股有限公司 The method and device of data buffer storage
CN107592334A (en) * 2017-07-17 2018-01-16 阿里巴巴集团控股有限公司 A kind of information popularization method, apparatus and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184021A (en) * 2007-12-14 2008-05-21 华为技术有限公司 Method, equipment and system for implementing stream media caching replacement
CN103888934B (en) * 2012-12-21 2018-06-22 腾讯科技(深圳)有限公司 A kind of mobile terminal cache management device and management method
CN103731931A (en) * 2013-09-22 2014-04-16 深圳市优逸电子科技有限公司 Wireless wifi hotspot sharing method and system
CN105279163A (en) * 2014-06-16 2016-01-27 Tcl集团股份有限公司 Buffer memory data update and storage method and system
CN105631035A (en) * 2016-01-04 2016-06-01 北京百度网讯科技有限公司 Data storage method and device
CN106649691A (en) * 2016-12-19 2017-05-10 雷桦松 Stream data storage method and device
CN109040794A (en) * 2018-08-01 2018-12-18 北京奇艺世纪科技有限公司 A kind of video website method of river diversion and device

Also Published As

Publication number Publication date
CN110209968A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
US9462038B2 (en) Methods for seamlessly providing content to a client system and devices thereof
WO2020199751A1 (en) Method and apparatus for loading page picture, and electronic device
CN110807128B (en) Video preloading method, device, equipment and storage medium
US20050015765A1 (en) System for doing service location management taking into account the node and network characteristics
CN105451087A (en) Pushing method, terminals, historical data server and system for barrage information
CN101167071A (en) Methods, systems, and computer-readable media for synchronizing modifiable documents with multiple clients
US9356985B2 (en) Streaming video to cellular phones
EP3135019B1 (en) Method and system for bandwidth-dependent file transfer
CN111510789B (en) Video playing method, system, computer equipment and computer readable storage medium
CN110401858B (en) Video playing method and device, electronic equipment and storage medium
CN105786539B (en) File downloading method and device
CN105812831B (en) Network program recording method, device and system and playing method and device
TWI602431B (en) Method and device for transmitting information
CN107454080A (en) One kind is based on internet data security method and system
CN114124919A (en) Network condition detection method and device, computer equipment and storage medium
CN108134811B (en) Method, device and system for distributing or downloading target file
US20240031615A1 (en) Media file play method and apparatus, electronic device, server, and medium
US7660877B2 (en) Systems and methods in which a provider is selected to service content requested by a client device
CN110209968B (en) Data storage system, method, device and computer readable storage medium
US20040237097A1 (en) Method for adapting service location placement based on recent data received from service nodes and actions of the service location manager
CN110300308B (en) Streaming media playback method and device
US20040236857A1 (en) Systems and methods for selecting a provider to service content requested by a client device
CN112423099A (en) Video loading method and device and electronic equipment
CN113010816A (en) Webpage cache updating method and device, electronic equipment and storage medium
US9936264B1 (en) Method of restricting offline video playback to include advertisements

Legal Events

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