CN112492044A - Cache data sharing method and device, equipment and computer readable storage medium - Google Patents

Cache data sharing method and device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112492044A
CN112492044A CN202011449452.XA CN202011449452A CN112492044A CN 112492044 A CN112492044 A CN 112492044A CN 202011449452 A CN202011449452 A CN 202011449452A CN 112492044 A CN112492044 A CN 112492044A
Authority
CN
China
Prior art keywords
frame
link
cache data
browser
query
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
CN202011449452.XA
Other languages
Chinese (zh)
Other versions
CN112492044B (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.)
Hundsun Technologies Inc
Original Assignee
Hundsun Technologies Inc
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 Hundsun Technologies Inc filed Critical Hundsun Technologies Inc
Priority to CN202011449452.XA priority Critical patent/CN112492044B/en
Publication of CN112492044A publication Critical patent/CN112492044A/en
Application granted granted Critical
Publication of CN112492044B publication Critical patent/CN112492044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (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)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The cache data sharing method, the cache data sharing device, the cache data sharing equipment and the computer readable storage medium respond to a query request of a browser running in a browser/server (B/S) framework, obtain a first query message used for the browser to obtain cache data, convert the first query message into a second query message capable of being analyzed by the C/S framework, and send the second query message to the C/S framework by using a pre-established link, wherein the link comprises a first link and a second link, the first link is connected to a preset port of a terminal through the B/S framework, and the second link is connected to the C/S framework through the preset port. And sending the cache data sent by the C/S frame to the browser of the B/S frame by using a link, and inquiring the cache data from the cache of the C/S frame by the C/S frame according to the second inquiry message. The B/S framework can acquire the cache data from the C/S framework without setting a cache in the B/S framework, so that the occupation amount of a memory is favorably reduced.

Description

