CN104111829A - Data storage method and device - Google Patents

Data storage method and device Download PDF

Info

Publication number
CN104111829A
CN104111829A CN201410289660.6A CN201410289660A CN104111829A CN 104111829 A CN104111829 A CN 104111829A CN 201410289660 A CN201410289660 A CN 201410289660A CN 104111829 A CN104111829 A CN 104111829A
Authority
CN
China
Prior art keywords
page
main domain
subdomain name
data
interaction data
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.)
Pending
Application number
CN201410289660.6A
Other languages
Chinese (zh)
Inventor
任远
王宗妮
姚丽梅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi 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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410289660.6A priority Critical patent/CN104111829A/en
Publication of CN104111829A publication Critical patent/CN104111829A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a data storage method and device. The data storage method comprises the steps that a sub domain name used for caching data is set for a main domain name on a server according to the caching capacity requirement of the main domain name; when the main domain name is accessed, interaction data, corresponding to the access, fed back by a server are received; when the interaction data are cached in a local storage, a hypertext markup language framework is built on a page of the main domain name, and source file attributes of the hypertext markup language framework are oriented towards a page under the sub domain name; the interaction data are cached in the page under the sub domain name. According to the data storage method and device, the storage capability of the local storage of a browser is improved, and the application range of the browser local storage technology is expanded.

Description

