CN105893557B - A kind of caching method and device of video search result information - Google Patents

A kind of caching method and device of video search result information Download PDF

Info

Publication number
CN105893557B
CN105893557B CN201610201455.9A CN201610201455A CN105893557B CN 105893557 B CN105893557 B CN 105893557B CN 201610201455 A CN201610201455 A CN 201610201455A CN 105893557 B CN105893557 B CN 105893557B
Authority
CN
China
Prior art keywords
information
search result
regional
search
result information
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
CN201610201455.9A
Other languages
Chinese (zh)
Other versions
CN105893557A (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 CN201610201455.9A priority Critical patent/CN105893557B/en
Publication of CN105893557A publication Critical patent/CN105893557A/en
Application granted granted Critical
Publication of CN105893557B publication Critical patent/CN105893557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying

Abstract

The embodiment of the invention discloses the caching methods and device of a kind of video search result information, are related to network technique field, and method includes: the searching request for obtaining user and being directed to target video;According to described search request and preset regional information group, judge in the regional information group whether to include the source regional information;If so, searching whether there is the first search result information corresponding with the identification information and the source regional information in the buffer according at least to the identification information and the source regional information;If it does not, searching first search result information in non-caching area according at least to the identification information and the source regional information;First search result information is stored in the caching;And at least establish the corresponding relationship of first search result information and the identification information and the source regional information.Using the embodiment of the present invention, the speed and accuracy of server feedback search result information are improved.

Description

A kind of caching method and device of video search result information
Technical field
The present invention relates to network technique field, in particular to a kind of the caching method and device of video search result information.
Background technique
Currently, sending the searching request of video A, clothes with user orientation server when user needs to scan for for video A After business device receives the searching request, the search result information for whether having video A in caching is first judged, if having video in caching Video A search result information in caching is just fed back to user by the search result information of A, server, if do not had in caching Video A search result information, server are just directed to video A and scan for, the video A search result information for then obtaining search User is fed back to, and judges that video A whether there is region right of broadcasting problem, if region right of broadcasting problem is not present in video A, The video A search result information write-in caching that search is obtained, it is on the contrary then be not written into caching.
Wherein, right of broadcasting problem in region refers to that region X has right of broadcasting, and region Y does not have right of broadcasting for video A.For This kind of video for having region right of broadcasting problem requests the video search from different geographical, the search knot of server feedback Fruit information may be different.For example, being directed to video A, region X has right of broadcasting, and region Y does not have right of broadcasting, then server It feeds back to the video A search result information of the user from region X and feeds back to the video A search knot of the user from region Y Fruit information is different.In the prior art, caching is not written into for the search result information of this kind of video, because existing Write buffer method be the video for initially searching server search result information write-in caching, and if using existing This write buffer method, the video search result information for having region right of broadcasting problem that server is initially searched is written slow It deposits, will lead to server info feedback error.For example, being directed to video A, region X has right of broadcasting, and region Y does not have right of broadcasting, clothes Business device has received the searching request that the user from region X is directed to video A first, then searches caching, does not have in discovery caching After the search result information of video A, server is scanned for for video A, will be directed to the video A search result information of region X User is fed back to, if caching will be written for the video A search result information of region X at this time, server is come from receiving It, will be anti-by the video A search result information for region X in caching after the video A searching request that the user of region Y sends Feed user, so as to cause information feedback error.Therefore, in the prior art, for there is the video of region right of broadcasting Search result information be not written into caching, still, when will lead to searching request about this kind of video every time in this way, clothes Business device requires to re-start search, then feeds back to user again, slower so as to cause server feedback information rate.
Summary of the invention
The caching method and device for being designed to provide a kind of video search result information of the embodiment of the present invention, Ke Yiti The speed and accuracy of high server feedback search result information.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of caching methods of video search result information, comprising:
The searching request that user is directed to target video is obtained, coming for described search request is included at least in described search request The identification information of source regional information and the target video;
According to described search request and preset regional information group, judge in the regional information group whether to include described Source regional information, wherein the regional information group is the ground for the not right of broadcasting for counting and being arranged in advance for target video Domain information includes at least a regional information in the regional information group;
If so, searching whether exist in the buffer according at least to the identification information and the source regional information The first search result information corresponding with the identification information and the source regional information;
If it does not, searching institute in non-caching area according at least to the identification information and the source regional information State the first search result information;First search result information is stored in the caching;And at least establish described first The corresponding relationship of search result information and the identification information and the source regional information.
Preferably, the method is also wrapped in the case where not including the source regional information in the regional information group It includes:
According to the identification information, search whether there is the second search result corresponding with the identification information in the buffer Information;
If it does not, second search result information is searched in non-caching area according to the identification information;By institute The second search result information is stated to be stored in the caching;And establish second search result information and the identification information Corresponding relationship.
Preferably, further including the platform information of described search request in described search request;
It is described according at least to the identification information and the source regional information, search whether to exist in the buffer and institute State identification information and corresponding first search result information of the source regional information, comprising:
According to the identification information, the source regional information and the platform information, search whether to deposit in the buffer In the first search result information corresponding with the identification information, the source regional information and the platform information;
It is described that described first is searched in non-caching area according at least to the identification information and the source regional information Search result information, comprising:
Described in being searched in non-caching area according to the identification information, the source regional information and the platform information First search result information;
First search result information and the identification information and the source regional information at least established Corresponding relationship, comprising:
It establishes first search result information and the identification information, the source regional information and the platform is believed The corresponding relationship of breath.
Preferably, the method is also wrapped in the case where not including the source regional information in the regional information group It includes:
According to the identification information and the platform information, search whether in the buffer exist with the identification information with And the corresponding third search result information of the platform information;
It is searched if it does not, searching the third in non-caching area according to the identification information and the platform information Rope result information;The third search result information is stored in the caching;And establish the third search result information With the corresponding relationship of the identification information and the platform information.
Preferably, including the regional information of not right of broadcasting in first search result information;The method also includes:
According to first search result information, judge in first search result information with the presence or absence of except the region The first regional information except the regional information that information group includes;
If it does, by first regional information addition in the regional information group.
Preferably, duration of exceeding the time limit is arranged for each search result information in advance;The method also includes:
For each search result information, judge whether the storage duration of described search result information is not less than described search The corresponding duration of exceeding the time limit of result information;
If so, described search result information is removed from the caching.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of buffer storage of video search result information, packets It includes:
Obtain module, for obtain user be directed to target video searching request, described search request in include at least institute State the source regional information of searching request and the identification information of the target video;
First judgment module, for judging the region letter according to described search request and preset regional information group It whether include the source regional information in breath group, wherein the regional information group is to count and set in advance for target video The regional information for the not right of broadcasting set includes at least a regional information in the regional information group;
First searching module, for the first judgment module judging result be in the case where, according at least to described Identification information and the source regional information search whether exist and the identification information and the source place in the buffer Corresponding first search result information of domain information;
Second searching module, for the first searching module lookup result be there is no in the case where, according at least to The identification information and the source regional information search first search result information in non-caching area;
First memory module, for first search result information to be stored in the caching;
First establishes module, at least establish first search result information and the identification information and it is described come The corresponding relationship of source regional information.
Preferably, described device further include:
Third searching module is used in the case where the first judgment module judging result is no, according to the mark Information searches whether there is the second search result information corresponding with the identification information in the buffer;
4th searching module, for the third searching module lookup result be there is no in the case where, according to described Identification information searches second search result information in non-caching area;
Second memory module, for second search result information to be stored in the caching;
Second establishes module, for establishing the corresponding relationship of second search result information and the identification information.
Preferably, further including the platform information of described search request in described search request;
First searching module, is specifically used for:
In the case where the first judgment module judging result, which is, is, according to the identification information, the source region Information and the platform information, search whether in the buffer exist with the identification information, the source regional information and Corresponding first search result information of the platform information;
Second searching module, is specifically used for:
The first searching module lookup result be there is no in the case where, according to the identification information, the source Regional information and the platform information search first search result information in non-caching area;
Described first establishes module, is specifically used for:
It establishes first search result information and the identification information, the source regional information and the platform is believed The corresponding relationship of breath.
Preferably, described device further include:
5th searching module is used in the case where the first judgment module judging result is no, according to the mark Information and the platform information search whether to exist in the buffer corresponding with the identification information and the platform information Third search result information;
6th searching module, for the 5th searching module lookup result be there is no in the case where, according to described Identification information and the platform information search the third search result information in non-caching area;
Third memory module, for the third search result information to be stored in the caching;
Third establishes module, believes for establishing the third search result information and the identification information and the platform The corresponding relationship of breath.
Preferably, including the regional information of not right of broadcasting in first search result information;Described device further include:
Second judgment module, for judging in first search result information according to first search result information With the presence or absence of the first regional information in addition to the regional information that the regional information group includes;
Adding module, in the presence of the second judgment module judging result is, by first region Information is added in the regional information group.
Preferably, described device further include:
Duration of exceeding the time limit is arranged for being directed to each search result information in advance in setup module;
Third judgment module judges the storage duration of described search result information for being directed to each search result information Whether the corresponding duration of exceeding the time limit of described search result information is not less than;
Module is removed, in the case where the third judgment module judging result, which is, is, described search result to be believed Breath is removed from the caching.
As seen from the above, the embodiment of the present invention provides the caching method and device of a kind of video search result information, obtains User is directed to the searching request of target video;According to described search request and preset regional information group, the region is judged It whether include the source regional information in information group;If so, according at least to the identification information and the source region Information searches whether there is the first search result corresponding with the identification information and the source regional information in the buffer Information;If it does not, described in being searched in non-caching area according at least to the identification information and the source regional information First search result information;First search result information is stored in the caching;And it at least establishes described first and searches The corresponding relationship of rope result information and the identification information and the source regional information.
As it can be seen that server is according to the identification information and the source regional information to described in the embodiment of the present invention First search result information has carried out distinguishing storage in the buffer, so when next corresponding searching request carrys out interim, service Device can directly transfer corresponding information from caching, improve the speed and accuracy of feedback information.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of the caching method of video search result information provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the caching method of another video search result information provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of the caching method of another video search result information provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of the caching method of another video search result information provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of the caching method of another video search result information provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of the buffer storage of video search result information provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the buffer storage of another video search result information provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of the buffer storage of another video search result information provided in an embodiment of the present invention;
Fig. 9 is the structural schematic diagram of the buffer storage of another video search result information provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of the buffer storage of another video search result information provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention provides the caching methods and device of a kind of video search result information, specific:
The searching request that user is directed to target video is obtained, coming for described search request is included at least in described search request The identification information of source regional information and the target video;
According to described search request and preset regional information group, judge in the regional information group whether to include described Source regional information, wherein the regional information group is the ground for the not right of broadcasting for counting and being arranged in advance for target video Domain information includes at least a regional information in the regional information group;
If so, searching whether exist in the buffer according at least to the identification information and the source regional information The first search result information corresponding with the identification information and the source regional information;
If it does not, searching institute in non-caching area according at least to the identification information and the source regional information State the first search result information;First search result information is stored in the caching;And at least establish described first The corresponding relationship of search result information and the identification information and the source regional information.
Below by specific embodiment, the present invention is described in detail.
Fig. 1 is a kind of flow diagram of the caching method of video search result information provided in an embodiment of the present invention, can To include:
S101: the searching request that user is directed to target video is obtained.
It will be appreciated by persons skilled in the art that including at least the source place of described search request in described search request The identification information of domain information and the target video.The source regional information can be for user's in described search request IP address;The identification information of the target video refers to the information that can identify target video, is specifically as follows target video title Identification information Deng, the target video can be search key, search limitation parameter etc. in described search request.Example Such as, the user of region Y has sent the searching request of video A, then the source regional information of the searching request is region Y, target The identification information of video is video A.
S102: according to described search request and preset regional information group, judge whether wrap in the regional information group The source regional information is included, if so, executing S103.
Wherein, the regional information group is for target video, and the region for the not right of broadcasting for counting and being arranged in advance is believed Breath.A regional information is included at least in the regional information group.It will be appreciated by persons skilled in the art that the region letter Breath group includes currently known the regional information either with or without right of broadcasting.
In practical applications, currently known the regional information either with or without right of broadcasting, and handle can be manually counted in advance These regional informations are set as regional information group.
For example, being directed to video A, the region of currently known not right of broadcasting is only Y and Z, therefore preset regional information group For region Y and Z.The source regional information for obtaining searching request through S101 is region Y, then according to searching request and preset Regional information group judges to include the source regional information in regional information group.
S103: according at least to the identification information and the source regional information, search whether in the buffer exist with The identification information and corresponding first search result information of the source regional information, if it does not, executing S104.
Wherein, first search result information is the search for target video fed back to the region of not right of broadcasting Result information.
For example, being directed to video A, S102 judges to include source regional information (in regional information group (region Y and Z) Domain Y), then searching whether that having corresponding with video A and region Y first searches in the buffer according to video A and region Y Rope result information.
S104: described first is searched in non-caching area according at least to the identification information and the source regional information Search result information.
It will be appreciated by persons skilled in the art that the non-caching area can be memory, it is also possible to hard disk etc., this hair It is bright to be not specifically limited herein.
S105: first search result information is stored in the caching.
S106: first search result information and the identification information and the source regional information are at least established Corresponding relationship.
It will be appreciated by persons skilled in the art that the corresponding relationship can store in the buffer, also can store In non-caching area, the present invention is not specifically limited herein.
For example, being directed to video A, S103 lookup result is that there is no then look into non-caching area according to video A and region Y The first search result information is looked for, the first search result information found is labeled as AY, in the buffer by AY storage, and is built The corresponding relationship of vertical AY and video A and region Y.
Assuming that the searching request for the video A that the user that server obtains region Z at this time sends, judges regional information group again In include region Z, according to video A and region Z, search that there is no the first search corresponding with video A and region Z in the buffer Then result information searches the first search result information corresponding with video A and region Z, by what is found in non-caching area First search result information is labeled as AZ, and in the buffer by AZ storage, and it is corresponding with video A and region Z to establish AZ Relationship.
In this way, when the video A searching request that the user that server is received again by region Y sends, so that it may in the buffer First search result information AY corresponding with video A and region Y is found, the AY in caching is fed back into user;Similarly, work as service When the video A searching request that the user that device is received again by region Z sends, so that it may find in the buffer and Z pairs of video A and region The the first search result information AZ answered, feeds back to user for the AZ in caching.Because AY and AZ may be identical, it is also possible to it is different, So storing AY and AZ respectively in the buffer, in this way when corresponding searching request is come, server can be transferred in caching respectively AY and AZ, thus give the accurate information of user feedback;And due to being cached, so when next same search is asked Ask come it is interim, server can directly from caching gathering information, improve feedback speed, and reduce looking into non-caching area Look for number.
It in practical applications, can also be first according at least to preset region before searching request arriving for target video The identification information of regional information and target video in information group searches the identification information with target video in non-caching area And the corresponding search result information of regional information in default regional information group, which is stored in caching In, and at least establish the regional information in the identification information and default regional information group of the search result information and target video Corresponding relationship.In this way, interim when there is corresponding searching request, so that it may the corresponding information in caching is directly found, by this Information feeds back to user, to further improve the feedback speed of server.
As seen from the above, using embodiment illustrated in fig. 1 of the present invention, server is according to the identification information and the source Regional information has carried out first search result information to distinguish storage in the buffer, so when next corresponding search is asked It asks and comes temporarily, server can directly transfer corresponding information from caching, improve the speed and accuracy of feedback information, and reduce Lookup number in non-caching area to reduce the pressure of server improves the energy of server process searching request Power.
In the aforementioned embodiment, there is also the situations that judging result is no by S102.Based on foregoing description, of the invention one In kind specific implementation, referring to fig. 2, the flow diagram of the caching method of another video search result information is provided, Compared with previous embodiment, in the present embodiment, can also include:
S107: when S102 judging result be it is no when, according to the identification information, search whether in the buffer exist with it is described Corresponding second search result information of identification information, if it does not, executing S108.
Wherein, second search result information is the search knot for target video fed back to the region for having right of broadcasting Fruit information.
For example, being directed to video A, region X has right of broadcasting, and region Y does not have right of broadcasting, and region Z is preset also without right of broadcasting Regional information group is region Y and Z.The searching request that video A is had sent with user orientation server of region X, obtains this through S101 and searches The source regional information of rope request is region X, and the identification information of target video is video A;Judge in regional information group through S102 It does not include region X;So according to video A, search whether there is the second search result information corresponding with video A in the buffer.
S108: second search result information is searched in non-caching area according to the identification information.
S109: second search result information is stored in the caching.
S110: the corresponding relationship of second search result information and the identification information is established.
For example, being directed to video A, S107 lookup result is that there is no then search second according to video A in non-caching area and search Rope result information in the buffer by the second search result information found storage, and establishes second search result information With the corresponding relationship of video A.
Because being directed to video A, for the user of all regions for having right of broadcasting, the search result information of server feedback is It is identical, so server need to only store second search result information in the buffer.Assuming that being directed to video A, region W Also there is right of broadcasting, then the video A search that the user of video A search result information and region X that the user of region W obtains obtains Result information should be identical.So when the searching request for the video A that the user that server obtains region W sends again, Judge not including region W in regional information group, then according to video A, searches the second search result corresponding with video A in the buffer The second search result information found is fed back to user by information.In fact, server is the region X that will be cached before Video A search result information has fed back to the user of region W, but because the two search result informations be it is identical, Server feedback is accurate information.
Server stores the first search result information and the second search result information respectively in the buffer, and according to source Regional information has carried out corresponding first search result information to distinguish storage.In this way, the user as region X or region W sends out When sending video A searching request, server can transfer the second search result information in caching, by second search result information Feed back to user;And when the user of region Y send video A searching request when, server can transfer caching in video A and The corresponding first search result information AY of region Y, feeds back to user for AY;When the user of region Z sends video A searching request When, server can transfer first search result information AZ corresponding with video A and region Z in caching, and AZ is fed back to use Family.
As seen from the above, using embodiment illustrated in fig. 2 of the present invention, not only can be improved server feedback information speed and Accuracy, and since server only stores second search result information, so having saved the memory space of caching, mention High resource utilization.
In practical applications, the platform for playing video can also have right of broadcasting, for example, being directed to video A, computer webpage There is right of broadcasting at end, and mobile phone applications client does not have right of broadcasting.
It further include described search in described search request in an alternate embodiment of the present invention where based on foregoing description The platform information of request;Shown in Figure 3, embodiment illustrated in fig. 3 of the present invention can also include: compared with embodiment illustrated in fig. 1
S111: it when S102 judging result is no, according to the identification information and the platform information, looks into the buffer It looks for the presence or absence of third search result information corresponding with the identification information and the platform information;If it does not, holding Row S112.
Wherein, the third search result information is to be fed back to the platform and the region for having right of broadcasting for target The search result information of video.
S112: the third search result is searched in non-caching area according to the identification information and the platform information Information.
S113: the third search result information is stored in the caching.
S114: the corresponding pass of the third search result information with the identification information and the platform information is established System.
For example, being directed to video A, region X and W have right of broadcasting, and region Y and Z do not have right of broadcasting.The computer page end of region X User have sent the searching request of video A, S101 obtains the searching request;It wherein, include that search is asked in the searching request Source regional information (region X), the platform information (computer page end) of searching request and the identification information of target video asked (video A);S102 judges that in preset regional information group (region Y and Z) do not include the source regional information, then according to view Frequency A and computer page end search whether there is third search result corresponding with video A and computer page end in the buffer Information, if it does not exist, then third search result information is searched in non-caching area according to video A and computer page end, it will The third search result information storage found in the buffer, and establish the third search result information and video A and The corresponding relationship of computer page end.So when the search that the user of the mobile phone applications client of region X equally has sent video A is asked When asking, according to video A and mobile phone applications client, it will search less than matched information in the buffer, it is therefore desirable to non-slow It deposits in area and searches again, obtain corresponding search result information, and in the buffer by search result information storage.And work as region When the user of the computer page end of W equally has sent the searching request of video A, according to video A and computer page end, caching It is middle to find matched information.It should be noted that the third search result information can be with second search Result information is identical, can also be different from second search result information.
The S103 of embodiment illustrated in fig. 3 of the present invention is specifically as follows S103A: according to the identification information, the source place Domain information and the platform information, search whether in the buffer exist with the identification information, the source regional information with And corresponding first search result information of the platform information;If it does not, executing S104;
The S104 of embodiment illustrated in fig. 3 of the present invention is specifically as follows S104A: according to the identification information, the source place Domain information and the platform information search first search result information in non-caching area;
The S106 of embodiment illustrated in fig. 3 of the present invention is specifically as follows S106A: establishing first search result information and institute State the corresponding relationship of identification information, the source regional information and the platform information.
It will be appreciated by persons skilled in the art that server feedback is searched when sending the platform difference of searching request Rope result information may also be different.So in the present embodiment, when being searched in caching and non-caching area, in addition to according to the mark Other than information and the source regional information, it is also necessary to according to the platform information, search first search result information; Correspondingly, when establishing corresponding relationship, it is also desirable to establish first search result information and the identification information, the source The corresponding relationship of regional information and the platform information.
For example, the user of the computer page end of region Y has sent the searching request of video A, S101 obtains the search and asks It asks;Wherein, the platform information (computer in the searching request including the source regional information (region Y) of searching request, searching request Page end) and target video identification information (video A);S102 judges The source regional information (region Y), then searching whether to deposit in the buffer according to video A, computer page end and region Y In the first search result information corresponding with video A, computer page end and region Y, if it does not exist, then according to video A, electricity Brain page end and region Y search the first search result information in non-caching area, the first search result information that will be found Storage in the buffer, and establishes the corresponding relationship of first search result information and video A, computer page end and region Y. So when the user of the mobile phone applications client of region Y equally has sent the searching request of video A, answered according to video A, mobile phone With client and region Y, will search in the buffer less than matched information, it is therefore desirable to it is searched again in non-caching area, Corresponding search result information is obtained, and in the buffer by search result information storage.
As seen from the above, using embodiment illustrated in fig. 3 of the present invention, for target video, server only stores each flat One third search result information of platform improves resource utilization so having saved the memory space of caching;And server The search result information of different platform has been carried out to distinguish storage, can be further improved the accuracy of feedback information.
It will be appreciated by persons skilled in the art that may include not no right of broadcasting in first search result information Regional information.Wherein, the regional information of right of broadcasting not can be for video A, be also possible to for other videos, example As and the higher video B of video A correlation.
Based on foregoing description, in a specific embodiment of the present invention, referring to fig. 4, provides another video and search The flow diagram of the caching method of rope result information, wherein include not no right of broadcasting in first search result information Regional information;Compared with embodiment illustrated in fig. 1, in the present embodiment, can also include:
S115: according to first search result information, judge in first search result information with the presence or absence of except institute State the first regional information except the regional information that regional information group includes;If it does, executing S116;
S116: by first regional information addition in the regional information group.
Specifically, first judging in the first search result information with the presence or absence of the regional information of new not right of broadcasting;When In the presence of judgement, which is added in the regional information group.
It include not no right of broadcasting in the first search result information for example, preset regional information group is region Y and Z Regional information is region Y, Z and U, and there are region U in the first search result information, and region U is not in preset regional information group In, so region U is added in regional information group.
In practical applications, the regional information group can be for for all videos, what is counted and be arranged in advance not be broadcast The regional information delegated power.That is, being directed to all videos, in total only one regional information group.
It is assumed that current all videos are video A, video B and video C;For video A, currently known not right of broadcasting Region is Y and Z;For video B, the region of currently known not right of broadcasting is M;There are the broadcasting of video C in current all regions Power;Therefore preset regional information group is region Y, Z and M.
When the user of region Y has sent searching request for video A, S101 obtains the searching request, and S102 judgement is pre- If regional information group include region Y, then according to video A and region Y in the buffer search whether exist and video A and region The corresponding first search result information AY of Y searches AY in non-caching area, AY is stored in caching if do not had in caching In, and establish the corresponding relationship of AY Yu video A and region Y.It wherein, include region Y, Z and U in AY, and region U is not pre- If regional information group in, so region U is added in regional information group.
When the user of region Y has sent searching request for video B, S101 obtains the searching request, and S102 judgement is pre- If regional information group include region Y, then according to video B and region Y in the buffer search whether exist and video B and region The corresponding first search result information BY of Y searches BY in non-caching area, BY is stored in caching if do not had in caching In, and establish the corresponding relationship of BY Yu video B and region Y.It wherein, include region M and U in BY, and region U is not default Regional information group in, so region U is added in regional information group.
When the user of region Y has sent searching request for video C, S101 obtains the searching request, and S102 judgement is pre- If regional information group include region Y, then according to video C and region Y in the buffer search whether exist and video C and region The corresponding first search result information CY of Y searches CY in non-caching area, CY is stored in caching if do not had in caching In, and establish the corresponding relationship of CY Yu video C and region Y.It wherein, include region U in CY, and region U is not preset In regional information group, so region U is added in regional information group.
As seen from the above, using embodiment illustrated in fig. 4 of the present invention, on the basis of embodiment shown in Fig. 1, it can also make ground Domain information group is timely updated, and the accuracy of server feedback information is further improved.
Fig. 5 is the flow diagram of the caching method of another video search result information provided in an embodiment of the present invention, Wherein, it is provided with duration of exceeding the time limit for each search result information in advance, compared with embodiment illustrated in fig. 1, in the present embodiment, also May include:
S117: it is directed to each search result information, judges whether the storage duration of described search result information is not less than institute State the corresponding duration of exceeding the time limit of search result information;If so, executing S118;
S118: described search result information is removed from the caching.
Wherein, it can be set to for the duration of exceeding the time limit of each search result information identical, may be set to be difference, this Invention is not specifically limited herein.
For example, a length of 5 minutes when exceeding the time limit of preset search result information AY, judges the storage duration of search result information AY Whether the corresponding duration of exceeding the time limit of search result information AY is not less than;When the storage duration of search result information AY is greater than or equal to 5 When minute, search result information AY is removed from caching.When the user of region Y sends video A searching request again, service Think highly of and newly search search result information corresponding with video A and region Y in non-caching area, and the search result information is deposited Enter caching.It timely updates in this way to the information in caching, ensure that the accuracy of information in caching.
It in practical applications, can also be in advance for the cache cleaner time of each search result information setting fixation, so It is directed to each search result information afterwards, judges whether described search result information reaches the cache cleaner time;If so, will Described search result information is removed from the caching.Wherein, in advance for the cache cleaner of each search result information setting Time may be the same or different.For example, the cache cleaner time for presetting all search result informations is daily zero Point, then caching can remove all information automatically at this moment of daily zero point.
It as seen from the above,, can also be to slow on the basis of embodiment shown in Fig. 1 using embodiment illustrated in fig. 5 of the present invention Information in depositing timely updates, and ensure that the accuracy of information in caching, to further improve server feedback letter The accuracy of breath.
Corresponding with above-mentioned embodiment of the method, the embodiment of the invention also provides a kind of the slow of video search result information Cryopreservation device.
Fig. 6 is a kind of structural schematic diagram of the buffer storage of video search result information provided in an embodiment of the present invention;It can To include: to obtain module 201, first judgment module 202, the first searching module 203, the second searching module 204, first storage mould Block 205, first establish module 206.
Wherein, obtain module 201, for obtain user be directed to target video searching request, described search request in extremely It less include the source regional information of described search request and the identification information of the target video;
First judgment module 202, for judging the region according to described search request and preset regional information group It whether include the source regional information in information group, wherein the regional information group is to count in advance simultaneously for target video The regional information for the not right of broadcasting being arranged includes at least a regional information in the regional information group;
First searching module 203, for 202 judging result of first judgment module be in the case where, according at least to institute Identification information and the source regional information are stated, searches whether exist and the identification information and the source in the buffer Corresponding first search result information of regional information;
Second searching module 204, for 203 lookup result of the first searching module be there is no in the case where, at least root First search result information is searched in non-caching area according to the identification information and the source regional information;
First memory module 205, for first search result information to be stored in the caching;
First establishes module 206, at least establishing first search result information and the identification information and institute State the corresponding relationship of source regional information.
As seen from the above, using embodiment illustrated in fig. 6 of the present invention, server is according to the identification information and the source Regional information has carried out first search result information to distinguish storage in the buffer, so when next corresponding search is asked It asks and comes temporarily, server can directly transfer corresponding information from caching, improve the speed and accuracy of feedback information, and reduce Lookup number in non-caching area to reduce the pressure of server improves the energy of server process searching request Power.
Fig. 7 is the structural schematic diagram of the buffer storage of another video search result information provided in an embodiment of the present invention; On the basis of embodiment illustrated in fig. 7 embodiment shown in Fig. 6 of the present invention, increase third searching module 207, the 4th searching module 208, the second memory module 209, second establish module 210.
Wherein, third searching module 207 is used in the case where 202 judging result of first judgment module is no, according to institute Identification information is stated, searches whether there is the second search result information corresponding with the identification information in the buffer;
4th searching module 208, for 207 lookup result of third searching module be there is no in the case where, according to institute It states identification information and searches second search result information in non-caching area;
Second memory module 209, for second search result information to be stored in the caching;
Second establishes module 210, for establishing the corresponding relationship of second search result information and the identification information.
As seen from the above, using embodiment illustrated in fig. 7 of the present invention, not only can be improved server feedback information speed and Accuracy, and since server only stores second search result information, so having saved the memory space of caching, mention High resource utilization.
It in one particular embodiment of the present invention, further include the platform letter of described search request in described search request Breath;Referring to Fig. 8, on the basis of embodiment illustrated in fig. 8 embodiment shown in Fig. 6 of the present invention, increase the 5th searching module 211, the Six searching modules 212, third memory module 213 and third establish module 214.
Wherein, the 5th searching module 211 is used in the case where 202 judging result of first judgment module is no, according to institute Identification information and the platform information are stated, searches whether exist and the identification information and the platform information in the buffer Corresponding third search result information;
6th searching module 212, for 211 lookup result of the 5th searching module be there is no in the case where, according to institute It states identification information and the platform information searches the third search result information in non-caching area;
Third memory module 213, for the third search result information to be stored in the caching;
Third establishes module 214, for establishing the third search result information and the identification information and described flat The corresponding relationship of station information.
First searching module 203 shown in the embodiment of the present invention, specifically can be used for:
In the case where 202 judging result of first judgment module, which is, is, believed according to the identification information, the source region Breath and the platform information search whether exist and the identification information, the source regional information and institute in the buffer State corresponding first search result information of platform information;
Second searching module 204 shown in the embodiment of the present invention, specifically can be used for:
203 lookup result of the first searching module be there is no in the case where, according to the identification information, the source place Domain information and the platform information search first search result information in non-caching area;
First establishes module 206 shown in the embodiment of the present invention, specifically can be used for:
It establishes first search result information and the identification information, the source regional information and the platform is believed The corresponding relationship of breath.
As seen from the above, using embodiment illustrated in fig. 8 of the present invention, for target video, server only stores each flat One third search result information of platform improves resource utilization so having saved the memory space of caching;And server The search result information of different platform has been carried out to distinguish storage, can be further improved the accuracy of feedback information.
Fig. 9 is the structural schematic diagram of the buffer storage of another video search result information provided in an embodiment of the present invention; On the basis of embodiment illustrated in fig. 9 embodiment shown in Fig. 6 of the present invention, increase the second judgment module 215, adding module 216.
It wherein, include the regional information of not right of broadcasting in first search result information;
Second judgment module 215, for judging first search result information according to first search result information In with the presence or absence of the first regional information in addition to the regional information that the regional information group includes;
Adding module 216, in the presence of 215 judging result of the second judgment module is, by first ground Domain information adds in the regional information group.
As seen from the above, using embodiment illustrated in fig. 9 of the present invention, on the basis of embodiment shown in Fig. 6, it can also make ground Domain information group is timely updated, and the accuracy of server feedback information is further improved.
Figure 10 is the structural schematic diagram of the buffer storage of another video search result information provided in an embodiment of the present invention; On the basis of embodiment illustrated in fig. 10 embodiment shown in Fig. 6 of the present invention, increase setup module 217, third judgment module 218, Remove module 219.
Wherein, duration of exceeding the time limit is arranged for being directed to each search result information in advance in setup module 217;
Third judgment module 218, for being directed to each search result information, when judging the storage of described search result information It is long whether to be not less than the corresponding duration of exceeding the time limit of described search result information;
Remove module 219, for 218 judging result of third judgment module be in the case where, by described search result Information is removed from the caching.
It as seen from the above,, can also be right on the basis of embodiment shown in Fig. 6 using embodiment illustrated in fig. 10 of the present invention Information in caching timely updates, and ensure that the accuracy of information in caching, to further improve server feedback The accuracy of information.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium, The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (12)

1. a kind of caching method of video search result information, which is characterized in that the described method includes:
The searching request that user is directed to target video is obtained, the source place of described search request is included at least in described search request The identification information of domain information and the target video;
According to described search request and preset regional information group, judge in the regional information group whether to include the source Regional information, wherein the regional information group is for target video, and the region for the not right of broadcasting for counting and being arranged in advance is believed It ceases, a regional information is included at least in the regional information group;
If so, searching whether exist and institute in the buffer according at least to the identification information and the source regional information State identification information and corresponding first search result information of the source regional information;
If it does not, searching described in non-caching area according at least to the identification information and the source regional information One search result information;First search result information is stored in the caching;And at least establish first search The corresponding relationship of result information and the identification information and the source regional information.
2. the method according to claim 1, wherein not including the source region in the regional information group In the case where information, the method also includes:
According to the identification information, search whether that there is the second search result corresponding with the identification information believes in the buffer Breath;
If it does not, second search result information is searched in non-caching area according to the identification information;By described Two search result informations are stored in the caching;And it is corresponding with the identification information to establish second search result information Relationship.
3. the method according to claim 1, wherein further including the flat of described search request in described search request Station information;
It is described according at least to the identification information and the source regional information, search whether to exist in the buffer and the mark Know information and corresponding first search result information of the source regional information, comprising:
According to the identification information, the source regional information and the platform information, search whether in the buffer exist with The identification information, the source regional information and corresponding first search result information of the platform information;
It is described that first search is searched in non-caching area according at least to the identification information and the source regional information Result information, comprising:
Described first is searched in non-caching area according to the identification information, the source regional information and the platform information Search result information;
It is described at least to establish the corresponding of first search result information and the identification information and the source regional information Relationship, comprising:
Establish first search result information and the identification information, the source regional information and the platform information Corresponding relationship.
4. according to the method described in claim 3, it is characterized in that, not including the source region in the regional information group In the case where information, the method also includes:
According to the identification information and the platform information, search whether exist and the identification information and institute in the buffer State the corresponding third search result information of platform information;
If it does not, searching the third search knot in non-caching area according to the identification information and the platform information Fruit information;The third search result information is stored in the caching;And establish the third search result information and institute State the corresponding relationship of identification information and the platform information.
5. the method according to claim 1, wherein including no right of broadcasting in first search result information Regional information;The method also includes:
According to first search result information, judge in first search result information with the presence or absence of except the regional information The first regional information except the regional information that group includes;
If it does, by first regional information addition in the regional information group.
6. method according to any one of claims 1 to 5, which is characterized in that set in advance for each search result information Set duration of exceeding the time limit;The method also includes:
For each search result information, judge whether the storage duration of described search result information is not less than described search result The corresponding duration of exceeding the time limit of information;
If so, described search result information is removed from the caching.
7. a kind of buffer storage of video search result information, which is characterized in that described device includes:
Module is obtained, the searching request for being directed to target video for obtaining user includes at least described search in described search request The source regional information of rope request and the identification information of the target video;
First judgment module, for judging the regional information group according to described search request and preset regional information group In whether include the source regional information, wherein the regional information group be for target video, count and be arranged in advance There is no the regional information of right of broadcasting, includes at least a regional information in the regional information group;
First searching module, for the first judgment module judging result be in the case where, according at least to the mark Information and the source regional information search whether to exist in the buffer and believe with the identification information and the source region Cease corresponding first search result information;
Second searching module, for the first searching module lookup result be there is no in the case where, according at least to described Identification information and the source regional information search first search result information in non-caching area;
First memory module, for first search result information to be stored in the caching;
First establishes module, at least establishing first search result information and the identification information and the source place The corresponding relationship of domain information.
8. device according to claim 7, which is characterized in that described device further include:
Third searching module, in the case where the first judgment module judging result is no, according to the identification information, Search whether there is the second search result information corresponding with the identification information in the buffer;
4th searching module, for the third searching module lookup result be there is no in the case where, according to the mark Information searches second search result information in non-caching area;
Second memory module, for second search result information to be stored in the caching;
Second establishes module, for establishing the corresponding relationship of second search result information and the identification information.
9. device according to claim 7, which is characterized in that further include the flat of described search request in described search request Station information;
First searching module, is specifically used for:
In the case where the first judgment module judging result, which is, is, according to the identification information, the source regional information And the platform information, search whether exist and the identification information, the source regional information and described in the buffer Corresponding first search result information of platform information;
Second searching module, is specifically used for:
The first searching module lookup result be there is no in the case where, according to the identification information, the source region Information and the platform information search first search result information in non-caching area;
Described first establishes module, is specifically used for:
Establish first search result information and the identification information, the source regional information and the platform information Corresponding relationship.
10. device according to claim 9, which is characterized in that described device further include:
5th searching module is used in the case where the first judgment module judging result is no, according to the identification information And the platform information, search whether there is third corresponding with the identification information and the platform information in the buffer Search result information;
6th searching module, for the 5th searching module lookup result be there is no in the case where, according to the mark Information and the platform information search the third search result information in non-caching area;
Third memory module, for the third search result information to be stored in the caching;
Third establishes module, for establishing the third search result information and the identification information and the platform information Corresponding relationship.
11. device according to claim 7, which is characterized in that include not playing in first search result information The regional information of power;Described device further include:
Second judgment module, for according to first search result information, judge in first search result information whether In the presence of the first regional information in addition to the regional information that the regional information group includes;
Adding module, in the presence of the second judgment module judging result is, by first regional information Addition is in the regional information group.
12. according to the described in any item devices of claim 7 to 11, which is characterized in that described device further include:
Duration of exceeding the time limit is arranged for being directed to each search result information in advance in setup module;
Third judgment module, for be directed to each search result information, judge described search result information storage duration whether Duration of exceeding the time limit corresponding not less than described search result information;
Remove module, for the third judgment module judging result be in the case where, by described search result information from It is removed in the caching.
CN201610201455.9A 2016-03-31 2016-03-31 A kind of caching method and device of video search result information Active CN105893557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610201455.9A CN105893557B (en) 2016-03-31 2016-03-31 A kind of caching method and device of video search result information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610201455.9A CN105893557B (en) 2016-03-31 2016-03-31 A kind of caching method and device of video search result information

Publications (2)

Publication Number Publication Date
CN105893557A CN105893557A (en) 2016-08-24
CN105893557B true CN105893557B (en) 2019-02-22

Family

ID=57012234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610201455.9A Active CN105893557B (en) 2016-03-31 2016-03-31 A kind of caching method and device of video search result information

Country Status (1)

Country Link
CN (1) CN105893557B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7257625B2 (en) * 2001-12-21 2007-08-14 Nokia, Inc. Cache on demand
US7051161B2 (en) * 2002-09-17 2006-05-23 Nokia Corporation Memory admission control based on object size or request frequency
CN104216957A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Query system and query method for video metadata
CN104796737B (en) * 2015-04-28 2018-10-26 天脉聚源(北京)传媒科技有限公司 Channel based on group plays implementation method, system and equipment

Also Published As

Publication number Publication date
CN105893557A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN103873451B (en) A kind of method, apparatus and system of data syn-chronization
CN104486743A (en) Method for user information correlation of XDR (external data representation) data of interfaces of core network
CN103177005A (en) Processing method and system of data access
CN107743154B (en) Tracking and attendance system based on Wi-Fi intelligent terminal and method thereof
CN104144223B (en) A kind of data capture method and device
WO2018223964A1 (en) Data caching control method and device
CN103955533B (en) A kind of page tree data acquisition device based on buffer queue and method
CN106385426B (en) Node content hit method and device
CN108282508A (en) Determination method and device, information-pushing method and the device in geographical location
CN106953926A (en) A kind of method for routing and device
CN107645386A (en) A kind of method and apparatus for obtaining data resource
CN104348941B (en) A kind of method and device for searching expectation user using cell phone address book
CN102594839B (en) Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards
CN103973747B (en) A kind of method and apparatus for obtaining content
AU2001244336A1 (en) Data networks
CN106230723B (en) A kind of message forwarding cache method and device
CN110493353A (en) Communication means, device and server
CN105893557B (en) A kind of caching method and device of video search result information
CN110198227A (en) Processing method, device, storage medium and the electronic device of journal file
MX2022004204A (en) Blockchain data search method.
CN105246125B (en) A kind of access control method and terminal
JP7338475B2 (en) Terminal management device and terminal device
CN109962834B (en) Information processing method, system, terminal and computer storage medium
CN106888241A (en) Data processing method and device based on cloud number
CN102595467A (en) Data acquisition method and data acquisition device

Legal Events

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