CN107908775A - The dynamic of merchandise news shows method, electronic equipment, storage medium - Google Patents

The dynamic of merchandise news shows method, electronic equipment, storage medium Download PDF

Info

Publication number
CN107908775A
CN107908775A CN201711243794.4A CN201711243794A CN107908775A CN 107908775 A CN107908775 A CN 107908775A CN 201711243794 A CN201711243794 A CN 201711243794A CN 107908775 A CN107908775 A CN 107908775A
Authority
CN
China
Prior art keywords
merchandise news
caching
stored
client
displaying
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
CN201711243794.4A
Other languages
Chinese (zh)
Other versions
CN107908775B (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.)
Shenzhen Zhangyue Animation Technology Co ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201711243794.4A priority Critical patent/CN107908775B/en
Publication of CN107908775A publication Critical patent/CN107908775A/en
Application granted granted Critical
Publication of CN107908775B publication Critical patent/CN107908775B/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/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of dynamic of merchandise news to show method, electronic equipment, storage medium, its method includes:Receive the displaying request for the merchandise news that client is sent;Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and client is returned to, so that client is shown.The present invention can utilize buffer memory merchandise news, after the displaying for receiving merchandise news is asked, the not out of date merchandise news of specified quantity is obtained from caching, on the one hand, the inquiry pressure that server is born is reduced, is shown according to the merchandise news stored in the buffer in advance;On the other hand improving client gets the speed that merchandise news is shown, and gives user preferable user experience.

Description