Date storage method and device
Technical field
The disclosure relates to communication field, relates in particular to date storage method and device.
Background technology
Along with the development of internet, the data content presenting in webpage is more and more, and type is also more and more abundanter.How can show user to become important problem of internet arena data and web page contents faster.
In correlation technique, the data that cache user had loaded are stored in this locality providing with browser.But, in this correlation technique, under same domain name, the data that the storage of this locality that browser provides can only buffer memory 5MB size, such spatial cache is difficult to meet the buffer size of larger data.
Summary of the invention
For overcoming the problem existing in correlation technique, the disclosure provides a kind of date storage method and device.
According to the first aspect of disclosure embodiment, a kind of date storage method is provided, comprising:
According to the buffer memory capacity demand of Main Domain, on server, be provided for data cached subdomain name for described Main Domain;
In the time that described Main Domain is interviewed, receive the interaction data returning with this corresponding server of being interviewed;
In the time described interaction data being cached in local storage, at described Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under subdomain name described in the source file properties point of described framework;
Described interaction data is cached in the page under described subdomain name.
The technical scheme that embodiment of the present disclosure provides, the IFRAME in local memory technology and HTML based on browser, has promoted the storage capacity of browsers local storage greatly, has expanded the range of application of browsers local memory technology.
Above-mentioned date storage method can also comprise following features, described in the time that described Main Domain is interviewed, and receives the interaction data returning to this relevant server of being interviewed, and comprising:
In the time that described Main Domain is interviewed, use client script to gather user behavior;
Judge whether user behavior triggers and the data interaction of corresponding server;
In the time that user behavior triggers with the data interaction of described corresponding server, receive the interaction data that the server of described correspondence returns.
The technical scheme that embodiment of the present disclosure provides, has promoted the storage capacity of browsers local storage, has expanded the range of application of browsers local memory technology.
Above-mentioned date storage method can also comprise following features, described described interaction data is cached in the page under described subdomain name, comprising:
Load the page under described subdomain name;
After loaded, described interaction data is transferred to the page described subdomain name from the described Main Domain page;
Use client script and local storage that described interaction data is cached in the page under described subdomain name.
The technical scheme that embodiment of the present disclosure provides, has promoted the storage capacity of browsers local storage, has expanded the range of application of browsers local memory technology.
Above-mentioned date storage method can also comprise following features, described described interaction data is transferred to the page described subdomain name from the described Main Domain page, comprising:
During in same father field, directly described interaction data is transferred to the page described subdomain name from the described Main Domain page at described subdomain name and described Main Domain.
The technical scheme that embodiment of the present disclosure provides, has promoted the storage capacity of browsers local storage, has expanded the range of application of browsers local memory technology.
Above-mentioned date storage method can also comprise following features, described described interaction data is transferred to the page described subdomain name from the described Main Domain page, comprising:
During in different father field, adopt cross-domain transmission technology that described interaction data is transferred to the page described subdomain name from the described Main Domain page from described Main Domain at described subdomain name.
The technical scheme that embodiment of the present disclosure provides, has promoted the storage capacity of browsers local storage, has expanded the range of application of browsers local memory technology.
According to the second aspect of disclosure embodiment, a kind of data storage device is provided, comprising:
Module is set, for according to the buffer memory capacity demand of Main Domain, on server, is provided for data cached subdomain name for described Main Domain;
Receiver module, in the time that described Main Domain is interviewed, receives the interaction data returning with this corresponding server of being interviewed;
Creation module, in the time being cached to described interaction data local storage, at described Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under subdomain name described in the source file properties point of described framework;
Cache module, for being cached to the page under described subdomain name by described interaction data.
The technical scheme that embodiment of the present disclosure provides, the IFRAME in local memory technology and HTML based on browser, has promoted the storage capacity of browsers local storage greatly, has expanded the range of application of browsers local memory technology.
Above-mentioned data storage device can also comprise following features, and described receiver module comprises:
Inspection unit, in the time that described Main Domain is interviewed, uses client script to gather user behavior;
Judging unit, for judging whether user behavior triggers and the data interaction of corresponding server;
Receiving element, when triggering with the data interaction of described corresponding server at user behavior, receives the interaction data that the server of described correspondence returns.
The technical scheme that embodiment of the present disclosure provides, has promoted the storage capacity of browsers local storage, has expanded the range of application of browsers local memory technology.
Above-mentioned data storage device can also comprise following features, and described cache module comprises:
Loading unit, for loading the page under described subdomain name;
Transmission unit, for after loaded, is transferred to the page described subdomain name by described interaction data from the described Main Domain page;
Buffer unit, for using client script and local storage that described interaction data is cached to the page under described subdomain name.
The technical scheme that embodiment of the present disclosure provides, has promoted the storage capacity of browsers local storage, has expanded the range of application of browsers local memory technology.
Above-mentioned data storage device can also comprise following features, and described transmission unit comprises:
The first transmission subelement, for during in same father field, being directly transferred to the page described subdomain name by described interaction data from the described Main Domain page at described subdomain name and described Main Domain.
The technical scheme that embodiment of the present disclosure provides, has promoted the storage capacity of browsers local storage, has expanded the range of application of browsers local memory technology.
Above-mentioned data storage device can also comprise following features, and described transmission unit comprises:
The second transmission subelement, for during in different father field, adopting cross-domain transmission technology that described interaction data is transferred to the page described subdomain name from the described Main Domain page from described Main Domain at described subdomain name.
The technical scheme that embodiment of the present disclosure provides, has promoted the storage capacity of browsers local storage, has expanded the range of application of browsers local memory technology.
According to the third aspect of disclosure embodiment, a kind of data storage device is provided, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to carry out as give an order:
According to the buffer memory capacity demand of Main Domain, on server, be provided for data cached subdomain name for described Main Domain;
In the time that described Main Domain is interviewed, receive the interaction data returning with this corresponding server of being interviewed;
In the time described interaction data being cached in local storage, at described Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under subdomain name described in the source file properties point of described framework;
Described interaction data is cached in the page under described subdomain name.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, and can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in instructions and forms the part of this instructions, shows embodiment according to the invention, and is used from and explains principle of the present invention with instructions one.
Fig. 1 is according to one of process flow diagram of a kind of date storage method shown in an exemplary embodiment;
Fig. 2 is according to two of the process flow diagram of a kind of date storage method shown in an exemplary embodiment;
Fig. 3 is according to three of the process flow diagram of a kind of date storage method shown in an exemplary embodiment;
Fig. 4 is according to the block diagram of a kind of data storage device shown in an exemplary embodiment;
Fig. 5 is according to the block diagram of receiver module 20 in a kind of data storage device shown in an exemplary embodiment;
Fig. 6 is according to the block diagram of cache module 40 in a kind of data storage device shown in an exemplary embodiment;
Fig. 7 is according to the block diagram of a kind of device shown in an exemplary embodiment;
Fig. 8 is a kind of for storing the block diagram of device 1900 of data according to shown in an exemplary embodiment.
Embodiment
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they are only and the example of apparatus and method as consistent in some aspects that described in detail in appended claims, of the present invention.
The disclosure utilizes this locality of browser to be stored in the characteristic respectively under different domain names with 5MB independent memory space, use the IFRAME (framework) in HTML (HyperText Mark-up Language, HTML (Hypertext Markup Language)) to operate for needing the domain name of buffer memory mass data to do local storage dilatation.
Fig. 1 is according to one of process flow diagram of a kind of date storage method shown in an exemplary embodiment.As shown in Figure 1, in the present embodiment, date storage method can comprise the steps:
In step S101, according to the buffer memory capacity demand of Main Domain, on server for this Main Domain is provided for data cached subdomain name;
Wherein, subdomain name and Main Domain can be in same father fields, also can be in different father fields.
This locality of browser is stored in respectively has 5MB independent memory space under different domain names.For example domain name www.a.com and domain name www.b.com respectively have the local storage space of 5MB, and do not interfere with each other each other.For security consideration, browser is not allowed cross-domain local memory access, that is to say under domain name www.a.com, cannot access the data in local storage under domain name www.b.com.
Different subdomain names also has independently local storage space, and for example domain name www1.a.com is a subdomain name under domain name www.a.com, but domain name www1.a.com has the local storage space of 5MB equally.
According to step S101, for the quantity for data cached subdomain name of Main Domain setting depends on the buffer memory capacity demand of Main Domain.Respectively there is 5MB independent memory space because this locality of browser is stored under different domain names, if the extra local storage space that Main Domain need to use is less than 5MB, so for Main Domain arrange one just enough for data cached subdomain name.If the extra local storage space that Main Domain need to use is greater than 5MB, so just for Main Domain arranges plural for data cached subdomain name.
For example, if Main Domain www.a.com need to use the extra local storage space of 10MB, so just need to be for Main Domain www.a.com arranges two subdomain names on server.These two are used to the data cached subdomain name of Main Domain www.a.com can be stroage1.a.com and stroage2.a.com.Wherein, Main Domain www.a.com is the directly domain name of access of user.
In step S102, in the time that Main Domain is interviewed, receive the interaction data returning with this corresponding server of being interviewed;
In step S103, in the time interaction data being cached in local storage, at Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under the source file properties point subdomain name of this framework;
Suppose that the page under the subdomain name of source file properties point of framework is stroage1.a.com/s.htm, the effect of page stroage1.a.com/s.htm is to receive the data that need buffer memory that Main Domain sends so.
In step S104, interaction data is cached in the page under subdomain name.
Date storage method shown in the present embodiment, the IFRAME in local memory technology and HTML based on browser, has promoted the storage capacity of browsers local storage greatly, has expanded the range of application of browsers local memory technology.
Fig. 2 is according to two of the process flow diagram of a kind of date storage method shown in an exemplary embodiment.As shown in Figure 2, in the present embodiment, step S102 can comprise:
In step S102a, in the time that Main Domain is interviewed, use client script to gather user behavior;
For example, when user uses browser access Main Domain, browser uses client script to gather user behavior.
In step S102b, judge whether user behavior triggers and the data interaction of corresponding server;
In step S102c, in the time that user behavior triggers with the data interaction of corresponding server, receive the interaction data that this corresponding server returns.
For example, in the time that user uses browser access Main Domain www.a.com, browser uses client script to gather user behavior, when user behavior triggers and when the data interaction of server, data are returned to browser by server.
Date storage method shown in the present embodiment, detects the interaction data that whether likely needs buffer memory by user behavior, realized data cached automatic collection.
Fig. 3 is according to three of the process flow diagram of a kind of date storage method shown in an exemplary embodiment.As shown in Figure 3, in the present embodiment, step S104 can comprise:
In step S104a, load the page under subdomain name;
In step S104b, after loaded, interaction data is transferred to the page subdomain name from the Main Domain page;
Here, the transmission of interaction data has two kinds of modes; One is, during in same father field, directly interaction data is transferred to the page subdomain name from the Main Domain page at subdomain name and Main Domain; Another kind is, during in different father field, adopts cross-domain transmission technology that interaction data is transferred to the page subdomain name from the Main Domain page at subdomain name from Main Domain.
For example, if be used to the data cached subdomain of Main Domain www.a.com to be called stroage1.a.com, because Main Domain www.a.com and subdomain name stroage1.a.com are in same father field, browser just can directly be transferred to interaction data the page stroage1.a.com/s.htm of subdomain name stroage1.a.com from the page of Main Domain www.a.com so.If be used to the data cached subdomain of Main Domain www.a.com to be called stroage1.b.com, because Main Domain www.a.com and subdomain name stroage1.b.com are in different father fields, browser need to use the cross-domain technology such as postMessage interaction data could be transferred to the page of subdomain name stroage1.b.com from the page of Main Domain www.a.com so.
Main Domain www.a.com and subdomain name stroage1.a.com belong to across subdomain name access, can directly mutually access.
In step S104c, use client script and local storage that interaction data is cached in the page under subdomain name.
In disclosure embodiment, while having expired in the page stores space of subdomain name, can notify Main Domain to create again the new framework for storing.
Date storage method shown in the present embodiment, utilizes across subdomain name access and cross-domain transmission technology and has realized data cached transmission, lays a good foundation for data cached.
Illustrate the date storage method of disclosure embodiment below.
The buffer memory capacity demand of supposing Main Domain www.b.com is 22MB, at least need to, for Main Domain www.b.com arranges 4 for data cached subdomain name on server, suppose that these 4 subdomain names are stroage1.b.com, stroage2.b.com, stroage3.b.com and stroage4.b.com; Here the number of subdomain name arranging for Main Domain, can be come to determine in the following way: suppose that Main Domain buffer memory capacity demand is m divided by 5 business, remainder is n, in the time that n equals 0, the number of subdomain name equals m ﹣ 1, and in the time that n is greater than 0, the number of subdomain name equals m.
In the time that Main Domain www.b.com is interviewed, when namely user is by browser access Main Domain www.b.com, browser receives the interaction data returning with this corresponding server of being interviewed;
Browser judges whether interaction data to be cached to local storage;
If interaction data is cached to local storage, first interaction data is cached under the page of Main Domain www.b.com, after has expired in the page stores space of Main Domain www.b.com, more remaining interaction data is stored under the page of subdomain name stroage1.b.com, stroage2.b.com, stroage3.b.com and stroage4.b.com.Taking subdomain name stroage1.b.com as example, the process that data are stored under the subdomain name page is: at Main Domain www.b.com page creation HTML (Hypertext Markup Language) framework, by the page stroage1.b.com/s.htm under the source file properties point subdomain name stroage1.b.com of this framework, then the data of needs storage are directly transferred to the page stroage1.b.com/s.htm subdomain name stroage1.b.com from the Main Domain www.b.com page, and store in page stroage1.b.com/s.htm.If the storage space of page stroage1.b.com/s.htm is full, so just again at Main Domain www.b.com page creation HTML (Hypertext Markup Language) framework, by the page under other subdomain names of source file properties point (such as stroage2.b.com, stroage3.b.com, stroage4.b.com) of this framework, then remaining data is stored in the page of these other subdomain names.
4 of Main Domain www.b.com setting are called stroage1.b.com for data cached subdomain if, stroage2.b.com, stroage3.a.com and stroage4.a.com, because subdomain name stroage1.b.com and stroage2.b.com and Main Domain www.b.com are in same father field, and subdomain name stroage3.a.com and stroage4.a.com from Main Domain www.b.com in different father fields, the process of the page by data buffer storage under to the process of the page under subdomain name stroage3.a.com and stroage4.a.com and data buffer storage to subdomain name stroage1.b.com and stroage2.b.com is different.Difference is: data need to be adopted to cross-domain transmission technology in the time that the page of Main Domain www.b.com is transferred to the page subdomain name stroage3.a.com and stroage4.a.com, and in the time that the page of Main Domain www.b.com is transferred to the page subdomain name stroage1.b.com and stroage2.b.com, be directly transmission by data.
Utilize the date storage method that the disclosure provides can buffer memory picture.In the time of buffer memory picture, picture is first transferred to BASE64 format string, then be stored in this locality storage of browser.
One of ordinary skill in the art will appreciate that, all or part of processing in said method embodiment can complete by the relevant hardware of programmed instruction, aforesaid program can be stored in a kind of computer read/write memory medium, this program is in the time carrying out, execution comprises the step of preceding method embodiment, and aforesaid storage medium comprises: the various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Fig. 4 is according to the block diagram of a kind of data storage device shown in an exemplary embodiment.As shown in Figure 4, in the present embodiment, data storage device can comprise module 10, receiver module 20, creation module 30 and cache module 40 are set.Module 10 is set for according to the buffer memory capacity demand of Main Domain, on server for Main Domain is provided for data cached subdomain name.Receiver module 20, in the time that Main Domain is interviewed, receives the interaction data returning with this corresponding server of being interviewed.When creation module 30 is stored for be cached to this locality at the interaction data that receiver module 20 is received, at Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under the source file properties point subdomain name of framework.Cache module 40 is for being cached to interaction data the page under subdomain name.
Fig. 5 is according to the block diagram of receiver module 20 in a kind of data storage device shown in an exemplary embodiment.As shown in Figure 5, in the present embodiment, receiver module 20 can comprise inspection unit 210, judging unit 220 and receiving element 230.Wherein, inspection unit 210, in the time that Main Domain is interviewed, uses client script to gather user behavior.Judging unit 220 is for judging whether user behavior triggers and the data interaction of corresponding server.Receiving element 230 when trigger with the data interaction of corresponding server at user behavior, receives the interaction data that this corresponding server returns.
Fig. 6 is according to the block diagram of cache module 50 in a kind of data storage device shown in an exemplary embodiment.As shown in Figure 6, in the present embodiment, cache module 40 can comprise loading unit 410, transmission unit 420 and buffer unit 430.Wherein, loading unit 410 is for loading the page under subdomain name.Transmission unit 420, for after loaded, is transferred to the page subdomain name by interaction data from the Main Domain page.Buffer unit 430 is for using client script and local storage that interaction data is cached to the page under subdomain name.
Wherein, in transmission unit 420, can comprise the first transmission subelement.The first transmission subelement is for during in same father field, being directly transferred to the page subdomain name by interaction data from the Main Domain page at subdomain name and Main Domain.
Wherein, in transmission unit 420, can comprise the second transmission subelement.The second transmission subelement is for during in different father field, adopting cross-domain transmission technology that interaction data is transferred to the page subdomain name from the Main Domain page from Main Domain at subdomain name.
In disclosure embodiment, transmission unit 420 can comprise the first transmission subelement and the second transmission subelement simultaneously, also can only include among subelement one of the first transmission subelement and the second transmission.
Disclosure embodiment provides a kind of data storage device, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to carry out as give an order:
According to the buffer memory capacity demand of Main Domain, on server, be provided for data cached subdomain name for described Main Domain;
In the time that described Main Domain is interviewed, receive the interaction data returning with this corresponding server of being interviewed;
In the time described interaction data being cached in local storage, at described Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under subdomain name described in the source file properties point of described framework;
Described interaction data is cached in the page under described subdomain name.
Processor is configured to carry out as given an order: as described in Main Domain while being interviewed, the interaction data that reception is returned with this corresponding server of being interviewed, comprising:
In the time that described Main Domain is interviewed, use client script to gather user behavior;
Judge whether user behavior triggers and the data interaction of corresponding server;
In the time that user behavior triggers with the data interaction of described corresponding server, receive the interaction data that the server of described correspondence returns.
Processor is configured to carry out as given an order: as described in by as described in interaction data be cached to as described in the page under subdomain name, comprising:
Load the page under described subdomain name;
After loaded, described interaction data is transferred to the page described subdomain name from the described Main Domain page;
Use client script and local storage that described interaction data is cached in the page under described subdomain name.
Processor is configured to carry out as given an order: as described in by as described in interaction data from as described in the Main Domain page be transferred to as described in the page subdomain name, comprising:
During in same father field, directly described interaction data is transferred to the page described subdomain name from the described Main Domain page at described subdomain name and described Main Domain.
Processor is configured to carry out as given an order: as described in by as described in interaction data from as described in the Main Domain page be transferred to as described in the page subdomain name, comprising:
During in different father field, adopt cross-domain transmission technology that described interaction data is transferred to the page described subdomain name from the described Main Domain page from described Main Domain at described subdomain name.
Data storage device shown in the present embodiment, the IFRAME in local memory technology and HTML based on browser, has promoted the storage capacity of browsers local storage greatly, has expanded the range of application of browsers local memory technology.
Fig. 7 is according to the block diagram of a kind of device shown in an exemplary embodiment.For example, device 800 can be mobile phone, computing machine, digital broadcast terminal, information receiving and transmitting equipment, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 7, device 800 can comprise following one or more assembly: processing components 802, storer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of I/O (I/O), sensor module 814, and communications component 816.
The integrated operation of processing components 802 common control device 800, such as with demonstration, call, data communication, the operation that camera operation and record operation are associated.Treatment element 802 can comprise that one or more processors 820 carry out instruction, to complete all or part of step of above-mentioned method, these steps comprise: according to the buffer memory capacity demand of Main Domain, on server for this Main Domain is provided for data cached subdomain name; In the time that this Main Domain is interviewed, receive the interaction data returning with this corresponding server of being interviewed; In the time interaction data being cached in local storage, at Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under the source file properties point subdomain name of this framework; Interaction data is cached in the page under subdomain name.In addition, processing components 802 can comprise one or more modules, is convenient to mutual between processing components 802 and other assemblies.For example, processing element 802 can comprise multi-media module, to facilitate mutual between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of equipment 800.The example of these data comprises for any application program of operation on device 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
Electric power assembly 806 provides electric power for installing 800 various assemblies.Electric power assembly 806 can comprise power-supply management system, one or more power supplys, and other and the assembly that generates, manages and distribute electric power to be associated for device 800.
Multimedia groupware 808 is included in the screen that an output interface is provided between described device 800 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises that one or more touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor is the border of sensing touch or sliding action not only, but also detects duration and the pressure relevant to described touch or slide.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.For example, audio-frequency assembly 810 comprises a microphone (MIC), and when device 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal receiving can be further stored in storer 804 or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensors, is used to device 800 that the state estimation of various aspects is provided.For example, sensor module 814 can detect the opening/closing state of equipment 800, the relative positioning of assembly, for example described assembly is display and the keypad of device 800, the position of all right pick-up unit 800 of sensor module 814 or 800 1 assemblies of device changes, user is with device 800 existence that contact or do not have the temperature variation of device 800 orientation or acceleration/deceleration and device 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to be convenient to the communication of wired or wireless mode between device 800 and other equipment.Device 800 wireless networks that can access based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communication component 816 receives broadcast singal or the broadcast related information from external broadcasting management system via broadcast channel.In one exemplary embodiment, described communication component 816 also comprises near-field communication (NFC) module, to promote junction service.For example, can be based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be realized by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable recording medium that comprises instruction, for example, comprised the storer 804 of instruction, above-mentioned instruction can have been carried out said method by the processor 820 of device 800.For example, described non-provisional computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment etc.
Embodiments of the invention also provide a kind of non-provisional computer-readable recording medium, in the time that the instruction in described storage medium is carried out by the processor of mobile terminal, make mobile terminal can carry out a kind of date storage method, described date storage method comprises: according to the buffer memory capacity demand of Main Domain, on server for this Main Domain is provided for data cached subdomain name; In the time that this Main Domain is interviewed, receive the interaction data returning with this corresponding server of being interviewed; In the time interaction data being cached in local storage, at Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under the source file properties point subdomain name of this framework; Interaction data is cached in the page under subdomain name.
Fig. 8 is a kind of for storing the block diagram of device 1900 of data according to shown in an exemplary embodiment.For example, device 1900 may be provided in a server.With reference to Fig. 8, device 1900 comprises processing components 1922, and it further comprises one or more processors, and by the memory resource of storer 1932 representatives, can for example, by the instruction of the execution of processing element 1922, application program for storing.In storer 1932, the application program of storage can comprise one or more each module corresponding to one group of instruction.In addition, processing components 1922 is configured to carry out instruction, and to carry out above-mentioned date storage method, the method comprises: according to the buffer memory capacity demand of Main Domain, on server for this Main Domain is provided for data cached subdomain name; In the time that this Main Domain is interviewed, receive the interaction data returning with this corresponding server of being interviewed; In the time interaction data being cached in local storage, at Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under the source file properties point subdomain name of this framework; Interaction data is cached in the page under subdomain name.
Device 1900 can also comprise that a power supply module 1926 is configured to the power management of actuating unit 1900, and a wired or wireless network interface 1950 is configured to device 1900 to be connected to network, and input and output (I/O) interface 1958.Device 1900 operating systems that can operate based on being stored in storer 1932, for example Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Can find out by above description, the data storage device of disclosure embodiment, has promoted the storage capacity of browsers local storage, has expanded the range of application of browsers local memory technology.
It will be understood by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into multiple submodules.
Those skilled in the art, considering instructions and putting into practice after invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised undocumented common practise or the conventional techniques means in the art of the disclosure.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendments and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (11)

