CN104573035A - Caching service method and device and news information obtaining method and system - Google Patents

Caching service method and device and news information obtaining method and system Download PDF

Info

Publication number
CN104573035A
CN104573035A CN201510021210.3A CN201510021210A CN104573035A CN 104573035 A CN104573035 A CN 104573035A CN 201510021210 A CN201510021210 A CN 201510021210A CN 104573035 A CN104573035 A CN 104573035A
Authority
CN
China
Prior art keywords
version number
page
information list
parameter
news
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.)
Granted
Application number
CN201510021210.3A
Other languages
Chinese (zh)
Other versions
CN104573035B (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.)
Hangzhou Xizhao Technology Co Ltd
Original Assignee
Hangzhou Xizhao 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 Hangzhou Xizhao Technology Co Ltd filed Critical Hangzhou Xizhao Technology Co Ltd
Priority to CN201510021210.3A priority Critical patent/CN104573035B/en
Publication of CN104573035A publication Critical patent/CN104573035A/en
Application granted granted Critical
Publication of CN104573035B publication Critical patent/CN104573035B/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/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • 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/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Landscapes

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

Abstract

The invention provides a caching service method and device and a news information obtaining method and system. The caching service method comprises the steps of reading data contents of an information list from a database, generating paging caches carrying paging marks and version number parameters, establishing caching incidence relation of paging marks corresponding to the same paged page frame, version number parameters and paged data contents; reading updated data contents of the information list, updating the version number parameters corresponding to all paged page frames and establishing the caching incidence relation of the paging marks corresponding to the same paged page frame, the updated version number parameters and updated paged data contents when the contents in the information list in a server are updated; looking up and pushing the paged data contents to a terminal according to the caching incidence relation, the paging marks and the version number parameters updated finally when receiving a reading request for reading the paged page frames of the information list, sent by the terminal.

Description