Cache data sharing method and device, equipment and computer readable storage medium
Technical Field
The present application relates to the field of cache, and in particular, to a cache data sharing method, apparatus, device, and computer-readable storage medium.
Background
Some current terminals, such as those of financial transaction systems, have both C/S and B/S type frames deployed therein. In a simple aspect, the C/S refers to a client and a server, and the client has functions of processing logic and local access of the client. The B/S is a browser and server from which all data and content needs to be retrieved.
In order to solve some problems of user experience, performance and the like, the B/S framework needs to establish cache data in a browser to meet business requirements, and meanwhile, the business processing of the C/S part also has own cache data. As shown in FIG. 1, the B/S framework utilizes a Web caching mechanism, and the C/S framework utilizes a C/S caching mechanism, i.e., the two frameworks run the caching mechanism independently.
In practice, the cache data required by the same type of service processing may be consistent, which results in that the C/S framework and the B/S framework have repeated cache data at the terminal, thereby resulting in an excessive memory occupation.
Disclosure of Invention
The application provides a cache data sharing method, a cache data sharing device, cache data sharing equipment and a computer readable storage medium, and aims to solve the problem that memory occupation is too large due to repeated cache data.
In order to achieve the above object, the present application provides the following technical solutions:
a cache data sharing method comprises the following steps:
responding to a query request of a browser running in a B/S frame, and acquiring a first query message, wherein the first query message is used for the browser to acquire cache data;
sending the first query message to a C/S frame by using a pre-established link, wherein the link comprises a first link and a second link, the first link is connected to a preset port of a terminal by the B/S frame, and the second link is connected to the C/S frame by the preset port;
converting the first query message into a second query message which can be analyzed by a C/S framework;
and sending the cache data sent by the C/S frame to the browser of the B/S frame by using the link, wherein the cache data is obtained by inquiring the cache of the C/S frame by the C/S frame according to the second inquiry message.
Optionally, the link establishment procedure includes:
respectively packaging preset communication clients in the browser and the C/S frame;
configuring the preset port in the communication client to create the first link and the second link respectively.
Optionally, encapsulating the preset communication client in the browser includes:
and packaging the preset communication client in a first front-end frame of the browser.
Optionally, the method further includes:
monitoring a connection state of the link;
reestablishing the link when the connection state is disconnected; and/or sending out abnormal prompt information when the connection state is abnormal.
Optionally, converting the first query packet into a second query packet includes:
converting the first query message from a first format to a second format; wherein the first format is the B/S frame format, and the second format is the C/S frame format;
and converting the query method of the B/S frame indicated by the first query message into the query method of the C/S frame according to a preset corresponding relationship, wherein the corresponding relationship is a corresponding relationship between the method in the B/S frame and a method for realizing the same function in the C/S frame.
Optionally, before the obtaining the first query packet in response to the query request of the browser, the method further includes:
and encapsulating a first method set in a first front-end frame of the browser, and encapsulating a second method set in the C/S frame, wherein the methods in the first method set are used for realizing the steps of the cache data sharing method for the browser, and the methods in the second method set are used for realizing the steps of the cache data sharing method for the C/S frame.
Optionally, the method further includes:
and configuring a calling authority for the page of the browser, wherein the calling authority is an authority for calling the method in the first method set.
A cache data sharing apparatus, comprising:
the system comprises an acquisition module, a cache module and a cache module, wherein the acquisition module is used for responding to an inquiry request of a browser running in a B/S frame and acquiring a first inquiry message, and the first inquiry message is used for the browser to acquire cache data;
a sending module, configured to send the first query packet to a C/S frame using a pre-established link, where the link includes a first link and a second link, the first link is connected to a preset port of a terminal by the B/S frame, and the second link is connected to the C/S frame by the preset port;
the conversion module is used for converting the first query message into a second query message which can be analyzed by a C/S framework;
the sending module is further configured to send, by using the link, the cache data sent by the C/S frame to the browser of the B/S frame, where the cache data is obtained by querying, by the C/S frame, from the cache of the C/S frame according to the second query packet.
A cache data sharing apparatus, comprising:
a memory and a processor;
the memory is used for storing programs, and the processor is used for operating the programs so as to realize the cache data sharing method.
A computer-readable storage medium having stored thereon a program which, when run on a computing device, implements the above-described cache data sharing method.
The cache data sharing method, the cache data sharing device, the cache data sharing equipment and the computer readable storage medium respond to a query request of a browser running in a browser/server (B/S) framework, obtain a first query message used for the browser to obtain cache data, convert the first query message into a second query message capable of being analyzed by the C/S framework, and send the second query message to the C/S framework by using a pre-established link, wherein the link comprises a first link and a second link, the first link is connected to a preset port of a terminal through the B/S framework, and the second link is connected to the C/S framework through the preset port. And sending the cache data sent by the C/S frame to the browser of the B/S frame by using a link, and inquiring the cache data from the cache of the C/S frame by the C/S frame according to the second inquiry message. Therefore, a communication link is established between the B/S framework and the C/S framework, so that the B/S framework can acquire cache data from the C/S framework without setting a cache in the B/S framework, and the occupation amount of a memory is favorably reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is an exemplary diagram of a B/S framework and a C/S framework independently operating a caching mechanism;
fig. 2 is a flowchart of a cache data obtaining method disclosed in an embodiment of the present application;
fig. 3 is a schematic view of a scene after application of the cache sharing method disclosed in the embodiment of the present application;
fig. 4 is a flowchart of another cache data sharing method disclosed in the embodiment of the present application;
fig. 5 is a flowchart of another cache data sharing method disclosed in the embodiment of the present application;
FIG. 6 is an example of a method set being packaged separately at both ends and multiple pages sharing a first method set by configuration;
fig. 7 is a schematic structural diagram of a cache data sharing device according to an embodiment of the present disclosure.
Detailed Description
The cache data sharing method disclosed by the embodiment of the application is suitable for a mixed type frame terminal, namely a B/S frame and a C/S frame are operated in the terminal. The method aims to establish a communication link between two frameworks, so that a B/S framework can acquire cache data from a C/S framework, and therefore repeated storage of the cache data is avoided, and memory space is saved.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 2 is a cache data obtaining method disclosed in an embodiment of the present application, including the following steps:
s201, responding to a query request of the browser, and acquiring a first query message.
The first query message is used for the browser to obtain cache data.
Generally, a query request of a browser page may be triggered by an operation on the browser, for example, a user clicks a certain control (e.g., a button) on a certain page displayed in the browser to trigger the browser to issue a query request of the page. Further, the first query packet may be assembled in a json format, and a specific data structure and an assembling manner of the first query packet may be referred to in the prior art, which is not described herein again.
S202, sending the first query message to the C/S framework by using a pre-established link.
In this embodiment, the links include a first link and a second link, where the first link is connected to a preset port of the terminal by the B/S framework. The second link is connected to the C/S frame by the preset port. It is understood that, in S202, the query packet is sent to the predetermined port by using the first link, and since the first link and the second link are connected through the first port, the query packet can be sent to the C/S framework through the second link again.
S203, converting the first query message into a second query message which can be analyzed by the C/S framework.
Because the B/S framework is different from the C/S framework, the first query message needs to be converted and can be analyzed by the C/S framework. The specific conversion method will be described in the following examples.
The C/S framework responds to a second query message received from the pre-established link, and queries cache data from the cache by analyzing the second query message. And sending the buffered data by using the second link.
And S204, sending the cache data sent by the C/S frame to the browser of the B/S frame by using the link.
As can be seen from the flow shown in FIG. 1, because a communication link is established between the B/S framework and the C/S framework, the browser of the B/S framework can query the cache data from the C/S framework, and therefore, the cache can be set only in the C/S framework, and the browser of the B/S framework can not set any cache any more, thereby reducing the memory occupation amount.
Fig. 3 is a schematic view of a scenario after application of the cache sharing method according to this embodiment, and compared with fig. 1, it is equivalent to that a bridge for data forwarding and processing is arranged between a B/S framework and a C/S framework, such as the cache data sharing device in fig. 3. It can be understood that, the methods for the C/S framework to query the cache data using the second query packet and update the cache data can be referred to in the prior art, for example, the method at the C/S framework side in fig. 3, and are not described herein again.
It should be emphasized that, in the cache data sharing method provided by the present application, the browser of the B/S framework acquires the cache data from the C/S framework, and the non-C/S framework acquires the cache data from the B/S framework, which is an innovative improvement made by the applicant after research, and the research process of the applicant is as follows:
the method includes the steps that cache table data in a system are counted according to the length of a field, the space occupied by the data in a memory is calculated, theoretically, 25M is probably needed, before and after cache data in a C/S frame are loaded, the memory is increased by about 25M, but the space occupied by the 25M data in a browser of the B/S frame is almost about 100M, the difference of the memory occupied by the browser of the B/S frame and the cache data possibly caused by the data field and the data structure is shown, and the memory occupied by the cache data is more than that of the cache data arranged in the browser of the B/S frame.
Therefore, according to the technical scheme provided by the application, the cache is arranged on the C/S frame instead of the B/S frame, and the occupation amount of the memory can be reduced to a large extent.
A detailed illustration will be made below from the perspective of communication link establishment.
Fig. 4 is a diagram of another cache data sharing method disclosed in the embodiment of the present application, including the following steps:
s401, encapsulating preset communication clients in a first front end frame and a C/S frame of the browser.
Generally, a browser includes a plurality of frames, and a front-end frame is one of the frames. Optionally, the first front end frame may be a front end JS frame.
In this embodiment, the preset communication client may be a websocket client based on the characteristics of the B/S framework and the C/S framework and the characteristics of the websocket technology that is relatively stable and highly reliable.
The process of encapsulating the client can be referred to in the prior art, and is not described herein again.
In addition, the preset communication client may also be a socket client, a pipe communication client, or the like, and the embodiment is not limited.
S402, configuring a preset port in the communication client to respectively create a first link and a second link.
Specifically, the configuration information of the port includes an IP address and a port number, and therefore, the link from the browser to the preset port can be established by configuring the IP address and the port number to the communication client of the browser. And configuring the IP address and the port number into a communication client of the C/S frame, namely establishing a link from the C/S frame to a preset port.
The communication clients of the browser and the C/S framework are both connected to the same port, so a communication link between the browser and the C/S framework has been established. At this point, the link establishment process is completed.
And S403, monitoring the connection state of the link, reestablishing the link when the connection state of the link is disconnected, and/or sending out abnormal prompt information when the connection state is abnormal.
Specifically, the process of establishing the link and maintaining the link may be implemented in a human-computer interaction manner, for example, a channel connection management interface is displayed, and the address of the technician at the input port of the channel connection management interface enables the communication client to be connected to the port respectively, and the technician may set a time period for monitoring the link state in the channel connection management interface, and may also display an abnormal prompt message in the channel connection management interface.
Optionally, S403 may be executed in the browser and the C/S frame of the B/S frame, respectively, to implement independent operation of monitoring and maintenance of the two frames, so as to implement fault location and maintenance more conveniently.
Subsequent steps in this embodiment are as in S201 to S204, which are not described herein again, and can be seen in fig. 4.
In the cache data sharing method described in this embodiment, the communication clients are respectively encapsulated in the browser and the C/S frame of the B/S frame and connected to the same port, so that the establishment of the communication link between the browser and the C/S frame of the B/S frame is realized, and the communication clients are in the prior art, so that the implementation is easy. And moreover, a state monitoring and reminding mechanism is favorable for ensuring the smoothness of a communication link.
Fig. 5 is a cache data sharing method disclosed in an embodiment of the present application, and compared with the above embodiments, a specific implementation manner of each step is mainly described, where fig. 5 includes the following steps:
s501: and encapsulating the first method set in a first front-end frame of the browser and encapsulating the second method set in a C/S frame.
The method in the first method set is used for realizing the steps aiming at the browser, and the method in the second method set is used for realizing the steps aiming at the C/S framework.
Specifically, the first method set includes, but is not limited to: a js message assembling method, a format conversion method, a first link calling method and an interface method corresponding to the C # frame.
The second set of methods includes, but is not limited to: a message format conversion method, a conversion method of a query method, a second link calling method, an interface calling method and a cache query method.
The details of each of the above methods can be found in the prior art.
S502, responding to an assembly request of a page of a browser running in a B/S frame, calling a js message assembly method in a first method set, and assembling a first query message.
S503, calling a first link calling method in the first method set and an interface method corresponding to the C # frame, and sending the first query message to the port by using the first link.
S504, a second link calling method and an interface calling method in the second method set are called, and the first query message is sent to the C/S framework by using the second link.
And S505, calling a message format conversion method of the second method set, and converting the first query message from the first format to the second format.
The first format is a B/S frame format, such as a js format, and the second format is a C/S frame format.
S506, calling a conversion method of the query method of the second method set, and converting the query method of the B/S framework indicated by the first query message into the query method of the C/S framework.
Specifically, the conversion method of the query method performs method conversion according to a preset corresponding relationship, wherein the corresponding relationship is a method in a B/S framework and a method corresponding relationship for realizing the same function in a C/S framework.
And S507, calling a cache query method in the second method set, and querying cache data indicated by the second query message from a cache in the C/S framework.
And S508, calling a second link calling method and an interface calling method in the second method set, and sending the cache data to the port by using the second link.
It is understood that the format of the cache data may not be recognized by the browser, so the cache data may be first converted into a js format, for example, and then S508 is performed.
And S509, calling a first link calling method in the first method set and an interface method corresponding to the C # frame, and sending the cache data to a page of the browser by using the first link.
It should be noted that, in this embodiment, the methods in the first method set are common methods, that is, all pages in the browser can call the methods in the first method set. It will be appreciated that the invocation permissions of the pages of the browser may be configured.
It can be seen from the above steps that, by means of encapsulating the method set, the browser and the method of the C/S frame for the B/S frame can be flexibly configured, and therefore, the methods in the method set can be flexibly adjusted for the existing browser and C/S frame of various B/S frames, and therefore, the cache sharing method described in this embodiment has better compatibility with the prior art and higher flexibility.
Fig. 6 is an example in which method sets are packaged at both ends, respectively, and a plurality of pages share a first method set by configuration.
Fig. 7 is a cache data sharing apparatus disclosed in an embodiment of the present application, including: the device comprises an acquisition module, a sending module and a conversion module.
The system comprises an acquisition module, a cache module and a cache module, wherein the acquisition module is used for responding to an inquiry request of a browser running in a B/S frame and acquiring a first inquiry message, and the first inquiry message is used for the browser to acquire cache data;
a sending module, configured to send the first query packet to a C/S frame using a pre-established link, where the link includes a first link and a second link, the first link is connected to a preset port of a terminal by the B/S frame, and the second link is connected to the C/S frame by the preset port;
the conversion module is used for converting the first query message into a second query message which can be analyzed by a C/S framework;
the sending module is further configured to send, by using the link, the cache data sent by the C/S frame to the browser of the B/S frame, where the cache data is obtained by querying, by the C/S frame, from the cache of the C/S frame according to the second query packet.
Optionally, the method further includes: the link establishing module is used for respectively packaging preset communication clients in the browser and the C/S frame; configuring the preset port in the communication client to create the first link and the second link respectively.
Further, the link establishing module is specifically configured to encapsulate the preset communication client in the first front-end frame of the browser.
Optionally, the apparatus further comprises: the monitoring module is used for monitoring the connection state of the link; reestablishing the link when the connection state is disconnected; and/or sending out abnormal prompt information when the connection state is abnormal.
Optionally, the conversion module is specifically configured to convert the first query packet from a first format to a second format; wherein the first format is the B/S frame format, and the second format is the C/S frame format; and converting the query method of the B/S frame indicated by the first query message into the query method of the C/S frame according to a preset corresponding relationship, wherein the corresponding relationship is a corresponding relationship between the method in the B/S frame and a method for realizing the same function in the C/S frame.
Optionally, the apparatus further comprises: a configuration module, configured to encapsulate a first method set in a first front-end frame of the browser and encapsulate a second method set in the C/S frame before acquiring the first query packet in response to the query request of the browser, where the methods in the first method set are used to implement each step of the cache data sharing method for the browser, and the methods in the second method set are used to implement each step of the cache data sharing method for the C/S frame.
Optionally, the configuration module is further configured to: and configuring a calling authority for the page of the browser, wherein the calling authority is an authority for calling the method in the first method set.
The device of the embodiment can avoid setting a cache in the browser of the B/S frame, thereby reducing the occupation amount of the memory.
The application also discloses a cache data sharing device, including: a memory and a processor. The memory is used for storing programs, and the processor is used for running the programs so as to implement the cache data sharing method in the above method embodiments.
The application also discloses a computer readable storage medium, on which a program is stored, and when the program runs on a computing device, the cache data sharing method of the above method embodiment is realized.
The functions described in the method of the embodiment of the present application, if implemented in the form of software functional units and sold or used as independent products, may be stored in a storage medium readable by a computing device. Based on such understanding, part of the contribution to the prior art of the embodiments of the present application or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including several instructions for causing a computing device (which may be a personal computer, a server, a mobile computing device or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for sharing cache data, comprising:
responding to a query request of a browser running in a B/S frame, and acquiring a first query message, wherein the first query message is used for the browser to acquire cache data;
sending the first query message to a C/S frame by using a pre-established link, wherein the link comprises a first link and a second link, the first link is connected to a preset port of a terminal by the B/S frame, and the second link is connected to the C/S frame by the preset port;
converting the first query message into a second query message which can be analyzed by a C/S framework;
and sending the cache data sent by the C/S frame to the browser of the B/S frame by using the link, wherein the cache data is obtained by inquiring the cache of the C/S frame by the C/S frame according to the second inquiry message.
2. The method of claim 1, wherein the link establishment procedure comprises:
respectively packaging preset communication clients in the browser and the C/S frame;
configuring the preset port in the communication client to create the first link and the second link respectively.
3. The method of claim 2, wherein encapsulating the predetermined communication client in the browser comprises:
and packaging the preset communication client in a first front-end frame of the browser.
4. The method according to any one of claims 1-3, further comprising:
monitoring a connection state of the link;
reestablishing the link when the connection state is disconnected; and/or sending out abnormal prompt information when the connection state is abnormal.
5. The method of claim 1, wherein converting the first query message to a second query message comprises:
converting the first query message from a first format to a second format; wherein the first format is the B/S frame format, and the second format is the C/S frame format;
and converting the query method of the B/S frame indicated by the first query message into the query method of the C/S frame according to a preset corresponding relationship, wherein the corresponding relationship is a corresponding relationship between the method in the B/S frame and a method for realizing the same function in the C/S frame.
6. The method according to claim 1, before said obtaining the first query message in response to the query request of the browser, further comprising:
and encapsulating a first method set in a first front-end frame of the browser, and encapsulating a second method set in the C/S frame, wherein the methods in the first method set are used for realizing the steps of the cache data sharing method for the browser, and the methods in the second method set are used for realizing the steps of the cache data sharing method for the C/S frame.
7. The method of claim 6, further comprising:
and configuring a calling authority for the page of the browser, wherein the calling authority is an authority for calling the method in the first method set.
8. A cache data sharing apparatus, comprising:
the system comprises an acquisition module, a cache module and a cache module, wherein the acquisition module is used for responding to an inquiry request of a browser running in a B/S frame and acquiring a first inquiry message, and the first inquiry message is used for the browser to acquire cache data;
a sending module, configured to send the first query packet to a C/S frame using a pre-established link, where the link includes a first link and a second link, the first link is connected to a preset port of a terminal by the B/S frame, and the second link is connected to the C/S frame by the preset port;
the conversion module is used for converting the first query message into a second query message which can be analyzed by a C/S framework;
the sending module is further configured to send, by using the link, the cache data sent by the C/S frame to the browser of the B/S frame, where the cache data is obtained by querying, by the C/S frame, from the cache of the C/S frame according to the second query packet.
9. A cache data sharing apparatus, comprising:
a memory and a processor;
the memory is used for storing a program, and the processor is used for operating the program to realize the cache data sharing method of any one of claims 1 to 7.
10. A computer-readable storage medium on which a program is stored, characterized in that, when the program is run on a computing device, the cache data sharing method according to any one of claims 1 to 7 is implemented.
CN202011449452.XA 2020-12-09 2020-12-09 Cache data sharing method and device, equipment and computer readable storage medium Active CN112492044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011449452.XA CN112492044B (en) 2020-12-09 2020-12-09 Cache data sharing method and device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011449452.XA CN112492044B (en) 2020-12-09 2020-12-09 Cache data sharing method and device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112492044A true CN112492044A (en) 2021-03-12
CN112492044B CN112492044B (en) 2022-10-14

Family

ID=74941648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011449452.XA Active CN112492044B (en) 2020-12-09 2020-12-09 Cache data sharing method and device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112492044B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860533A (en) * 2010-05-26 2010-10-13 卓望数码技术(深圳)有限公司 Data transmission method based on C/S architecture browser and server
CN103177327A (en) * 2012-10-18 2013-06-26 海宁市供电局 Comprehensive management system for low-voltage power operations based on B/S (browser/server) and C/S (client/server) architectures
US20150334182A1 (en) * 2012-12-17 2015-11-19 Beijing Qihoo Technology Limited System, Method and Browser Client for Enabling Browser Data Synchronization
CN105429833A (en) * 2015-10-21 2016-03-23 中国汽车工程研究院股份有限公司 Method based on CAN bus data storage and system thereof
CN106209948A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 A kind of data push method and device
CN106331048A (en) * 2015-06-30 2017-01-11 阿里巴巴集团控股有限公司 Data processing method, apparatus and system, and mobile device
CN108667861A (en) * 2017-03-28 2018-10-16 比亚迪股份有限公司 By browser to the method, system and server of device real-time monitoring
CN109067749A (en) * 2018-08-13 2018-12-21 深信服科技股份有限公司 A kind of information processing method, equipment and computer readable storage medium
CN109688095A (en) * 2018-09-07 2019-04-26 平安科技(深圳)有限公司 Traffic source information acquisition method, device, equipment and readable storage medium storing program for executing
CN110311978A (en) * 2019-07-01 2019-10-08 泰康保险集团股份有限公司 Browser information processing method, device, equipment and storage medium
CN111414407A (en) * 2020-02-13 2020-07-14 中国平安人寿保险股份有限公司 Data query method and device of database, computer equipment and storage medium
CN111541665A (en) * 2020-04-16 2020-08-14 苏州浪潮智能科技有限公司 Data access method, device, storage medium and cluster type security management platform
CN111953662A (en) * 2020-07-24 2020-11-17 南京南瑞继保电气有限公司 Data processing method, device and system and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860533A (en) * 2010-05-26 2010-10-13 卓望数码技术(深圳)有限公司 Data transmission method based on C/S architecture browser and server
CN103177327A (en) * 2012-10-18 2013-06-26 海宁市供电局 Comprehensive management system for low-voltage power operations based on B/S (browser/server) and C/S (client/server) architectures
US20150334182A1 (en) * 2012-12-17 2015-11-19 Beijing Qihoo Technology Limited System, Method and Browser Client for Enabling Browser Data Synchronization
CN106209948A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 A kind of data push method and device
CN106331048A (en) * 2015-06-30 2017-01-11 阿里巴巴集团控股有限公司 Data processing method, apparatus and system, and mobile device
CN105429833A (en) * 2015-10-21 2016-03-23 中国汽车工程研究院股份有限公司 Method based on CAN bus data storage and system thereof
CN108667861A (en) * 2017-03-28 2018-10-16 比亚迪股份有限公司 By browser to the method, system and server of device real-time monitoring
CN109067749A (en) * 2018-08-13 2018-12-21 深信服科技股份有限公司 A kind of information processing method, equipment and computer readable storage medium
CN109688095A (en) * 2018-09-07 2019-04-26 平安科技(深圳)有限公司 Traffic source information acquisition method, device, equipment and readable storage medium storing program for executing
CN110311978A (en) * 2019-07-01 2019-10-08 泰康保险集团股份有限公司 Browser information processing method, device, equipment and storage medium
CN111414407A (en) * 2020-02-13 2020-07-14 中国平安人寿保险股份有限公司 Data query method and device of database, computer equipment and storage medium
CN111541665A (en) * 2020-04-16 2020-08-14 苏州浪潮智能科技有限公司 Data access method, device, storage medium and cluster type security management platform
CN111953662A (en) * 2020-07-24 2020-11-17 南京南瑞继保电气有限公司 Data processing method, device and system and storage medium

Also Published As

Publication number Publication date
CN112492044B (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN110300050B (en) Message pushing method and device, computer equipment and storage medium
CN109547511B (en) WEB message real-time pushing method, server, client and system
CN109347934B (en) Message pushing method and system, server, storage medium and electronic device
CN108769017B (en) Data communication method and device
CN109327513B (en) Interaction method, interaction device and computer-readable storage medium
CN110417915A (en) A kind of PUSH message transmission method, device, storage medium and electronic equipment
CN108683653A (en) A kind of active message push system based on WebSocket
CN106357697A (en) Multi-terminal page synchronizing method based on WebSocket attribute synchronization
CN103236967A (en) Message-based real-time cooperative office system
CN103582012B (en) A kind of data distributing method and device
CN109889454A (en) A kind of the message driving means and method of micro services framework
CN107332857B (en) Network data transmission method, device, system and storage medium
CN103548315A (en) Method and apparatus for high performance low latency real time notification delivery
EP2913977A2 (en) Resource information acquisition method, system and device for internet of things terminal device
CN111541555A (en) Group chat optimization method and related product
CN110365729A (en) The push of response type message, method of reseptance and response type message push system
CN111131499A (en) Concurrent and asynchronous task processing method and device thereof
CN112492044B (en) Cache data sharing method and device, equipment and computer readable storage medium
CN103533001A (en) Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server
CN110475215B (en) Message editing, transmitting and displaying method, server and terminal thereof
CN110417875B (en) Method, system, equipment and storage medium for docking between cloud servers
CN111885171A (en) VR model rapid cloud deployment method
CN103209213A (en) Data transmission method and system for data subscription
US20100296637A1 (en) Service Processing Method, Communication System and Related Device
CN107249017B (en) A kind of method and server obtaining HLS content by CDN network

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