1. a date storage method, is characterized in that, comprising:
According to the buffer memory capacity demand of Main Domain, on server, be provided for data cached subdomain name for described Main Domain;
In the time that described Main Domain is interviewed, receive the interaction data returning with this corresponding server of being interviewed;
In the time described interaction data being cached in local storage, at described Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under subdomain name described in the source file properties point of described framework;
Described interaction data is cached in the page under described subdomain name.
2. date storage method according to claim 1, is characterized in that, described in the time that described Main Domain is interviewed, and receives the interaction data returning with this corresponding server of being interviewed, and comprising:
In the time that described Main Domain is interviewed, use client script to gather user behavior;
Judge whether user behavior triggers and the data interaction of corresponding server;
In the time that user behavior triggers with the data interaction of described corresponding server, receive the interaction data that the server of described correspondence returns.
3. date storage method according to claim 1, is characterized in that, described described interaction data is cached in the page under described subdomain name, comprising:
Load the page under described subdomain name;
After loaded, described interaction data is transferred to the page described subdomain name from the described Main Domain page;
Use client script and local storage that described interaction data is cached in the page under described subdomain name.
4. date storage method according to claim 3, is characterized in that, described described interaction data is transferred to the page described subdomain name from the described Main Domain page, comprising:
During in same father field, directly described interaction data is transferred to the page described subdomain name from the described Main Domain page at described subdomain name and described Main Domain.
5. date storage method according to claim 3, is characterized in that, described described interaction data is transferred to the page described subdomain name from the described Main Domain page, comprising:
During in different father field, adopt cross-domain transmission technology that described interaction data is transferred to the page described subdomain name from the described Main Domain page from described Main Domain at described subdomain name.
6. a data storage device, is characterized in that, comprising:
Module is set, for according to the buffer memory capacity demand of Main Domain, on server, is provided for data cached subdomain name for described Main Domain;
Receiver module, in the time that described Main Domain is interviewed, receives the interaction data returning with this corresponding server of being interviewed;
Creation module, in the time being cached to described interaction data local storage, at described Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under subdomain name described in the source file properties point of described framework;
Cache module, for being cached to the page under described subdomain name by described interaction data.
7. data storage device according to claim 6, is characterized in that, described receiver module comprises:
Inspection unit, in the time that described Main Domain is interviewed, uses client script to gather user behavior;
Judging unit, for judging whether user behavior triggers and the data interaction of corresponding server;
Receiving element, when triggering with the data interaction of described corresponding server at user behavior, receives the interaction data that the server of described correspondence returns.
8. data storage device according to claim 6, is characterized in that, described cache module comprises:
Loading unit, for loading the page under described subdomain name;
Transmission unit, for after loaded, is transferred to the page described subdomain name by described interaction data from the described Main Domain page;
Buffer unit, for using client script and local storage that described interaction data is cached to the page under described subdomain name.
9. data storage device according to claim 8, is characterized in that, described transmission unit comprises:
The first transmission subelement, for during in same father field, being directly transferred to the page described subdomain name by described interaction data from the described Main Domain page at described subdomain name and described Main Domain.
10. data storage device according to claim 8, is characterized in that, described transmission unit comprises:
The second transmission subelement, for during in different father field, adopting cross-domain transmission technology that described interaction data is transferred to the page described subdomain name from the described Main Domain page from described Main Domain at described subdomain name.
11. 1 kinds of data storage devices, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to carry out as give an order:
According to the buffer memory capacity demand of Main Domain, on server, be provided for data cached subdomain name for described Main Domain;
In the time that described Main Domain is interviewed, receive the interaction data returning with this corresponding server of being interviewed;
In the time described interaction data being cached in local storage, at described Main Domain page creation HTML (Hypertext Markup Language) framework, by the page under subdomain name described in the source file properties point of described framework;
Described interaction data is cached in the page under described subdomain name.
CN201410289660.6A 2014-06-25 2014-06-25 Data storage method and device Pending CN104111829A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410289660.6A CN104111829A (en) 2014-06-25 2014-06-25 Data storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410289660.6A CN104111829A (en) 2014-06-25 2014-06-25 Data storage method and device