The dynamic of merchandise news shows method, electronic equipment, storage medium
Technical field
The present invention relates to software field, and in particular to a kind of dynamic of merchandise news shows method, electronic equipment, storage Jie Matter.
Background technology
When merchandise news is shown, since the space of available commodities information displaying is limited, generally it is only capable of showing limited business Product information.By taking e-book as an example, such as e-book list, 100 e-book are contained in e-book list, but due in client Space for showing e-book list is limited, is once only capable of 3 e-book informations of displaying, the e-book information quantity of displaying compared with It is few.User wants to check whole e-book lists, it is necessary to click on the operation for checking whole e-book lists again, can just see it His e-book information.If the e-book information shown every time is all the e-book information of immobilized substance, then user can not One time saw other e-book informations in e-book list, caused the exposure of a large amount of e-book not high.It is different for increase The exposure rate of e-book, can be random from 100 e-book informations of e-book list in displaying e-book information every time 3 different e-book informations of displaying, i.e., server every time it is random from 100 e-book informations obtain 3 e-book This 3 e-book informations are sent to client and are shown by information.But so processing so that server be required for every time from The processing for doing to obtain at random in 100 e-book informations, the pressure of server are very big.Further, when the radix of user is very big, electricity When the e-book quantity that philosophical works list includes is very much, the pressure of server can be huge, and the speed for feeding back to user also can be slack-off, visitor The time for the e-book information that family end is shown can be elongated, and user experience is bad.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least in part The dynamic for stating the e-book information of problem shows method, electronic equipment, storage medium.
According to an aspect of the invention, there is provided a kind of dynamic of merchandise news shows method, it includes:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return To client, so that client is shown.
According to another aspect of the present invention, there is provided a kind of electronic equipment, including:Processor, memory, communication interface and Communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory is used to store an at least executable instruction, and executable instruction makes processor perform following operation:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return To client, so that client is shown.
According to another aspect of the invention, there is provided a kind of computer-readable storage medium, is stored with least one in storage medium Executable instruction, executable instruction make processor perform following operation:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return To client, so that client is shown.
The dynamic of the merchandise news provided according to the present invention shows method, electronic equipment, storage medium, receives client hair The displaying request of the merchandise news gone out;Asked according to the displaying of merchandise news, not out of date business whether is stored with query caching Product information;If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return to Client, so that client is shown.The present invention can utilize buffer memory merchandise news, receive the exhibition of merchandise news After showing request, the not out of date merchandise news of specified quantity is obtained from caching, on the one hand, reduce the inquiry pressure that server is born Power, is shown according to the merchandise news stored in the buffer in advance;On the other hand improving client gets merchandise news The speed being shown, gives user preferable user experience.Further, the merchandise news stored in caching be not permanent set not Become, merchandise news has expired time.So ensure the timeliness of the merchandise news stored in caching, will not be with actual business There are deviation for product information.Meanwhile different merchandise news can be stored every time in the buffer, facilitate client to show different business Product information improves the exposure of different e-book to user.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole attached drawing, identical component is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows that the dynamic of according to embodiments of the present invention one merchandise news shows the flow chart of method;
Fig. 2 shows that the dynamic of according to embodiments of the present invention two merchandise news shows the flow chart of method;
Fig. 3 shows the structure diagram of according to embodiments of the present invention four a kind of electronic equipment.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Merchandise news is illustrated by taking e-book information as an example in the present invention, but merchandise news is not limited only to electronics letter Breath, any merchandise news shown are suitable for the present invention.
Embodiment one
Fig. 1 shows that the dynamic of according to embodiments of the present invention one merchandise news shows the flow chart of method, such as Fig. 1 institutes Show, the dynamic of merchandise news shows method and specifically comprises the following steps:
Step S101, receives the displaying request for the e-book information that client is sent.
E-book information includes such as front cover, brief introduction, author, newest Chapter List, price information.Client can To show that above e-book information to user, facilitates user to understand the content of e-book, and then select corresponding e-book to carry out Read.The displaying of e-book information is conducive to improve the exposure of e-book, more users is read the e-book.
After client opens e-book Website page, the displaying that can send e-book information to server accordingly is asked, After receiving displaying request, it response can show request accordingly, carry out subsequent treatment.
The type information of the e-book of request displaying can be carried in the displaying request of e-book information, needs what is shown Specified quantity information of e-book etc..
Step S102, is asked according to the displaying of e-book information, and not out of date e-book whether is stored with query caching Information.
Asked according to the displaying of e-book information, whether be stored with first query caching and meet e-book information displaying request Corresponding e-book information, and e-book information is not out of date e-book information (since e-book information has such as author Situations such as have updated new chapters and sections, e-book price adjustment, e-book information are not unalterable, therefore, are stored in caching E-book information be also required to it is corresponding be updated, caching expired time, general cache are set to the e-book information of storage Expired time will not be long, and the e-book information of e-book information and real data library storage differs caused by avoiding overlong time The situation of cause.The e-book information stored in the caching of acquisition is preferably using not out of date e-book information).Wherein, inquiry is slow Whether not out of date e-book information is stored with depositing, specifically, such as the displaying request of response e-book information, the displaying of reception Ask, to show the e-book information to finish request, to perform the instruction for the e-book that inquiry finishes in the buffer, obtain in caching The e-book information finish and not out of date whether stored, if so, step S103 is performed, if it is not, performing step S104.
Step S103, obtains the electronics letter of specified quantity from caching in stored not out of date e-book information Breath, and client is returned to, so that client is shown.
When being stored with not out of date e-book information in caching, the stored not out of date e-book directly from caching In information obtain displaying request in specified quantity e-book information, e-book information is returned into client, by client into Row displaying.The quantity of the general e-book information stored in the buffer can be greater than or equal to specified quantity in displaying request, so Ensure that can get the e-book information of specified quantity when obtaining e-book information from caching.Stored from caching Not out of date e-book information in obtain specified quantity e-book information when, can at random choose specified quantity electronics Letter breath returns to client.
Since the quantity of the e-book information stored in caching can be far smaller than the quantity of e-book information in database, two The quantitative levels of person are different, the speed of e-book information is directly acquired from caching can be significantly faster than from database and obtain electronics The speed of letter breath, can greatly promote the response speed of the displaying request sent to client, user is preferably used Experience at family.
Step S104, if not being stored with e-book information in caching or being stored with e-book information out of date, by electricity The displaying request of philosophical works information passes to backstage.
Step S105, searches the e-book information of default quantity, by the electricity of default quantity from the stored data in backstage In philosophical works information write-in caching.
Step S106, obtains the e-book information of specified quantity from the e-book information of default quantity, and returns to visitor Family end, so that client is shown.
When not being stored with e-book information in caching, alternatively, be stored with e-book information, but e-book information mistake During the phase, the displaying request such as received is the e-book information request that displaying finishes, and does not have the electronics that storage finishes in query caching Letter ceases, or inquires in caching and be stored with the e-book information to finish, but further confirms that the e-book information pair to finish It is e-book information out of date etc. for current time, at this time, it is impossible to it is right that displaying request institute is directly obtained from caching The e-book information answered passes to backstage, the database or pre- from backstage, it is necessary to by the displaying request transparent transmission of e-book information The e-book information of default quantity corresponding with displaying request is found in the data file first generated.Also, by what is found The e-book information of default quantity is write in caching at the same time, convenient directly to search e-book information from caching next time. The e-book information of specified quantity in displaying request is obtained from the e-book information of default quantity, e-book information is returned to Client, is shown by client.
Wherein, the specified quantity during default quantity is greater than or is asked equal to displaying.Refer to when default quantity is greater than or equal to During fixed number amount, it is ensured that displaying request can obtain the e-book information of enough specified quantities every time.Further, present count For amount when being more than specified quantity, such as default quantity is 6, specified quantity 3, when receiving that repeatedly displaying is asked, it is corresponding can be with Obtain 3 different e-book informations every time from 6 e-book informations and return to client, to show the different electricity of client Philosophical works information, improves the exposure of different e-book, enriches the range of choice of client.
The dynamic of the merchandise news provided according to the present invention shows method, receives the exhibition for the e-book information that client is sent Show request;Asked according to the displaying of e-book information, not out of date e-book information whether is stored with query caching;If so, The e-book information of specified quantity is obtained in stored not out of date e-book information from caching, and returns to client, So that client is shown.The present invention can utilize buffer memory e-book information, receive the displaying of e-book information After request, the not out of date e-book information of specified quantity is obtained from caching, on the one hand, reduce the inquiry pressure that server is born Power, is shown according to the e-book information stored in the buffer in advance;On the other hand improving client gets e-book The speed that information is shown, gives user preferable user experience.Further, the e-book information stored in caching is not eternal Changeless, e-book information has expired time.The timeliness of the e-book information stored in caching is so ensured, no There are deviation for meeting and actual e-book information.Meanwhile different e-book informations can be stored every time in the buffer, facilitate client End shows different e-book information to user, improves the exposure of different e-book.
Embodiment two
Fig. 2 shows that the dynamic of according to embodiments of the present invention two merchandise news shows the flow chart of method, such as Fig. 2 institutes Show, the dynamic of merchandise news shows method and includes the following steps:
Step S201, establishes the server cluster for including multiple servers.
A server cluster for including multiple servers is established, the pressure that server side is born can be alleviated, is shunted The request that client is initiated.A Linux virtual server (Linux Virtual Server, abbreviation LVS) is such as established, Linux virtual server is a virtual server cluster system, using IP load-balancing techniques and based on content requests point Hair technology, has good throughput, the request that client is sent can be balancedly transferred on different servers and performed, And automatic shield falls the failure of server, multiple servers are formed into high performance, High Availabitity a virtual server.
Step S202, receives the electricity that client accesses e-book site home page or the e-book website list page is sent The displaying request of philosophical works information.
For e-book, each list page of e-book site home page or e-book website is that user clicks are most The page, in the exposure rate highest of the e-book information of each list page presentation of e-book site home page or e-book website, most easily Browsed to, and then be easily selected by a user by user.It is different using each list web page recommendation of e-book site home page or e-book website E-book information, the exposures of more e-book can be improved on a large scale, increase the reading quantity of e-book.Therefore, exist When receiving the displaying request of the e-book information that sends of client, it is preferred that receive client access e-book site home page or The displaying request for the e-book information that person's e-book website list page is sent, response displaying request carry out subsequent treatment.
Step S203, any server is specified using load dispatcher, to obtain the displaying of e-book information request.
Asked according to displaying, using the load dispatcher of server cluster, using IP load-balancing techniques and based on content Distribution technology is asked, specifies any server in multiple servers, to obtain the displaying of e-book information request, it is carried out Response is handled.
Specifically, as 100 e-book can be included in the list of e-book website, only opened up in e-book site home page every time Show the e-book information of 3 e-book in list, it is necessary to randomly select 3 electronics in 100 e-book from database every time The e-book information of book returns to client and is shown.When the e-book that list includes is more, every time from database The time randomly selected can be longer, and the pressure of server can bigger.When using a server, server it is slow 6 e-book informations can be stored by depositing, and 3 e-book informations of acquisition return to client and opened up from 6 e-book informations Show.It is also far from enough but 6 compared with 100 e-book quantity of list, also have many e-book and be not demonstrated, also It must need to access database, obtain more different e-book informations.And the caching of a server is limited, it is impossible to which storage is more More e-book informations.Different e-book informations, every server can be stored wherein using the caching of multiple servers 6 different e-book informations of buffer memory, this e-book information of 6*9=54 can be stored in the caching of 9 servers, far Much larger than the quantity of the e-book information stored in a server buffer.So repeatedly receiving the access electricity of client transmission During the displaying request for the e-book information that philosophical works site home page is sent, different clothes can be specified every time using load dispatcher Business device obtains displaying request, returns to e-book information different in server buffer, more preferable to improve different e-book in list Exposure rate, also reduce frequently access database number.And e-book information is directly acquired from server buffer, more significantly The acquisition speed of e-book is improved, improves the response speed to client.Alternatively, for the e-book website list page, one page E-book information all in list can not be shown, it is necessary to during Pagination Display, the not same page that will can be obtained from database In e-book information be stored in the caching of different server, according to displaying information, specify corresponding server, from caching Corresponding e-book information is obtained, returns to client, so that client is shown.The response to client was so both improved Speed, lifts customer experience effect, and can alleviate server stress.
Step S204, judges whether that the e-book information of storage can be obtained from caching.
Go to obtain e-book information from server buffer, can be from caching if being stored with e-book information in caching Get e-book information., please by the displaying of e-book information if performing step S206 without storage e-book information in caching Ask and pass to background data base.
Further, when getting e-book information, it is also necessary to judge current time whether beyond the slow of e-book information Deposit expired time.Specifically, due to e-book information, there may be change, such as e-book price to be promoted, promotion period electronics The price of e-book outside the price and promotion period of book is inconsistent.Therefore, when storing e-book information in the buffer, electricity can be set The caching expired time of philosophical works information, will not be stored in caching for a long time by the e-book information once obtained from database In, e-book information has been updated in database to avoid occurring, and the e-book information and database that are stored in caching are long-term Inconsistent situation.After the e-book information for obtaining storage from caching, judge current time whether beyond e-book information Expired time is cached, current time is not above the caching expired time of e-book information if judging, it may be determined that is deposited in caching Not out of date e-book information is contained, step S205 is performed, e-book information can be obtained directly from caching and return to client End.If judging, current time exceedes the caching expired time of e-book information, performs step S206.
Step S205, obtains the e-book of specified quantity at random from caching in stored not out of date e-book information Information, and client is returned to, so that client is shown.
When being stored with not out of date e-book information in caching, the stored not out of date e-book directly from caching The e-book information of specified quantity, returns to client, by visitor by e-book information during random acquisition displaying is asked in information Family end is shown.Herein, the quantity of the e-book information stored in caching is far smaller than the e-book that is stored in database Quantity, the directly random acquisition e-book information from caching, speed significantly faster than obtain specified quantity at random from database E-book information speed, greatly promote client is sent displaying request response speed, user is obtained preferably User experience.
Step S206, backstage is passed to by the displaying request of e-book information.
Step S207, searches the e-book information of default quantity, by the electricity of default quantity from the stored data in backstage In philosophical works information write-in caching, and caching expired time is set for the e-book information of default quantity.
Step S208, obtains the e-book information of specified quantity from the e-book information of default quantity, and returns to visitor Family end, so that client is shown.
When not being stored with e-book information in caching, alternatively, when storage has plenty of expired e-book information, it is impossible to from The corresponding e-book information of displaying request is directly obtained in caching, it is necessary to which the displaying of e-book information is asked transparent transmission, is passed Background data base is passed, is found from background data base or the data file previously generated corresponding with displaying request default The e-book information of quantity.Herein, preferably default quantity is more than specified quantity, so convenient subsequently from the e-book of default quantity During the e-book information of acquisition specified quantity that can be at random in information, the e-book information that can make to obtain at random every time exists Difference, client can show that different e-book informations is checked to user, avoid client from showing identical e-book every time Information is to user, the problem of causing other e-book exposures insufficient.
After the e-book information of default quantity corresponding with displaying request is found, by the electricity of the default quantity found Philosophical works information is write in caching at the same time, convenient directly to search e-book information from caching next time, and is default quantity E-book information set caching expired time.Specified quantity in displaying request is obtained from the e-book information of default quantity E-book information, returns to client by e-book information, is shown by client.
The dynamic of the merchandise news provided according to the present invention shows method, establishes the server set for including multiple servers Group, the displaying request for specifying any server to send client using load dispatcher respond.Multiple servers cache The different e-book information of middle storage, can store more e-book informations in the buffer so that random obtain returns to visitor The e-book information result at family end is more different, and reduce frequently access database obtain e-book information spent when Between, number, improve the response speed to client, lift customer experience effect, also alleviate server stress significantly.
Embodiment three
The embodiment of the present application three provides a kind of nonvolatile computer storage media, computer-readable storage medium be stored with to A few executable instruction, the computer executable instructions can perform the dynamic exhibition of the merchandise news in above-mentioned any means embodiment Existing method.
Executable instruction specifically can be used for so that processor performs following operation:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return To client, so that client is shown.
In a kind of optional embodiment, executable instruction further makes processor perform following operation:If in caching Merchandise news is not stored with or is stored with merchandise news out of date, and the displaying request of merchandise news is passed into backstage;From The merchandise news of default quantity is searched in stored data from the background, by the merchandise news write-in caching of default quantity;From pre- If obtaining the merchandise news of specified quantity in the merchandise news of quantity, and client is returned to, so that client is shown;Its In, default quantity is greater than or equal to specified quantity.
In a kind of optional embodiment, executable instruction further makes processor perform following operation:By present count In the merchandise news write-in caching of amount, and caching expired time is set for the merchandise news of default quantity.
In a kind of optional embodiment, executable instruction further makes processor perform following operation:If in caching Merchandise news is stored with, judges whether current time exceeds the caching expired time of merchandise news;If not, it is determined that deposited in caching Contain not out of date merchandise news.
In a kind of optional embodiment, executable instruction further makes processor perform following operation:From caching The merchandise news of specified quantity is obtained in stored not out of date merchandise news at random.
In a kind of optional embodiment, executable instruction further makes processor perform following operation:Foundation includes The server cluster of multiple servers;Any server is specified using load dispatcher, to obtain the displaying of merchandise news request.
In a kind of optional embodiment, merchandise news is e-book information.
In a kind of optional embodiment, executable instruction further makes processor perform following operation:Receive client The displaying request for the e-book information that end access e-book site home page or the e-book website list page are sent.
Example IV
Fig. 3 shows the structure diagram of according to embodiments of the present invention four a kind of electronic equipment, present invention specific implementation Specific implementation of the example not to electronic equipment limits.
As shown in figure 3, the electronic equipment can include:Processor (processor) 302, communication interface (Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein:
Processor 302, communication interface 304 and memory 306 complete mutual communication by communication bus 308.
Communication interface 304, for communicating with the network element of miscellaneous equipment such as client or other servers etc..
Processor 302, for executive program 310, the dynamic that can specifically perform above-mentioned merchandise news shows method implementation Correlation step in example.
Specifically, program 310 can include program code, which includes computer-managed instruction.
Processor 302 is probably central processor CPU, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the embodiment of the present invention one or more integrate electricity Road.The one or more processors that server includes, can be same type of processors, such as one or more CPU;Can also It is different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high-speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 performs following operation:
In a kind of optional embodiment, program 310 is used for so that processor 302 receives the commodity letter that client is sent The displaying request of breath;Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;If It is to obtain the merchandise news of specified quantity in stored not out of date merchandise news from caching, and returns to client, with It is shown for client.
In a kind of optional embodiment, if program 310 is used for so that processor 302 is not stored with commodity letter in caching Cease or be stored with merchandise news out of date, the displaying request of merchandise news is passed into backstage;From the stored number in backstage According to the middle merchandise news for searching default quantity, by the merchandise news write-in caching of default quantity;Believe from the commodity of default quantity The merchandise news of specified quantity is obtained in breath, and returns to client, so that client is shown;Wherein, it is big to preset quantity In or equal to specified quantity.
In a kind of optional embodiment, program 310 is used for so that processor 302 writes the merchandise news of default quantity Enter in caching, and caching expired time is set for the merchandise news of default quantity.
In a kind of optional embodiment, if being stored with merchandise news in caching, program 310 is used for so that processor 302 judge whether current time exceeds the caching expired time of merchandise news;If not, it is determined that be stored with caching not out of date Merchandise news.
In a kind of optional embodiment, program 310 is used for so that processor 302 is stored not out of date from caching Merchandise news in the random merchandise news for obtaining specified quantity.
In a kind of optional embodiment, program 310 is used for so that processor 302 establishes the clothes for including multiple servers Business device cluster;Any server is specified using load dispatcher, to obtain the displaying of merchandise news request.
In a kind of optional embodiment, merchandise news is e-book information.
In a kind of optional embodiment, program 310 is used for so that processor 302 receives client and accesses e-book net The displaying request for the e-book information that station owner's page or the e-book website list page are sent.
In program 310 specific implementation of each step may refer to above-mentioned merchandise news dynamic show it is corresponding in embodiment Corresponding description in step, this will not be repeated here.It is apparent to those skilled in the art that for description convenience and Succinctly, the specific work process of the equipment of foregoing description and module, the corresponding process that may be referred in preceding method embodiment are retouched State, details are not described herein.
The scheme provided through this embodiment, receives the displaying request for the merchandise news that client is sent;Believed according to commodity The displaying of breath is asked, and not out of date merchandise news whether is stored with query caching;It is if so, stored not out of date from caching Merchandise news in obtain the merchandise news of specified quantity, and client is returned to, so that client is shown.The present invention can To utilize buffer memory merchandise news, after the displaying for receiving merchandise news is asked, specified quantity is obtained not from caching Expired merchandise news, on the one hand, the inquiry pressure that server is born is reduced, according to the merchandise news stored in the buffer in advance It is shown;On the other hand improving client gets the speed that merchandise news is shown, and gives user preferable user's body Test.Further, the merchandise news stored in caching is not that permanent set is constant, and merchandise news has expired time.So protect Hindered the timeliness of merchandise news stored in caching, will not and actuals information there are deviation.Meanwhile can be in the buffer Different merchandise news is stored every time, facilitates client to show different merchandise news to user, improves the exposure of different e-book Luminosity.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any Combination is disclosed to all features disclosed in this specification (including adjoint claim, summary and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification (including adjoint power Profit requires, summary and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real It is existing.The use of word first, second, and third does not indicate that any order.These words can be construed to title.
The invention discloses:A1. a kind of dynamic of merchandise news shows method, it includes:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return To client, so that client is shown.
A2. the method according to A1, wherein, the method further includes:
, please by the displaying of merchandise news if not being stored with merchandise news in caching or being stored with merchandise news out of date Ask and pass to backstage;
The merchandise news of default quantity is searched from the stored data in backstage, the merchandise news of default quantity is write slow In depositing;
The merchandise news of specified quantity is obtained from the merchandise news of default quantity, and returns to client, for client End is shown;Wherein, the default quantity is greater than or equal to the specified quantity.
A3. the method according to A2, wherein, the merchandise news that default quantity is searched from background data base it Afterwards, the method further includes:
During the merchandise news write-in of the default quantity is cached, and caching is set for the merchandise news of the default quantity Expired time.
A4. the method according to A3, wherein, not out of date merchandise news whether is stored with the query caching into one Step includes:
If being stored with merchandise news in caching, judge whether current time exceeds the caching expired time of merchandise news;If It is no, it is determined that not out of date merchandise news is stored with the caching.
A5. the method according to any one of A1-A4, wherein, the not out of date commodity stored from caching The merchandise news of acquisition specified quantity is specially in information:Obtained at random in stored not out of date merchandise news from caching The merchandise news of specified quantity.
A6. the method according to any one of A1-A5, wherein, the method further includes:
Establish the server cluster for including multiple servers;
After the displaying request for the merchandise news that the reception client is sent, the method further includes:
Any server is specified using load dispatcher, to obtain the displaying of merchandise news request.
A7. the method according to any one of A1-A6, wherein, the merchandise news is e-book information.
A8. the method according to A7, wherein, the displaying request for receiving the merchandise news that client is sent is specifically For:The displaying for the e-book information that reception client access e-book site home page or the e-book website list page are sent Request.
The invention also discloses:B9. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, The processor, the memory and the communication interface complete mutual communication by the communication bus;
The memory is used to store an at least executable instruction, and it is following that the executable instruction performs the processor Operation:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return To client, so that client is shown.
B10. the electronic equipment according to B9, the executable instruction further make the processor perform following behaviour Make:
, please by the displaying of merchandise news if not being stored with merchandise news in caching or being stored with merchandise news out of date Ask and pass to backstage;
The merchandise news of default quantity is searched from the stored data in backstage, the merchandise news of default quantity is write slow In depositing;
The merchandise news of specified quantity is obtained from the merchandise news of default quantity, and returns to client, for client End is shown;Wherein, the default quantity is greater than or equal to the specified quantity.
B11. the electronic equipment according to B10, the executable instruction further make the processor perform following behaviour Make::
During the merchandise news write-in of the default quantity is cached, and caching is set for the merchandise news of the default quantity Expired time.
B12. the electronic equipment according to B11, wherein, the executable instruction further perform the processor with Lower operation:
If being stored with merchandise news in caching, judge whether current time exceeds the caching expired time of merchandise news;If It is no, it is determined that not out of date merchandise news is stored with the caching.
B13. the electronic equipment according to any one of B9-B12, the executable instruction further make the processor Perform following operation:
Obtain the merchandise news of specified quantity in stored not out of date merchandise news at random from caching.
B14. the electronic equipment according to any one of B9-B13, the executable instruction further make the processor Perform following operation:
Establish the server cluster for including multiple servers;
Any server is specified using load dispatcher, to obtain the displaying of merchandise news request.
B15. the electronic equipment according to any one of B9-B14, the merchandise news are e-book information.
B16. the electronic equipment according to B15, the executable instruction further make the processor perform following behaviour Make:
Receive the e-book information that client accesses e-book site home page or the e-book website list page is sent Displaying request.
The invention also discloses:C17. a kind of computer-readable storage medium, being stored with least one in the storage medium can hold Row instruction, the executable instruction make processor perform following operation:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return To client, so that client is shown.
C18. the computer-readable storage medium according to C17, it is following that the executable instruction further performs processor Operation:
, please by the displaying of merchandise news if not being stored with merchandise news in caching or being stored with merchandise news out of date Ask and pass to backstage;
The merchandise news of default quantity is searched from the stored data in backstage, the merchandise news of default quantity is write slow In depositing;
The merchandise news of specified quantity is obtained from the merchandise news of default quantity, and returns to client, for client End is shown;Wherein, the default quantity is greater than or equal to the specified quantity.
C19. the computer-readable storage medium according to C18, it is following that the executable instruction further performs processor Operation::
During the merchandise news write-in of the default quantity is cached, and caching is set for the merchandise news of the default quantity Expired time.
C20. the computer-readable storage medium according to C19, wherein, the executable instruction further performs processor Operate below:
If being stored with merchandise news in caching, judge whether current time exceeds the caching expired time of merchandise news;If It is no, it is determined that not out of date merchandise news is stored with the caching.
C21. the computer-readable storage medium according to any one of C17-C20, the executable instruction further make place Manage device and perform following operation:
Obtain the merchandise news of specified quantity in stored not out of date merchandise news at random from caching.
C22. the computer-readable storage medium according to any one of C17-C21, the executable instruction further make place Manage device and perform following operation:
Establish the server cluster for including multiple servers;
Any server is specified using load dispatcher, to obtain the displaying of merchandise news request.
C23. the computer-readable storage medium according to any one of C17-C22, the merchandise news are e-book information.
C24. the computer-readable storage medium according to C23, it is following that the executable instruction further performs processor Operation:
Receive the e-book information that client accesses e-book site home page or the e-book website list page is sent Displaying request.

Claims (10)

1. a kind of dynamic of merchandise news shows method, it includes:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return to visitor Family end, so that client is shown.
2. according to the method described in claim 1, wherein, the method further includes:
If not being stored with merchandise news in caching or being stored with merchandise news out of date, the displaying of merchandise news is asked to pass Pass backstage;
The merchandise news of default quantity is searched from the stored data in backstage, the merchandise news of default quantity is write into caching In;
The merchandise news of specified quantity is obtained from the merchandise news of default quantity, and returns to client, for client into Row displaying;Wherein, the default quantity is greater than or equal to the specified quantity.
3. according to the method described in claim 2, wherein, the merchandise news of quantity is preset in the lookup from background data base Afterwards, the method further includes:
During the merchandise news write-in of the default quantity is cached, and set caching expired for the merchandise news of the default quantity Time.
4. according to the method described in claim 3, wherein, in the query caching whether be stored with not out of date merchandise news into One step includes:
If being stored with merchandise news in caching, judge whether current time exceeds the caching expired time of merchandise news;If it is not, then Determine to be stored with not out of date merchandise news in the caching.
5. according to the described method of any one of claim 1-4, wherein, the not out of date commodity stored from caching The merchandise news of acquisition specified quantity is specially in information:Obtained at random in stored not out of date merchandise news from caching The merchandise news of specified quantity.
6. according to the method any one of claim 1-5, wherein, the method further includes:
Establish the server cluster for including multiple servers;
After the displaying request for the merchandise news that the reception client is sent, the method further includes:
Any server is specified using load dispatcher, to obtain the displaying of merchandise news request.
7. according to the method any one of claim 1-6, wherein, the merchandise news is e-book information.
8. according to the method described in claim 7, wherein, the displaying request for receiving the merchandise news that client is sent is specifically For:The displaying for the e-book information that reception client access e-book site home page or the e-book website list page are sent Request.
9. a kind of electronic equipment, including:Processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory is used to store an at least executable instruction, and the executable instruction makes the processor perform following behaviour Make:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return to visitor Family end, so that client is shown.
10. a kind of computer-readable storage medium, an at least executable instruction, the executable instruction are stored with the storage medium Processor is set to perform following operation:
Receive the displaying request for the merchandise news that client is sent;
Asked according to the displaying of merchandise news, not out of date merchandise news whether is stored with query caching;
If so, obtaining the merchandise news of specified quantity in stored not out of date merchandise news from caching, and return to visitor Family end, so that client is shown.
CN201711243794.4A 2017-11-30 2017-11-30 The dynamic of merchandise news shows method, electronic equipment, storage medium Active CN107908775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711243794.4A CN107908775B (en) 2017-11-30 2017-11-30 The dynamic of merchandise news shows method, electronic equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711243794.4A CN107908775B (en) 2017-11-30 2017-11-30 The dynamic of merchandise news shows method, electronic equipment, storage medium

Publications (2)

Publication Number Publication Date
CN107908775A true CN107908775A (en) 2018-04-13
CN107908775B CN107908775B (en) 2019-04-09

Family

ID=61848164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711243794.4A Active CN107908775B (en) 2017-11-30 2017-11-30 The dynamic of merchandise news shows method, electronic equipment, storage medium

Country Status (1)

Country Link
CN (1) CN107908775B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276032A (en) * 2019-06-26 2019-09-24 深圳市迅雷网络技术有限公司 Information data acquisition methods, device, system and computer storage medium to be presented
CN110502696A (en) * 2019-08-05 2019-11-26 上海掌门科技有限公司 A kind of method and apparatus of information stream distribution
CN112418990A (en) * 2020-11-23 2021-02-26 北京每日优鲜电子商务有限公司 Article information page generation method and device, electronic equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108655A (en) * 1996-07-19 2000-08-22 Cisco Technology, Inc. Method and apparatus for transmitting images and other objects over a computer network system
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN101257485A (en) * 2007-03-02 2008-09-03 华为技术有限公司 Web applied system and method
CN102541918A (en) * 2010-12-30 2012-07-04 阿里巴巴集团控股有限公司 Method and equipment for identifying repeated information
CN104599153A (en) * 2014-08-29 2015-05-06 腾讯科技(深圳)有限公司 Commodity recommendation method, commodity recommendation server and commodity recommendation terminal
CN106878406A (en) * 2017-02-07 2017-06-20 腾讯科技(深圳)有限公司 Information sharing method, apparatus and system
CN107230137A (en) * 2017-05-31 2017-10-03 北京小米移动软件有限公司 Merchandise news acquisition methods and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108655A (en) * 1996-07-19 2000-08-22 Cisco Technology, Inc. Method and apparatus for transmitting images and other objects over a computer network system
CN101257485A (en) * 2007-03-02 2008-09-03 华为技术有限公司 Web applied system and method
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN102541918A (en) * 2010-12-30 2012-07-04 阿里巴巴集团控股有限公司 Method and equipment for identifying repeated information
CN104599153A (en) * 2014-08-29 2015-05-06 腾讯科技(深圳)有限公司 Commodity recommendation method, commodity recommendation server and commodity recommendation terminal
CN106878406A (en) * 2017-02-07 2017-06-20 腾讯科技(深圳)有限公司 Information sharing method, apparatus and system
CN107230137A (en) * 2017-05-31 2017-10-03 北京小米移动软件有限公司 Merchandise news acquisition methods and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276032A (en) * 2019-06-26 2019-09-24 深圳市迅雷网络技术有限公司 Information data acquisition methods, device, system and computer storage medium to be presented
CN110502696A (en) * 2019-08-05 2019-11-26 上海掌门科技有限公司 A kind of method and apparatus of information stream distribution
CN112418990A (en) * 2020-11-23 2021-02-26 北京每日优鲜电子商务有限公司 Article information page generation method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN107908775B (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN103748555B (en) Multi-dimensional user request pattern fast supply virtual machine is based in cloud
US9158856B2 (en) Automatic generation of tasks for search engine optimization
CN102930058B (en) A kind of method and apparatus realizing searching in the address field of browser
CN104572968B (en) A kind of method for updating pages and device
CN104641363A (en) Evaluating application compatibility
CN101523393A (en) Locally storing web-based database data
CN107291756A (en) The method and device of data buffer storage
CN105095423B (en) Enumeration data wiring method and device
CN104519120A (en) Business object attachments and expiring URL
CA2844853A1 (en) Identifying ranking scores for domains of interest
CN107908775A (en) The dynamic of merchandise news shows method, electronic equipment, storage medium
US20140181004A1 (en) Common Framework for Definition, Generation, and Management of Metadata Runtime-Loads
US10242102B2 (en) Network crawling prioritization
CN109767274B (en) Method and system for carrying out associated storage on massive invoice data
WO2017141249A1 (en) Optimized data distribution system
US20070288591A1 (en) Method, system, and program product for caching application data in a browser cache
CN109284309A (en) Database caches method, terminal and computer readable storage medium
US10169757B1 (en) Scalable data storage and retrieval
US9852229B2 (en) System, method and computer program product for navigating content on a single page
CN108769157A (en) Methods of exhibiting, device, computing device and the computer storage media of message pop-up
CN108154024A (en) A kind of data retrieval method, device and electronic equipment
US10832309B2 (en) Inventory data model for large scale flash sales
US20230141205A1 (en) Merges using key range data structures
US10268991B1 (en) Dynamic selection across cache
CN113330432A (en) Asynchronous predictive caching of content listed in search results

Legal Events

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

Effective date of registration: 20220705

Address after: 518054-13098, 13th floor, main tower of marine center, No. 59, Linhai Avenue, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong

Patentee after: Shenzhen ZhangYue Animation Technology Co.,Ltd.

Address before: 100124 2029e, Sihui building, Chaoyang District, Beijing

Patentee before: ZHANGYUE TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right