Buffer service method and device, news information acquisition methods and system
Technical field
The present invention relates to computer communication field, particularly relate to the mobile Internet communications field.
Background technology
Along with the development of Internet technology, this news information obtain manner has saved the links such as traditional media publication distribution, and also relieves the restriction of the aspect such as traditionally on paper or TV media news information capacity.But this news information obtain manner also brings new problem, although user can touch source a large amount of news information more widely, but news information itself has very strong regional Characteristics, and the method support lacking comparatively perfect in prior art is inquired about based on the news information in geographic position, the news information of the media event of acquisition periphery generation that support user is quick, make user be difficult to the news information of the media event of very first time acquisition periphery, and follow the tracks of understanding media event.
And usually can show in the terminal with the form of information list for the information larger as this kind of data volume of news information.Due to terminal display area and Internet Transmission restriction, usually adopt the method for paging query, namely show information list by paging mode, user can select concrete paging type, and the paging that user can be different by the Range Access switching specific page.
It is raising information reading speed simultaneously, caching system being set up between terminal and server end, when reading Large Copacity information list data, using caching system to be directly Terminal Service, the data interaction of terminal and server end can be reduced, thus greatly improve information reading speed.But need to use in the system of paging mode display information list for above-mentioned, framework caching system can produce following technical matters: if build a point caching of page in caching system, user first time user switch page browsing time, terminal directly access cache system can read point caching of page of this page, therefore greatly can improve user and switch the speed that each paging conducts interviews.At server end information list upgraded and (namely add, the content of amendment or deletion information list) time, caching of page is divided also to need to carry out corresponding renewal rewards theory, but multiple different paging type (comprising the self-defining paging type of certain customers) is existed simultaneously for same information list, some that all can have influence in different paging type of renewal at every turn for information list content divides caching of page, and the diversity of paging type causes this to upgrade specifically to have influence on which point caching of page and is difficult to judge, be difficult to locate and delete this and upgrade point caching of page affected, cause paging cache maintenance difficulty, be difficult to guarantee that user is that what to read is up-to-date paged data content switching page access.Therefore, solution of the prior art carries out paging process to the database of server end, the simple and convenient easy realization of which, but the overall performance of the access speed that also limit when user switches the different page and system.
Summary of the invention
The present invention is to overcome intelligent terminal news acquisition methods of the prior art, user is difficult to the defect of the news information obtaining periphery, and the deficiency of data cached cache maintenance difficulty as back-office support, providing one can when information list content update, the buffer service method that the paged data content of maintenance information list accurately upgrades, and a kind of geographic position based on user of this buffer service method that uses filters out news information acquisition methods and the system of periphery news information for user.
For achieving the above object, the present invention is by the following technical solutions:
The invention provides a kind of buffer service method, the method comprises:
When receiving the read requests for information list of terminal transmission, read the data content of described information list from database, generate point caching of page carrying point page marker and version number's parameter; Set up the Cache associativity relation that point page marker of the corresponding same paging page, version number's parameter and paged data content three are formed;
When the information list content in server occurs to upgrade, read the data content of the information list after upgrading, version number's parameter of upgrading corresponding to all paging pages, sets up the Cache associativity relation of the version number's parameter after point page marker of the corresponding same paging page, upgrading and the paged data content three formation after upgrading;
When receiving the read requests of the paging page for information list that terminal sends, by Cache associativity relation, according to the version number's parameter after point page marker and last upgrading, find the paged data content after last renewal, the paged data content described in pushing to terminal.
By above technical scheme, user is when using a kind of paging type browsing information list first, namely caching system reads information list content, point page marker and a paged data content is generated, by setting up the Cache associativity relation of point page marker, version number's parameter and paged data content according to current paging type.The system of obtaining can according to point page marker and version number's parameter location paged data content.User browses this information list or access when changing the different page of information list again, all from caching system, directly can read paged data content, thus ensure access speed.When server end upgrades this information list content, caching system reads the information list data after upgrading, and carries out paging according to current paging type.Upgrading processing is done to the value of version number's parameter, and the buffer memory of the version number associated after a point page marker, upgrading and the paged data content after upgrading maps simultaneously.Such user is when being switched to a certain page access, and read up-to-date paged data content according to point page marker and the version number's parameter location after increasing progressively, a point caching of page before then lost efficacy.Above technical scheme can build a point caching of page and ensure that user uses the reading speed of terminal obtains information list in caching system, when information list content occurs to upgrade simultaneously, old paged data content all can lose efficacy, and avoids when each information list content occurs to upgrade and needs a series of loaded down with trivial details work such as the paged data content judging that renewal affects.
As preferably, the step of the version number's parameter corresponding to all paging pages of described upgrading, comprises further: do the value of version number's parameter corresponding to all paging pages and increase progressively process.
As preferably, find the paged data content after last renewal, comprise further after the paged data content described in terminal propelling movement: by Cache associativity relation, according to the version number's parameter before point page marker and last upgrading, search and delete the paged data content before last renewal.
As preferably, describedly find the paged data content after last renewal, the step of the paged data content described in pushing to terminal, comprise further: in the circulation searching current paging page, whether the data cached of single data entries exists, if the data cached existence of single data entries, push the data cached of this single data entries to terminal, if the data cached of single data entries does not exist, read described single information bar destination data and buffer memory from database.
The invention provides a kind of buffer service device, comprising:
Storage element, for storing a point caching of page for information list;
Version number control unit, during for occurring to upgrade when the information list content in server, upgrades to version number's parameter;
Version number's record cell, for store version number control unit version number's parameter is upgraded for the last time after the value of version number's parameter;
Associative cell, for setting up the Cache associativity relation of dividing page marker, version number's parameter and paged data content three formation of the corresponding same paging page, and when the information list content generation in server upgrades, set up the Cache associativity relation of the version number's parameter after point page marker of the corresponding same paging page, upgrading and the paged data content three formation after upgrading;
Push unit, for the Cache associativity relation set up by associative cell, according to point page marker and version number's parameter, finds paged data content.
As preferably, described version number control unit is further used for, when the information list content in server occurs to upgrade, doing increase progressively process to the value of version number's parameter.
As preferably, also comprising: comparing unit, for the value of the version number's parameter stored in the value of several version number's parameters of association same point of page marker and record cell being compared, determining the version number's parameter before last upgrading;
Monitoring unit, by Cache associativity relation, according to the version number's parameter before the last upgrading that point page marker and comparing unit are determined, searches and deletes the paged data content before last renewal.
As preferably, described push unit comprises: screening unit, for filtering out the single data entries belonging to the current paging page;
Search unit, whether the data cached of single data entries filtered out for circulation searching screening unit exists, if the data cached existence of single data entries, the data cached of this single data entries is pushed to terminal, if the data cached of single data entries does not exist, read described single information bar destination data and buffer memory from database.
The invention provides a kind of news information acquisition methods, comprising:
The headline creating certain media event in news database and the news information list comprising news information, the corresponding incidence relation of longitude and latitude belonging to the association headline of media event and media event, the association headline of media event and the incidence relation of news information list;
The longitude and latitude of user geographic location is read in location, and on electronic chart, identifies reading user geographic location according to the longitude and latitude reading user geographic location;
The headline based on reading in longitude and latitude interval that the longitude and latitude of user geographic location determines is inquired about in news database, caching system reads the data cached of the headline of also generated query result, terminal reads the longitude and latitude of the headline of Query Result, and on electronic chart, identify geographic position corresponding to the news title that makes new advances;
Terminal receives the headline of reading user and reads instruction, and described headline is read instruction and referred to, reading user clicks the mark corresponding to headline on electronic chart;
Read instruction according to headline, terminal reads the data cached of headline and shows this headline;
Terminal receives reads news information list corresponding to the headline of user and reads instruction, and news information list corresponding to described headline is read instruction and referred to, reads the headline that user clicks display;
Instruction is read in the news information list corresponding according to headline, caching system reads and generates point caching of page of corresponding news information list, terminal reads point caching of page of news information list corresponding to news label from caching system, and this news information list of Pagination Display.
A kind of news information of the present invention obtains system, comprising:
News database, is suitable for storing news information table data and longitude and latitude corresponding to news label;
Caching system, for managing the data cached of news information list;
Longitude and latitude module, is suitable for the longitude and latitude obtaining media event;
Enquiry module, is suitable for inquiring about the news label in longitude and latitude interval;
Locating module: be suitable for locating the longitude and latitude reading customer location;
Interactive module, is suitable for obtaining the list of server news information and corresponding longitude and latitude, and reading user longitude and latitude is transferred to server;
Command reception module, is suitable for receiving and reads user's news information list reading instruction;
Longitude and latitude integrate module, is suitable for news label and reading customer location to be integrated into electronic chart by longitude and latitude;
Display module, is suitable for the longitude and latitude of the news label of integration and reading customer location to show on electronic chart.
News information acquisition methods provided by the invention and system, the longitude and latitude of news information and headline and media event is associated, coordinate the longitude and latitude location to reading user, for user inquires about news information and the headline of generation media event in its vicinity, thus easy-to-read user recognizes the information closely-related with daily life occurring in its periphery.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the buffer service method that the embodiment of the present invention one provides.
Fig. 2 is the process flow diagram of the buffer service method that the embodiment of the present invention two provides.
Fig. 3 is the process flow diagram of the buffer service method that the embodiment of the present invention three provides.
Fig. 4 is the process flow diagram that paged data content of the present invention pushes.
Fig. 5 is the schematic diagram of the buffer service device that embodiments of the invention four provide.
Fig. 6 is the process flow diagram of the information getting method that embodiments of the invention five provide.
Embodiment
Below in conjunction with specification drawings and specific embodiments, the present invention is described further.
Embodiment one: the present embodiment provides a kind of buffer service method, as shown in Figure 1, described method comprises:
101 when receiving the read requests for information list that terminal sends, and reads the data content of described information list from database, generate carry point page marker and version number's parameter divide caching of page; Set up the Cache associativity relation that point page marker of the corresponding same paging page, version number's parameter and paged data content three are formed;
102 when the information list content in server occurs to upgrade, read the data content of the information list after upgrading, version number's parameter of upgrading corresponding to all paging pages, sets up the Cache associativity relation of the version number's parameter after point page marker of the corresponding same paging page, upgrading and the paged data content three formation after upgrading;
103 when receiving the read requests of the paging page for information list that terminal sends, by Cache associativity relation, according to the version number's parameter after point page marker and last upgrading, find the paged data content after last renewal, the paged data content described in pushing to terminal.
By above technical scheme, user is when using a kind of paging type browsing information list first, namely caching system reads information list content, point page marker and a paged data content is generated, by setting up the Cache associativity relation of point page marker, version number's parameter and paged data content according to current paging type.The system of obtaining can according to point page marker and version number's parameter location paged data content.User browses this information list or access when changing the different page of information list again, all from caching system, directly can read paged data content, thus ensure access speed.When server end upgrades this information list content, caching system reads the information list data after upgrading, and carries out paging according to current paging type.Upgrading processing is done to the value of version number's parameter, and the buffer memory of the version number associated after a point page marker, upgrading and the paged data content after upgrading maps simultaneously.Such user is when being switched to a certain page access, and read up-to-date paged data content according to point page marker and the version number's parameter location after increasing progressively, a point caching of page before then lost efficacy.Above technical scheme can build a point caching of page and ensure that user uses the reading speed of terminal obtains information list in caching system, when information list content occurs to upgrade simultaneously, old paged data content all can lose efficacy, and avoids when each information list content occurs to upgrade and needs a series of loaded down with trivial details work such as the paged data content judging that renewal affects.
Embodiment two: as shown in Figure 2, the present embodiment provides a kind of buffer service method, comprising:
201 when receiving the read requests for information list that terminal sends, and reads the data content of described information list, and generate a point caching of page according to user-selected paging type from database.
Point caching of page name of the 202 default each paging pages of corresponding informance list, preset version number's parameter of each paging page of corresponding informance list, version number's parameter of each paging of corresponding informance list is separate.
203 points of caching of page naming mechanisms increase version number's parameter as suffix.
In existing caching system, be a point page marker with a point caching of page masterpiece, in point caching of page, divide caching of page name and the paged data content of the corresponding same paging page is with the relationship of " key-value ".System is found paged data content by a point caching of page name and is carried out the sequence of operations such as reading.
The slow naming mechanism of paging increases version number's parameter as suffix, can set up the Cache associativity relation of the slow name of paging of the corresponding same paging page, version number's parameter and paged data content.
For a news information list, increasing version number parameter as point caching of page naming mechanism of suffix can be the wzxc_newslist_pN_vM(prefix _ news list _ point page number _ version number) such form, wherein the value of N is 1,2 ... N; The value of M is 1,2 ... M, uses point caching of page name of this point of caching of page naming mechanism to be then wzxc_newslist_p1_v1, wzxc_newslist_p2_v2 etc.
204, when the data content of the information list in server occurs to upgrade, read the data content of the information list after upgrading, do increase progressively process to the version number's parameter corresponding to all pagings.
The described process that increases progressively refers to that doing+1 to the numerical value of version number's parameter increases progressively process, caching of page is divided to be called point caching of page of wzxc_newslist_p1_v1, after there is once renewal in information list data content, the numerical value of version number's parameter do+1 increase progressively process after, a new point caching of page is called wzxc_newslist_p1_v2, the name of this buffer memory and this page of paged data relevance buffer memory after upgrading map, like this with the name of the buffer memory of wzxc_newslist_p1_v2 read data cached for the paged data content after upgrading.In like manner increase progressively process also can be+2 or+3 or other increase progressively processing mode, this is that the customary means of the art does not repeat them here.
205 when receiving the read requests for a certain paging page of information list, according to generation of paging having point caching of page name increasing progressively the version number's parameter suffix after process for the last time, find the paged data content after last renewal, the paged data content described in pushing to terminal.
When each data cached renewal, version number's parameter carries out increasing progressively process, a point caching of page name is changed, and makes former point of caching of page become invalid cache, so just can ensure that each the data cached of reading is all up-to-date.The method, without the need to judging data cached which paging specifically had influence on, therefore more easily realizes.And compare the direct method that all points of caching of pages regenerate point caching of page of deleting, this method cache maintenance is comparatively for convenience of not easily makeing mistakes.After former point of caching of page becomes invalid cache, automatically can delete according to after the expired time of caching system.
As shown in Figure 4, the flow process pushing paged data content in the present embodiment comprises:
Preset in 401 caching systems and safeguard list, for storing the single Information ID in information list.
402 when receiving the reading order for a certain paged content of information list, and whether first inquiry maintenance list buffer memory exists, if maintenance column table cache does not exist, then reads and generate maintenance column table cache.
If after 403 maintenance column table caches have existed or generate maintenance column table cache, filtered out the single Information ID belonging to this paging.
Described in 404 cyclic queries, whether the buffer memory of the single information that each single Information ID of this paging is corresponding exists, if the buffer memory of the single information that single Information ID is corresponding does not exist, read the single information content that this single Information ID is corresponding, generate the buffer memory of single information corresponding to this Information ID, and push that this is data cached; If the buffer memory of the single information that single Information ID is corresponding exists, then push the data cached of single information corresponding to this single Information ID.
Use this method when reading point caching of page of information list, as the present embodiment the further optimization of buffer service method that provides.The paged data content segmentation of information list is the data cached of the single information that capacity is less by this method, backstage is made only to have influence on this single information for the renewal of single information like this, greatly can reduce the capacity of cache storage content like this, significantly improve reading speed.Thus when reducing each buffer update, the volume of transmitted data between individual data terminal and caching server, therefore, it is possible to significantly reduce Concurrency Access amount to increase the delay caused.
Embodiment three: as shown in Figure 3, the present embodiment provides a kind of buffer service method, comprising:
301 when receiving the read requests for information list that terminal sends, and reads the data content of described information list, and generate a point caching of page according to user-selected paging type from database.
Point caching of page name of the 302 default each pagings of corresponding informance list, preset version number's parameter of each paging of corresponding informance list, version number's parameter of each paging of corresponding informance list is separate.
For a news information list, a point caching of page naming mechanism is wzxc_newslist_pN(prefix _ news list _ point page number), the value of N is 1,2 ... the form that N is such.
The form of 303 paged data contents is set to the two-dimensional array by version number's parameter and paged data Composition of contents: array(version number parameter, paged data content) form.
For a news information list, the paged data content stored with described form can be, point caching of page of corresponding first page content is called wzxc_newslist_pN(prefix _ news list _ point page number) paged data content be array(M, paged data content), wherein the value of N is 1,2 ... N; The value of M is 1,2 ... M.
304 preset version number's record, for storing current version number value; Described doing the version number's parameter corresponding to all pagings increases progressively process and refers to, does and increases progressively process, and will increase progressively the version number value assignment after process to the version number's parameter corresponding to all pagings to the version number value in version number's record.
The described process that increases progressively refers to that doing+1 to the numerical value of version number's parameter increases progressively process.For a news information list, when reading information list first, the version number value stored in version number's record is 1, a point caching of page for corresponding first page content is called wzxc_newslist_p1, a corresponding point caching of page is array(1, paged data content), after there is once renewal in this news information table data content, the numerical value of version number's parameter do+1 increase progressively process after, the version number value stored in version number's record is 2, point caching of page dividing caching of page to be called wzxc_newslist_p1 corresponding is array(2, new paged data content) or array(1, old paged data content), in like manner increase progressively process also can be+2 or+3 or other increase progressively processing mode, this customary means being the art does not repeat them here.
305 when receiving the reading order for a certain paged content of information list, by the array(version number parameter of this point of caching of page name correspondence, paged data content) in version number's parameter and version number record in version number value compare, read the array(version number parameter that version number's parameter equals the version number value in version number's record, paged data content) in paged data content, and delete version number's parameter and be less than the array(version number parameter of version number value in version number's record, paged data content).
After news information list upgrades, when user reads the content of first page again, a point caching of page according to corresponding first page content is called wzxc_newslist_p1, and inquiring a corresponding point caching of page is array(2, paged data content) or array(1, paged data content), now version number record in store version number value be 2, read array(2, paged data content) in paged data content, and delete array(1, paged data content).
Can not only ensure that each the data cached of reading is all up-to-date like this, and compare the method in enforcement one, former point of caching of page can be deleted, avoid the former point of caching of page becoming Trash cache to take too much space.The method, without the need to judging data cached which paging specifically had influence on, therefore more easily realizes.And compare the direct method that all points of caching of pages regenerate point caching of page of deleting, this method cache maintenance more for convenience, not easily makes mistakes.
As shown in Figure 4, the flow process pushing paged data content in the present embodiment comprises:
Preset in 401 caching systems and safeguard list, for storing the single Information ID in information list.
402 when receiving the reading order for a certain paged content of information list, and whether first inquiry maintenance list buffer memory exists, if maintenance column table cache does not exist, then reads and generate maintenance column table cache.
If after 403 maintenance column table caches have existed or generate maintenance column table cache, filtered out the single Information ID belonging to this paging.
Described in 404 cyclic queries, whether the buffer memory of the single information that each single Information ID of this paging is corresponding exists, if the buffer memory of the single information that single Information ID is corresponding does not exist, read the single information content that this single Information ID is corresponding, generate the buffer memory of single information corresponding to this Information ID, and push that this is data cached; If the buffer memory of the single information that single Information ID is corresponding exists, then push the data cached of single information corresponding to this single Information ID.
Use this method when reading point caching of page of information list, as the present embodiment the further optimization of buffer service method that provides.The paged data content segmentation of information list is the data cached of the single information that capacity is less by this method, backstage is made only to have influence on this single information for the renewal of single information like this, greatly can reduce the capacity of cache storage content like this, significantly improve reading speed.Thus when reducing each buffer update, the volume of transmitted data between individual data terminal and caching server, therefore, it is possible to significantly reduce Concurrency Access amount to increase the delay caused.
Embodiment four: as shown in Figure 5, the invention provides a kind of buffer service device, comprising:
Storage element 501, for storing a point caching of page for information list;
Version number control unit 502, during for occurring to upgrade when the information list content in server, does to increase progressively process to the value of version number's parameter;
Version number's record cell 503, for store version number control unit version number's parameter is upgraded for the last time after the value of version number's parameter;
Associative cell 504, for setting up the Cache associativity relation of dividing page marker, version number's parameter and paged data content three formation of the corresponding same paging page, and when the information list content generation in server upgrades, set up the Cache associativity relation of the version number's parameter after point page marker of the corresponding same paging page, upgrading and the paged data content three formation after upgrading;
Push unit 505, for the Cache associativity relation set up by associative cell, according to point page marker and version number's parameter, finds paged data content.
Described push unit 505 comprises further:
Screening unit 5051, for filtering out the single data entries belonging to the current paging page;
Search unit 5052, whether the data cached of single data entries filtered out for circulation searching screening unit exists, if the data cached existence of single data entries, the data cached of this single data entries is pushed to terminal, if the data cached of single data entries does not exist, read described single information bar destination data and buffer memory from database.
Comparing unit 506, for the value of the version number's parameter stored in the value of several version number's parameters of association same point of page marker and record cell being compared, determines the version number's parameter before last upgrading;
Monitoring unit 507, by Cache associativity relation, according to the version number's parameter before the last upgrading that point page marker and comparing unit are determined, searches and deletes the paged data content before last renewal.
Embodiment five: as shown in Figure 6, the present embodiment provides a kind of news information acquisition methods, comprising:
The headline creating certain media event in 601 news databases and the news information list comprising news information, the corresponding incidence relation of longitude and latitude belonging to the association headline of media event and media event, the association headline of media event and the incidence relation of news information list;
The longitude and latitude of user geographic location is read in 602 location, and on electronic chart, identifies reading user geographic location according to the longitude and latitude reading user geographic location;
603 inquire about the headline based on reading in longitude and latitude interval that the longitude and latitude of user geographic location determines in news database, caching system reads the data cached of the headline of also generated query result, terminal reads the longitude and latitude of the headline of Query Result, and on electronic chart, identify geographic position corresponding to the news title that makes new advances;
604 terminals receive the headline of reading user and read instruction, and described headline is read instruction and referred to, reading user clicks the mark corresponding to headline on electronic chart;
605 read instruction according to headline, and terminal reads the data cached of headline and shows this headline;
606 terminals receive reads news information list corresponding to the headline of users and reads instruction, and news information list corresponding to described headline is read instruction and referred to, reads the headline that user clicks display;
The 607 news information list reading instructions corresponding according to headline, caching system reads and generates point caching of page of corresponding news information list, terminal reads point caching of page of news information list corresponding to news label from caching system, and this news information list of Pagination Display.
In the present embodiment in news information acquisition methods, the buffer service method that caching system uses embodiment one or embodiment two or embodiment three to provide safeguards point caching of page of news information list, and pushes paged data content.
News information acquisition methods provided by the invention and system, the longitude and latitude of news information and headline and media event is associated, coordinate the longitude and latitude location to reading user, for user inquires about news information and the headline of generation media event in its vicinity, thus easy-to-read user recognizes the information closely-related with daily life occurring in its periphery.Employ the embodiment of the present invention one or the buffer service method described in embodiment two simultaneously, can effective guarantee information reading speed, and can effectively can control when Concurrency Access amount increases to read time delay, ensure Consumer's Experience during a large amount of Concurrency Access, be specially adapted to the media event being applied to paroxysmal media event or needing to continue to follow the tracks of.
Embodiment six: the present embodiment provides a kind of news information to obtain system, comprising: news database, is suitable for storing news information table data and longitude and latitude corresponding to news label; Caching system, is suitable for use in and reads from news database and to generate the data cached of news information list; Longitude and latitude module, is suitable for the longitude and latitude obtaining media event; Enquiry module, is suitable for inquiring about the news label in longitude and latitude interval; Locating module: be suitable for locating the longitude and latitude reading customer location; Interactive module, is suitable for obtaining the list of server news information and corresponding longitude and latitude, and reading user longitude and latitude is transferred to server; Command reception module, is suitable for receiving and reads user's news information list reading instruction; Longitude and latitude integrate module, is suitable for news label and reading customer location to be integrated into electronic chart by longitude and latitude; Display module, is suitable for the longitude and latitude of the news label of integration and reading customer location to show on electronic chart.
In the present embodiment in news information acquisition methods, the buffer service method that caching system uses embodiment one or embodiment two or embodiment three to provide safeguards point caching of page of news information list, and pushes paged data content.
The news information that the present embodiment provides obtains system, the longitude and latitude of news information and headline and media event is associated, coordinate the longitude and latitude location to reading user, for user inquires about news information and the headline of generation media event in its vicinity, thus easy-to-read user recognizes the information closely-related with daily life occurring in its periphery, and can allow to read user to give more sustained attention interested media event, obtain the most news information of this media event.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program completes, described program can be stored in the medium of embodied on computer readable.

Claims (10)

1. a buffer service method, is characterized in that, comprising:
When receiving the read requests for information list of terminal transmission, read the data content of described information list from database, generate point caching of page carrying point page marker and version number's parameter; Set up the Cache associativity relation that point page marker of the corresponding same paging page, version number's parameter and paged data content three are formed;
When the information list content in server occurs to upgrade, read the data content of the information list after upgrading, version number's parameter of upgrading corresponding to all paging pages, sets up the Cache associativity relation of the version number's parameter after point page marker of the corresponding same paging page, upgrading and the paged data content three formation after upgrading;
When receiving the read requests of the paging page for information list that terminal sends, by Cache associativity relation, according to the version number's parameter after point page marker and last upgrading, find the paged data content after last renewal, the paged data content described in pushing to terminal.
2. buffer service method according to claim 1, is characterized in that, the step of the version number's parameter corresponding to all paging pages of described upgrading, comprises further:
The value of version number's parameter corresponding to all paging pages is done and increases progressively process.
3. buffer service method according to claim 1, is characterized in that, finds the paged data content after last renewal, comprises further after the paged data content described in terminal propelling movement:
By Cache associativity relation, according to the version number's parameter before point page marker and last upgrading, search and delete the paged data content before last renewal.
4. buffer service method according to claim 1, is characterized in that, described in find the paged data content after last renewal, the step of the paged data content described in pushing to terminal, comprises further:
In the circulation searching current paging page, whether the data cached of single data entries exists, if the data cached existence of single data entries, the data cached of this single data entries is pushed to terminal, if the data cached of single data entries does not exist, read described single information bar destination data and buffer memory from database.
5. a buffer service device, comprises storage element, for storing a point caching of page for information list, it is characterized in that, also comprise:
Version number control unit, during for occurring to upgrade when the information list content in server, upgrades to version number's parameter;
Version number's record cell, for store version number control unit version number's parameter is upgraded for the last time after the value of version number's parameter;
Associative cell, for setting up the Cache associativity relation of dividing page marker, version number's parameter and paged data content three formation of the corresponding same paging page, and when the information list content generation in server upgrades, set up the Cache associativity relation of the version number's parameter after point page marker of the corresponding same paging page, upgrading and the paged data content three formation after upgrading;
Push unit, for the Cache associativity relation set up by associative cell, according to point page marker and version number's parameter, finds paged data content.
6. a kind of buffer service device according to claim 5, is characterized in that, described version number control unit is further used for, when the information list content in server occurs to upgrade, doing increase progressively process to the value of version number's parameter.
7. a kind of buffer service device according to claim 5, is characterized in that, also comprise:
Comparing unit, for the value of the version number's parameter stored in the value of several version number's parameters of association same point of page marker and record cell being compared, determines the version number's parameter before last upgrading;
Monitoring unit, by Cache associativity relation, according to the version number's parameter before the last upgrading that point page marker and comparing unit are determined, searches and deletes the paged data content before last renewal.
8. a kind of buffer service device according to claim 5, it is characterized in that, described push unit comprises:
Screening unit, for filtering out the single data entries belonging to the current paging page;
Search unit, whether the data cached of single data entries filtered out for circulation searching screening unit exists, if the data cached existence of single data entries, the data cached of this single data entries is pushed to terminal, if the data cached of single data entries does not exist, read described single information bar destination data and buffer memory from database.
9. use a news information acquisition methods for claim 1 or 2 or the buffer service method described in 3 or 4, it is characterized in that, comprising:
The headline creating certain media event in news database and the news information list comprising news information, the corresponding incidence relation of longitude and latitude belonging to the association headline of media event and media event, the association headline of media event and the incidence relation of news information list;
The longitude and latitude of user geographic location is read in location, and on electronic chart, identifies reading user geographic location according to the longitude and latitude reading user geographic location;
The headline based on reading in longitude and latitude interval that the longitude and latitude of user geographic location determines is inquired about in news database, caching system reads the data cached of the headline of also generated query result, terminal reads the longitude and latitude of the headline of Query Result, and on electronic chart, identify geographic position corresponding to the news title that makes new advances;
Terminal receives the headline of reading user and reads instruction, and described headline is read instruction and referred to, reading user clicks the mark corresponding to headline on electronic chart;
Read instruction according to headline, terminal reads the data cached of headline and shows this headline;
Terminal receives reads news information list corresponding to the headline of user and reads instruction, and news information list corresponding to described headline is read instruction and referred to, reads the headline that user clicks display;
Instruction is read in the news information list corresponding according to headline, caching system reads and generates point caching of page of corresponding news information list, terminal reads point caching of page of news information list corresponding to news label from caching system, and this news information list of Pagination Display.
10. use the news information of claim 1 or 2 or the buffer service method described in 3 or 4 to obtain a system, it is characterized in that, comprising:
News database, is suitable for storing news information table data and longitude and latitude corresponding to news label;
Caching system, for managing the data cached of news information list;
Longitude and latitude module, is suitable for the longitude and latitude obtaining media event;
Enquiry module, is suitable for inquiring about the news label in longitude and latitude interval;
Locating module: be suitable for locating the longitude and latitude reading customer location;
Interactive module, is suitable for obtaining the list of server news information and corresponding longitude and latitude, and reading user longitude and latitude is transferred to server;
Command reception module, is suitable for receiving and reads user's news information list reading instruction;
Longitude and latitude integrate module, is suitable for news label and reading customer location to be integrated into electronic chart by longitude and latitude;
Display module, is suitable for the longitude and latitude of the news label of integration and reading customer location to show on electronic chart.
CN201510021210.3A 2015-01-16 2015-01-16 News information acquisition methods and system Active CN104573035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510021210.3A CN104573035B (en) 2015-01-16 2015-01-16 News information acquisition methods and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510021210.3A CN104573035B (en) 2015-01-16 2015-01-16 News information acquisition methods and system

Publications (2)

Publication Number Publication Date
CN104573035A true CN104573035A (en) 2015-04-29
CN104573035B CN104573035B (en) 2019-07-23

Family

ID=53089097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510021210.3A Active CN104573035B (en) 2015-01-16 2015-01-16 News information acquisition methods and system

Country Status (1)

Country Link
CN (1) CN104573035B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105843958A (en) * 2016-04-15 2016-08-10 北京思特奇信息技术股份有限公司 Cache-based server paging method and system
CN106657193A (en) * 2015-11-02 2017-05-10 腾讯科技(深圳)有限公司 Request processing method, request processing device, terminal device and server
CN106874328A (en) * 2016-07-08 2017-06-20 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
CN106934057A (en) * 2017-03-22 2017-07-07 福建中金在线信息科技有限公司 A kind of data cached update method of paging and device
CN106940867A (en) * 2017-02-24 2017-07-11 深圳国泰安教育技术股份有限公司 A kind of financial trade method and device
CN107317855A (en) * 2017-06-21 2017-11-03 努比亚技术有限公司 A kind of data cache method, data request method and server
CN107577775A (en) * 2017-09-08 2018-01-12 北京奇艺世纪科技有限公司 One kind reads data method, device, electronic equipment and readable storage medium storing program for executing
CN109684283A (en) * 2018-12-24 2019-04-26 国电南瑞科技股份有限公司 A kind of mobile application CIM/G file local cache method, system and equipment
CN110597859A (en) * 2019-09-06 2019-12-20 天津车之家数据信息技术有限公司 Method and device for querying data in pages
CN111523066A (en) * 2019-02-02 2020-08-11 阿里巴巴集团控股有限公司 Data acquisition method and device
CN114722046A (en) * 2022-04-18 2022-07-08 聚好看科技股份有限公司 Server and home page cache data version generation method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100174690A1 (en) * 2009-01-08 2010-07-08 International Business Machines Corporation Method, Apparatus and Computer Program Product for Maintaining File System Client Directory Caches with Parallel Directory Writes
CN103188605A (en) * 2011-12-30 2013-07-03 上海博泰悦臻电子设备制造有限公司 Field news interactive system
CN104123235A (en) * 2013-04-26 2014-10-29 国际商业机器公司 Device and method for visiting data recording stored in cache on server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100174690A1 (en) * 2009-01-08 2010-07-08 International Business Machines Corporation Method, Apparatus and Computer Program Product for Maintaining File System Client Directory Caches with Parallel Directory Writes
CN103188605A (en) * 2011-12-30 2013-07-03 上海博泰悦臻电子设备制造有限公司 Field news interactive system
CN104123235A (en) * 2013-04-26 2014-10-29 国际商业机器公司 Device and method for visiting data recording stored in cache on server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BENLAMK: "用memcached做实时分页缓存", 《HTTPS://WWW.CNBLOGS.COM/LBEN/ARCHIVE/2012/10/26/2741695.HTML》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657193B (en) * 2015-11-02 2019-11-19 腾讯科技(深圳)有限公司 A kind of request processing method, device, terminal device and server
CN106657193A (en) * 2015-11-02 2017-05-10 腾讯科技(深圳)有限公司 Request processing method, request processing device, terminal device and server
CN105843958A (en) * 2016-04-15 2016-08-10 北京思特奇信息技术股份有限公司 Cache-based server paging method and system
CN113158110A (en) * 2016-07-08 2021-07-23 创新先进技术有限公司 Data processing method and equipment
CN106874328A (en) * 2016-07-08 2017-06-20 阿里巴巴集团控股有限公司 A kind of data processing method and equipment
CN106940867A (en) * 2017-02-24 2017-07-11 深圳国泰安教育技术股份有限公司 A kind of financial trade method and device
CN106940867B (en) * 2017-02-24 2020-11-20 深圳国泰安教育技术有限公司 Financial transaction method and device
CN106934057A (en) * 2017-03-22 2017-07-07 福建中金在线信息科技有限公司 A kind of data cached update method of paging and device
CN107317855A (en) * 2017-06-21 2017-11-03 努比亚技术有限公司 A kind of data cache method, data request method and server
CN107577775A (en) * 2017-09-08 2018-01-12 北京奇艺世纪科技有限公司 One kind reads data method, device, electronic equipment and readable storage medium storing program for executing
CN107577775B (en) * 2017-09-08 2021-12-10 北京奇艺世纪科技有限公司 Data reading method and device, electronic equipment and readable storage medium
CN109684283A (en) * 2018-12-24 2019-04-26 国电南瑞科技股份有限公司 A kind of mobile application CIM/G file local cache method, system and equipment
CN111523066A (en) * 2019-02-02 2020-08-11 阿里巴巴集团控股有限公司 Data acquisition method and device
CN111523066B (en) * 2019-02-02 2023-06-30 阿里巴巴集团控股有限公司 Data acquisition method and device
CN110597859A (en) * 2019-09-06 2019-12-20 天津车之家数据信息技术有限公司 Method and device for querying data in pages
CN114722046A (en) * 2022-04-18 2022-07-08 聚好看科技股份有限公司 Server and home page cache data version generation method

Also Published As

Publication number Publication date
CN104573035B (en) 2019-07-23

Similar Documents

Publication Publication Date Title
CN104573035A (en) Caching service method and device and news information obtaining method and system
CN102937980B (en) A kind of Cluster Database data enquire method
CN107133234B (en) Method, device and system for updating cache data
CN103678523B (en) Distributed cache cache data access methods and device
CN105677826A (en) Resource management method for massive unstructured data
CN103139301B (en) Be applied to the internet access accelerated method in content distribution network system and device
CN105224546B (en) Data storage and query method and equipment
CN102117338B (en) Data base caching method
KR101672901B1 (en) Cache Management System for Enhancing the Accessibility of Small Files in Distributed File System
CN101160797B (en) Method for subscribing data dynamically
CN104679898A (en) Big data access method
CN102214192A (en) Method for realizing data curve chart display on Web page and server
CN101477748B (en) Traffic condition management method and system
CN104778270A (en) Storage method for multiple files
CN103530387A (en) Improved method aimed at small files of HDFS
CN103186622B (en) The update method of index information and device in a kind of text retrieval system
CN109167840B (en) Task pushing method, node autonomous server and edge cache server
CN106681995B (en) Data caching method, data query method and device
CN102253941A (en) Cache updating method and cache updating device
CN104253836B (en) Image display method, mobile terminal based on wireless network and system
CN103530349A (en) Method and equipment for cache updating
CN103152396A (en) Data placement method and device applied to content distribution network system
CN101236564A (en) Mass data high performance reading display process
CN105701233B (en) A method of optimization server buffer management
Min et al. A system framework for map air update navigation service

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