Publications (1)

Publication Number Publication Date
CN104111829A true CN104111829A (en) 2014-10-22

Family

ID=51708629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410289660.6A Pending CN104111829A (en) 2014-06-25 2014-06-25 Data storage method and device

Country Status (1)

Country Link
CN (1) CN104111829A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016101732A1 (en) * 2014-12-26 2016-06-30 北京奇虎科技有限公司 Cross-page information transmission method and page browsing apparatus
CN106357834A (en) * 2016-08-30 2017-01-25 上海二三四五网络科技有限公司 Method for retrieving information from root domain name and subdomain names of root domain name
CN106874323A (en) * 2016-06-28 2017-06-20 阿里巴巴集团控股有限公司 A kind of date storage method and device
CN116910415A (en) * 2023-09-08 2023-10-20 中航金网(北京)电子商务有限公司 Data storage method and device and data reading method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562543A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 Cache data processing method and processing system and device thereof
CN101682621A (en) * 2007-03-12 2010-03-24 思杰系统有限公司 Systems and methods for cache operations
CN101997927A (en) * 2010-11-18 2011-03-30 厦门市美亚柏科信息股份有限公司 Method and system for caching data of WEB platform
US20120036264A1 (en) * 2010-08-03 2012-02-09 Changhao Jiang Efficient Storage and Retrieval of Resources for Rendering Structured Documents
CN103455478A (en) * 2012-05-21 2013-12-18 腾讯科技(深圳)有限公司 Webpage access accelerating method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682621A (en) * 2007-03-12 2010-03-24 思杰系统有限公司 Systems and methods for cache operations
CN101562543A (en) * 2009-05-25 2009-10-21 阿里巴巴集团控股有限公司 Cache data processing method and processing system and device thereof
US20120036264A1 (en) * 2010-08-03 2012-02-09 Changhao Jiang Efficient Storage and Retrieval of Resources for Rendering Structured Documents
CN101997927A (en) * 2010-11-18 2011-03-30 厦门市美亚柏科信息股份有限公司 Method and system for caching data of WEB platform
CN103455478A (en) * 2012-05-21 2013-12-18 腾讯科技(深圳)有限公司 Webpage access accelerating method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016101732A1 (en) * 2014-12-26 2016-06-30 北京奇虎科技有限公司 Cross-page information transmission method and page browsing apparatus
CN106874323A (en) * 2016-06-28 2017-06-20 阿里巴巴集团控股有限公司 A kind of date storage method and device
WO2018001121A1 (en) * 2016-06-28 2018-01-04 阿里巴巴集团控股有限公司 Data storage method and device
KR20190022783A (en) * 2016-06-28 2019-03-06 알리바바 그룹 홀딩 리미티드 Data storage method and device
JP2019527406A (en) * 2016-06-28 2019-09-26 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited Data storage method and apparatus
EP3477507A4 (en) * 2016-06-28 2020-01-08 Alibaba Group Holding Limited Data storage method and device
US10855796B2 (en) 2016-06-28 2020-12-01 Advanced New Technologies Co., Ltd. Data storage method and device
KR102289996B1 (en) * 2016-06-28 2021-08-17 어드밴스드 뉴 테크놀로지스 씨오., 엘티디. Data storage method and device
CN106357834A (en) * 2016-08-30 2017-01-25 上海二三四五网络科技有限公司 Method for retrieving information from root domain name and subdomain names of root domain name
CN106357834B (en) * 2016-08-30 2020-01-07 上海二三四五网络科技有限公司 Method for calling information from root domain name and sub-domain name thereof
CN116910415A (en) * 2023-09-08 2023-10-20 中航金网(北京)电子商务有限公司 Data storage method and device and data reading method

Similar Documents

Publication Publication Date Title
CN105607927A (en) Page display method and apparatus
CN104778063A (en) Method and device for updating resource
CN103914523A (en) Page rollback controlling method and page rollback controlling device
CN104123341A (en) Method and device for downloading file and route device
CN103916829A (en) Desktop message notifying method and device
CN104636106A (en) Picture displaying method and device and terminal device
CN105516270A (en) Information push method and device
CN104133852A (en) Webpage access method, webpage access device, server and terminal
CN104156401A (en) Webpage loading method, device and equipment
CN104038536A (en) Plug-in communication method and device
CN104156233A (en) Method, device and terminal for updating light applications in offline manner
CN105159524A (en) Interface display method and apparatus
CN104468760A (en) Method and device for pushing reminding information
CN105095081A (en) Application program function testing method and device
CN104111979A (en) Search recommendation method and device
CN105808305A (en) Static resource loading method and device
CN104035977A (en) Webpage loading method and device
CN104636164A (en) Generating method and device for starting page
CN104881304A (en) Resource downloading method and device
CN104536787A (en) Resource preloading method and device
CN104111829A (en) Data storage method and device
CN104182505A (en) Webpage rearrangement method and device
CN105468417A (en) Application software installation method and device
CN104158854A (en) Method and device for resource sharing
CN105488200A (en) Webpage display method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141022

RJ01 Rejection of invention patent application after publication