CN103064637A - Network disk cache synchronizing method and system - Google Patents

Network disk cache synchronizing method and system Download PDF

Info

Publication number
CN103064637A
CN103064637A CN2012105681861A CN201210568186A CN103064637A CN 103064637 A CN103064637 A CN 103064637A CN 2012105681861 A CN2012105681861 A CN 2012105681861A CN 201210568186 A CN201210568186 A CN 201210568186A CN 103064637 A CN103064637 A CN 103064637A
Authority
CN
China
Prior art keywords
file
user
cache
according
view
Prior art date
Application number
CN2012105681861A
Other languages
Chinese (zh)
Inventor
晁云瞳
黄智寿
郎启旭
Original Assignee
珠海金山办公软件有限公司
北京金山办公软件有限公司
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 珠海金山办公软件有限公司, 北京金山办公软件有限公司 filed Critical 珠海金山办公软件有限公司
Priority to CN2012105681861A priority Critical patent/CN103064637A/en
Publication of CN103064637A publication Critical patent/CN103064637A/en

Links

Abstract

The invention belongs to the technical field of network disk synchronizing, and particularly discloses a network disk cache synchronizing method and system. By means of the network disk cache synchronizing method and system, the attribute information of all files stored in a cloud side server is transmitted to a user terminal interface for displaying, and conditions of all files on the cloud side server are displayed by file attribute data which are small corresponding to file contents, so that users can check a large number of files stored on the server. By building a cache area, some files which are loaded locally and serve as the cache can be used by users through clicking, and experience is better. Simultaneously, when users leave the network environment, the cache files stored locally can also be checked.

Description

一种网盘的缓存同步方法及系统 Cache synchronization method and system for network disk

技术领域 FIELD

[0001] 本发明属于网盘同步技术领域,具体涉及一种网盘的缓存同步方法及系统。 [0001] The present invention belongs to the technical field synchronization network disk, particularly relates to a method and system for cache synchronization network disk.

背景技术 Background technique

[0002] 网盘,又称网络U盘、网络硬盘,是一些网络公司推出的在线存储服务。 [0002] network disk, network, also known as U disk, network drives, some Internet companies launched online storage service. 向用户提供文件的存储、访问、备份、共享等文件管理功能,使用起来十分方便。 Provides storage, access, backup, file sharing, file management functions to the user, very convenient to use. 不花钱的移动硬盘。 Mobile hard drive at no cost. 用户可以把网盘看成一个放在网络上的硬盘或U盘,不管你是在家中、单位或其它任何地方,只要你连接到因特网,你就可以管理、编辑网盘里的文件。 Users can as a network disk on the hard disk or U disk on the network, whether you are at home, work or any other place, as long as you connect to the Internet, you can manage, edit the files in the network disk. 不需要随身携带,更不怕丢失。 You do not need to carry more afraid of losing.

[0003] 最新应用的云计算储存技术,为网盘行业带来了新的革命,传统的网盘将逐步被云存储取代。 [0003] The latest application of cloud storage technology has brought a new revolution for the network disk industry, the traditional network disk will be gradually replaced by cloud storage. 云存储是构建在高速分布式存储网络上的数据中心,它将网络中大量不同类型的存储设备通过应用软件集合起来协同工作,形成一个安全的数据存储和访问的系统,适用于各大中小型企业与个人用户的数据资料存储、备份、归档等一系列需求。 Cloud storage data center is built on a high speed distributed storage network, it will be a number of different types of network storage devices through a set of application software collaborative work together, forming a secure data storage system and access for various small and medium enterprises and individual users of data storage, backup, archiving, and a series of demands. 云存储最大优势在于将单一的存储产品转换为数据存储与服务,在这个技术下,网盘行业可能像金融行业银行一样,在单一的存储服务基础衍生出更多增值的服务。 The biggest advantage is that cloud storage will convert a single storage products for data storage and services, in this technology, network disk industry may be like the financial sector banks, derive more value-added services in a single storage service foundation.

[0004] 在以上背景下产生了“同步网盘”,比如金山快盘,它具备文件同步、文件备份和文件共享功能。 [0004] The generated 'Sync Drive "in the above context, such as Kingsoft disk, which includes a file synchronization, backup files, and file sharing. 只要安装了同步网盘的客户端,电脑、手机、平板、网站之间都能够直接跨平台互通互联,彻底抛弃U盘、移动硬盘和数据线。 As long as the client synchronization network disk installed between the computer, phone, tablet, website can be directly cross-platform interconnection, completely abandon the U disk, mobile hard drives and data lines.

[0005] 具体系统框图,如图1所示,该系统包括云端服务器和与云端服务器连接的各个终端设备,所述终端设备包括PC机、手机、IPAD等,在各个终端设备中安装快盘客户端软件。 [0005] In particular the system block diagram shown in Figure 1, the system includes a server and a cloud each terminal device connected to the cloud server, the terminal device includes a PC, mobile phone, IPAD, etc., fast disk installed in each client terminal device software. 安装快盘客户端后,可以把任意文件丢入指定文件夹,然后就会被同步到该用户其他装有快盘客户端的Windows电脑、Mac电脑、Android手机、iPhone、iPad甚至快盘的官网中。 After installation fast disk client, you can put any file thrown into the specified folder and will be synchronized to the user other with a fast disk client for Windows PCs, Mac computers, Android phones, iPhone, iPad fast and even pan official website. 而且还可以设置指定文件夹里的某些文件或文件夹共享给好友,这样以后用户放在这些文件夹里的文件,有任何改动,好友都能立即看到最新版本。 But also can be set to specify the folder where certain files or folders shared with friends, so that future users in those folders in the file, any changes friends can immediately see the latest version. 用户也可以随时进入到云端服务器查看快盘里的所有文件。 Users can also enter to view the cloud server fast disk all the files at any time. 利用快盘的共享功能还可以实现:一个人在自己电脑上修改了文档,其他人立即可以在别的电脑上看到,以后办公就再也不用对某个频繁修改的文档进行反复审阅、修订,不同的版本传来传去,分享文件给团队也无需用数据线拷贝到电脑,然后打包、发邮件等繁琐操作。 The use of fast disk sharing function can also be achieved: a person changed documents on their computers, others can be seen immediately on another computer, you no longer have to work after a repeated frequently modified document review, revise, different versions passed around, to share files with team does not need to copy data cable to the computer, and then packaged, e-mail and other complicated operations.

[0006] 然而,当云端服务器中的数据量大到一定程度时,就无法同步到各个用户终端了,因为用户终端的数据存储量是非常有限的。 [0006] However, when the amount of data in the cloud server to a certain degree, can not be synchronized to the respective user terminals, because the amount of data stored in the user terminal is very limited. 比如云存储服务应用于企业内部,海量的企业数据被存放到服务器上,对于存储容量有限的用户终端设备来说,传统的同步机制会服务器上的文件下载下来,但本地并没有这么大的存储容量,所以用户无法获得真正的云存储体验:海量存储,即点即看。 Such as cloud storage services are used within the enterprise, vast amounts of corporate data is stored on the server for the limited storage capacity of the user terminal device, the files on the traditional server synchronization mechanism will be downloaded, but not so much local storage capacity, so the user can not get a true cloud storage experience: mass storage, namely point-per-view.

[0007] 因此,为了解决上述问题,现有的一些云存储服务就采取了选择性同步的方法,SP是将部分文件同步给用户终端。 [0007] Accordingly, to solve the above problems, some conventional cloud storage service to take a method of selectively synchronization, SP is the synchronization of the file to the user terminal. 这时,用户将无法知晓云端服务器上的其他文件状况,从而给客户带来不便和一些潜在的风险。 At this time, users will not know the status of other files on the cloud server, thus inconvenience and some potential risk to the customer. 发明内容 SUMMARY

[0008] 为了解决现有同步网盘系统中用户终端容量有限而无法获知云端服务器上所有文件状况的问题,本发明的目的在于提供一种新的网盘同步方法及系统。 [0008] In order to solve the conventional synchronous network system disk capacity limited user terminal can not know the status of all the files on the problem cloud server, object of the present invention to provide a novel method and system for synchronizing network disk.

[0009] 为了实现上述发明目的,本发明所采取的技术方案如下: [0009] In order to achieve the above object, the present invention adopted the following technical solution:

[0010] 一种网盘的缓存同步方法,包括以下步骤: [0010] A method for cache synchronization network disk, comprising the steps of:

[0011] 根据用户指令或者预设规则从云端服务器中下载部分或者全部文件至用户终端中预设的文件缓存区; [0011] According to a user instruction or a preset rule to download some or all of the file to the user terminal preset file cache servers from the cloud;

[0012] 获取云端服务器中存储的各个文件的属性信息,并将所有文件的属性信息传输至用户终端界面上显示; [0012] acquires the attribute information of each file stored in the cloud server, and transmitting the attribute information to the files of all the user interface display terminal;

[0013] 接收用户对用户终端界面上显示的各个文件的查看指令,根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件; [0013] receiving a user command to view the various files displayed on a user interface terminal to find whether there is a corresponding file in the file cache according to the viewing instruction;

[0014] 若已经存在,则直接打开文件以供用户查看; [0014] If already exists, then directly open files for users to view;

[0015] 若不存在,则根据所述文件的属性信息从云端服务器中下载对应的文件至缓存区,并打开文件以供用户查看。 [0015] If present, the downloaded file to the corresponding buffer, and open the file for the user to see from the cloud server according to the attribute information of the file.

[0016] 进一步的,在根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件之后,且在直接打开文件以供用户查看之前,还包括以下步骤: After [0016] Further, to find out whether the corresponding file exists in the file cache according to the viewing instruction, and prior to opening the file for the user to directly view, further comprising the step of:

[0017] 将所述文件的版本信息上传至云端服务器中判断所述文件是否为最新版本; [0017] The version information of the file is uploaded to the cloud server determines whether the latest version of the file;

[0018] 若是,则执行所述直接打开文件以供用户查看的步骤; [0018] If yes, the step for opening the file directly viewed by the user;

[0019] 若否,则从云端服务器中下载该文件的最新版本至所述文件缓存区中。 [0019] If not, from the cloud server to download the latest version of that file to the file buffer.

[0020] 进一步的,所述文件缓存区的大小为预设大小或者根据用户指令设置大小,当缓存区中的存储的文件达到所述大小阈值后,则根据预设的规则删除其他文件以存储新文件。 [0020] Further, the size of the file size of the buffer is provided according to a user instruction or a predetermined size, when the buffer area reaches the stored file size threshold, then delete other files to be stored according to a preset rule new file.

[0021] 进一步的,在打开所述文件以供用户查看时,包括以下步骤: [0021] Further, when the file is opened for the user to view, comprising the steps of:

[0022] 获取所述文件的文件格式; [0022] acquiring the file format;

[0023] 根据所述文件格式在系统中查找是否存在与其对应的关联程序; [0023] searches whether there is the corresponding related program in a system according to the file format;

[0024] 若存在,则调用所述关联程序打开该文件; [0024] If present, the associated program is called to open the file;

[0025] 如不存在,则将预设的提示信息发送至用户界面显示。 [0025] If not exist, a preset prompt information to the user interface display.

[0026] 进一步的,所述属性信息在用户终端上的具体显示方式为列表显示方式。 [0026] Further, the attribute information is displayed on a specific user terminal for the list display.

[0027] 一种网盘的缓存同步系统,包括以下模块: [0027] A network disk cache synchronization system, comprising the following modules:

[0028] 缓存文件下载模块,用于根据用户指令或者预设规则从云端服务器中下载部分或者全部文件至用户终端中预设的文件缓存区; [0028] cache file downloading module, according to a user instruction or a preset rule to download some or all of the file to the user terminal preset file cache servers from the cloud;

[0029] 文件属性下载模块,用于获取云端服务器中存储的各个文件的属性信息,并将所有文件的属性信息传输至用户终端界面上显示; [0029] the file attributes downloading module, configured to acquire attribute information of each file stored in the cloud server, and transmitting the attribute information to the files of all the user interface display terminal;

[0030] 文件查找模块,用于接收用户对用户终端界面上显示的各个文件的查看指令,根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件;若存在,则执行文件查看模块;若不存在,则执行后续文件下载模块; [0030] The file search module for viewing each file receiving command to the user interface displayed on the user terminal, to find whether there is a corresponding file in the file cache according to the viewing instruction; If present, the execution file View module; if not, then perform subsequent file download module;

[0031] 文件查看模块,用于直接打开文件以供用户查看; [0031] The document viewing module, for direct view for the user to open the file;

[0032] 后续文件下载模块,用于根据所述文件的属性信息从云端服务器中下载对应的文件至缓存区,并打开文件以供用户查看。 [0032] subsequent file downloading module, according to the file attribute information of the file from the cloud server to download the corresponding buffer, and open the file for the user to view.

[0033] 进一步的,该系统还包括文件更新模块,用于在所述文件查找模块根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件之后,且在所述文件查看模块直接打开文件以供用户查看之前,将所述文件的版本信息上传至云端服务器中判断所述文件是否为最新版本;若是,则执行所述文件查看模块;若否,则从云端服务器中下载该文件的最新版本至所述文件缓存区中。 [0033] Further, the system further comprises a file update module configured to find the file in the module searches whether there is a corresponding file in the file cache according to the instructions after the viewing, the viewing module and file prior to directly open files for users to view, upload the file version information to the cloud server to determine whether the file is the latest version; if yes, execute the file viewing module; if not, download it from the cloud server the latest version of the file to the file buffer.

[0034] 进一步的,所述文件缓存区的大小为预设大小或者根据用户指令设置大小,当缓存区中的存储的文件达到所述大小阈值后,则根据预设的规则删除其他文件以存储新文件。 [0034] Further, the size of the file size of the buffer is provided according to a user instruction or a predetermined size, when the buffer area reaches the stored file size threshold, then delete other files to be stored according to a preset rule new file.

[0035] 进一步的,该系统还包括文件格式匹配模块,用于在打开所述文件以供用户查看时,获取所述文件的文件格式,根据所述文件格式在系统中查找是否存在与其对应的关联程序;若存在,则调用所述关联程序打开该文件;如不存在,则将预设的提示信息发送至用户界面显示。 [0035] Further, the system further includes a file format matching module, configured to, when opening the file for the user to view, obtain the file format of the file, looking up in the system according to the file format corresponding to the presence or absence of associated program; If present, the associated program to open the file call; if not present, preset prompt information to the user interface display.

[0036] 进一步的,所述属性信息在用户终端上的具体显示方式为列表显示方式。 [0036] Further, the attribute information is displayed on a specific user terminal for the list display.

[0037] 本发明将云端服务器中存储的所有文件的属性信息都传输至用户终端界面上显示,通过相对于文件内容小很多的文件属性数据向用户展示云端服务器上的所有文件状况,使得用户可以查看到服务器上存储的海量文件;本发明通过缓存区的建立,对于某些已经被下载到本地作为缓存的文件,用户点击使用时无需等待下载,体验会更好。 [0037] The present invention, attribute information of all files cloud stored in the server are transmitted to the user terminal interface display, through small relative contents of the file number of the file attribute data show all files condition on the cloud server to the user so that the user can View the massive files stored on the server; the invention through the establishment of buffer zones, for some, as has already been downloaded to the local cache file, the user clicks using without waiting to download, experience will be better. 同时,当用户离开网络环境时,对这些已经在本地存在缓存的文件,也能进行查看。 Meanwhile, when the user leaves the network environment, these files already exist in the local cache, it can be viewed.

附图说明 BRIEF DESCRIPTION

[0038] 此附图说明所提供的图片用来辅助对本发明的进一步理解,构成本申请的一部分,并不构成对本发明的不当限定,在附图中: [0038] Brief Description of Related provide images to assist a further understanding of the present invention, constitute a part of this application, without unduly limiting the present invention, in the drawings:

[0039] 图1是现有同步网盘的结构框图; [0039] FIG. 1 is a block diagram of the conventional synchronous network disk;

[0040] 图2是本发明实施例1方法对应的基本流程图; [0040] FIG 2 is a flowchart of a method of the present invention substantially corresponding to the embodiment;

[0041] 图3是图2方法所述基本的系统框图; [0041] FIG. 2 FIG. 3 is a basic system block diagram of the method;

[0042] 图4是本发明实施例2的实施例1方法基础上增加部分的流程图; [0042] FIG. 4 is an embodiment of the present invention, the second embodiment is increased on the basis of a flowchart of a portion of the method;

[0043] 图5是本发明实施例2对应的系统框图; [0043] FIG. 5 is a system block diagram corresponding to Example 2 of the present embodiment of the invention;

[0044] 图6是本发明实施例3方法对应的流程图; [0044] FIG 6 is a flowchart of the third method of the present invention corresponding to the embodiment;

[0045] 图7是本发明实施3的对应的系统框图。 [0045] FIG. 7 is a system block diagram of a third embodiment corresponding to the present invention.

具体实施方式 Detailed ways

[0046] 实施例1 [0046] Example 1

[0047] 如图2所示,本实施例公开了一种网盘的缓存同步方法,包括以下步骤: [0047] 2, the present embodiment discloses a method of synchronizing network disk cache, comprising the steps of:

[0048] Stepl :根据用户指令或者预设规则从云端服务器中下载部分或者全部文件至用户终端中预设的文件缓存区;本步骤的目的在本地客户端中划定一个文件缓存区,根据该缓存区的大小,从云端服务器中下载部分或者全部文件;当云端服务器中存储的文件小等于该缓存区时,可以全部下载,当然也可以选择性下载部分;当云端服务器中的存储的文件大于该缓存区时,就只能下载部分文件至缓存区中;本步骤中至于用户指令和预设的规则,就是选择和挑选需要下载至文件缓存区中文件的标准或者条件,可以根据用户的个性化需求挑选需要下载至文件缓存区的文件,也可以根据预设的规则下载文件。 [0048] Stepl: rule according to a user instruction or a predetermined part or all of the file downloaded to the user terminal preset file cache servers from the cloud; procedure to designate an object of the file cache in a local client, according to this size of the buffer, downloading part or all of the file servers from the cloud; cloud server when a file stored in the buffer is equal to small, may all be downloaded, of course, may be selectively downloading portion; cloud server when the file is larger than the storage when the cache, it can be downloaded part of the file into the buffer area; this step instructions as to the user and a preset rule, the selection is to select and download the required file to standard conditions or in the file cache can be personalized according to the user needs to pick need to download the file cache, you can also download files according to preset rules. 比如:用户根据个人的工作不同在不同时期制定了不同的缓存区下载条件,由比如:预先设定将三天之内的文件下载至缓存区供用户使用,又比如:根据文件在云端服务器中被使用的频度,将使用频度高的文件下载至缓存区等等,这些并不是本步骤的重点,本步骤的目的就在于在用户终端有限存储空间中缓存部分文件,以方便用户使用; For example: users, depending on individual work developed at different times with different conditions download buffer by example: preset download the file within three days to cache for users, another example: according to the file server in the cloud the frequency to be used, the frequently used files downloaded to the buffer and the like, these are not the focus of this step, the purpose of this step is that portion of the cache file in the user terminal memory space is limited, for ease of use;

[0049] Step2 :获取云端服务器中存储的各个文件的属性信息,并将所有文件的属性信息传输至用户终端界面上显示;所述属性信息中包括文件名、文件大小、文件字数、文件页数、创建时间、存取时间、修改时间、文件编辑总时间、文件单位、作者、修改者和文件存储路径等等除了文件内容外用于表针文件的信息,这些信息相对与文件内容来讲需要占用的磁盘空间会小很多,用户终端一般是有足够的空间来容纳这些信息的;本步骤通过相对于文件内容小很多的文件属性数据向用户展示云端服务器上的所有文件状况,使得用户可以查看到服务器上存储的海量文件; [0049] Step2: acquiring attribute information of each file stored in the cloud server, and transmitting the attribute information to the files of all the user interface display terminal; the attribute information includes a file name, file size, file word, the number of pages , creation time, access time, modification time, total time document editing, file unit, the author, who modify the path and file storage, etc. in addition to the contents of the file information for the hands file, the information relative to the content of the document in terms of the need to take disk space will be much smaller, the user terminal typically is sufficient space to accommodate such information; this step can be viewed to the server through a small content of the document with respect to a lot of file attribute data show all files condition on the cloud server to the user so that the user the mass storage file;

[0050] Step3:接收用户对用户终端界面上显示的各个文件的查看指令,根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件;由于第二步骤(St印2)中已经将所有文件的属性信息都下载到了本地用户终端,那么只需要以其作为索引目录就可以查找所有的文件;当然,为了节约时间提高效率,先在本地缓存区中查找对应的文件,找到直接将其供用户查看使用; [0050] Step3: receiving a user command to view each file displayed on the user interface of the terminal, according to the instruction looks to see whether there has been a corresponding file in the file cache area; in a second step since (St printing 2) It has the attributes of all files are downloaded to the local user terminal, then only in his capacity as the index directory you can search for all files; of course, in order to save time and improve efficiency, first find the corresponding file in the local cache, find the direct its use for the user to view;

[0051] Step4A :若已经存在,贝U直接打开文件以供用户查看; [0051] Step4A: If already exists, shellfish U directly open files for users to view;

[0052] Step4B :若不存在,则根据所述文件的属性信息从云端服务器中下载对应的文件至缓存区,并打开文件以供用户查看。 [0052] Step4B: if not, according to the attribute information of the file from the cloud server to download the corresponding file buffer, and open the file for the user to view. 本步骤是用户想要查看文件不在所述文件缓存区中时,才执行的步骤,具体执行时可以一个文件的属性对应一个文件下载的链接地址。 This step is a step of the user wants to view the file when the file is not in the cache, before execution, the attribute file can be a file corresponding to a link address for downloading the specific execution.

[0053] 如图3所示,本实施例还公开了一种与前述方法完全对应的网盘的缓存同步系统,包括以下模块: [0053] As shown in FIG. 3, the present embodiment also discloses a synchronous network disk caching system and method is completely the corresponding module comprising:

[0054] 缓存文件下载模块1,用于根据用户指令或者预设规则从云端服务器中下载部分或者全部文件至用户终端中预设的文件缓存区; [0054] a cache file downloading module configured to download a file from some or all of the cloud server according to a user instruction or a preset rule to the user terminal preset file cache area;

[0055] 文件属性下载模块2,用于获取云端服务器中存储的各个文件的属性信息,并将所有文件的属性信息传输至用户终端界面上显示; [0055] 2 file attributes downloading module, configured to acquire attribute information of each file stored in the cloud server, and transmitting the attribute information to the files of all the user interface display terminal;

[0056] 文件查找模块3,用于接收用户对用户终端界面上显示的各个文件的查看指令,根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件;若存在,则执行文件查看模块;若不存在,则执行后续文件下载模块; [0056] The file search module 3, the respective instructions for viewing documents received by the user interface displayed on the user terminal, to find whether there is a corresponding file in the file cache according to the viewing instruction; if present, is executed file Viewer module; if not, the subsequent file download module is executed;

[0057] 文件查看模块4,用于直接打开文件以供用户查看; [0057] The document viewing module 4, to open the file for the user to directly view;

[0058] 后续文件下载模块5,用于根据所述文件的属性信息从云端服务器中下载对应的文件至缓存区以供用户查看。 [0058] subsequent file download module 5, according to attribute information of the file downloaded from the first server to cache file corresponding to the user for review.

[0059] 其中,为了方便用户使用和确保文件更新,所述文件缓存区的大小为预设大小或者根据用户指令设置大小,当缓存区中的存储的文件达到所述大小阈值后,则根据预设的规则删除其他文件以存储新文件。 [0059] For convenience and to ensure the user updates the file size of the file cache is a preset size, or the size of the set according to user instructions, when stored in the cache file size reaches the threshold value, according to the pre the rules set delete other files to store the new file. 比如根据用户终端的硬盘容量来设定一个默认值,默认值会根据用户硬盘容量和可用空间大小来调节。 For example to set a default value based on the capacity of the hard disk of the user terminal, the default value will be adjusted according to user capacity and available hard disk space. 例如用户IT的硬盘,有500G可用空间,会设定IOG的缓存区;若只有100G可用空间,会自动设定2G的缓存区。 Such as IT user's hard drive, there is space available 500G, IOG would set the cache; if only 100G of free space, it will automatically set the buffer 2G. 当然,缓存容量同时允许用户自主更改设定。 Of course, cache capacity while allowing users to self-change settings. 所谓的预算的规则,比如:采取先进先出的规则,一旦达到设定的阈值时,用最新的文件覆盖最早下载的文件等等。 The so-called regular budget, such as: taking the FIFO rule, upon reaching a set threshold, with the latest file overwrites the oldest downloaded file, and so on.

[0060] 其中,以方便用户查看,所述属性信息在用户终端上的具体显示方式为列表显示方式。 [0060] wherein, to allow users to check the attribute information displayed on a specific user terminal for the list display.

[0061] 当然,为了便于用户实时掌控下载进度,在下载对应的文件时,还可以包括获取所述文件下载进度数据并将其显示在用户终端界面上等等一些提高人机交互性能的步骤。 [0061] Of course, in order to facilitate real-time control user download progress, when downloading a file corresponding to the file may further include obtaining the data download progress and displays it on the user terminal interface, and so a number of steps to improve the performance of the human-computer interaction.

[0062] 本实施例将相对于文件内容小很多的所有文件的属性信息传输至用户终端界面上显示,使得用户可以查看到服务器上存储的海量文件,便于用户了解云端服务器中的所有文件及其最新更新情况。 [0062] The present embodiment will be small relative to the file attribute information of the content transmission number for all files to the user interface display terminal, so that the user can view the mass storage file on the server, user aware of all file servers in the cloud and latest updates. 同时,本实施例通过缓存区的建立,对于某些已经被下载到本地作为缓存的文件,用户点击使用时无需等待下载,体验会更好。 Meanwhile, the present embodiment through the establishment of buffer zones, for some, as has already been downloaded to the local cache file, the user clicks using without waiting to download, experience will be better. 同时,当用户离开网络环境时,对这些已经在本地存在缓存的文件,也能进行查看。 Meanwhile, when the user leaves the network environment, these files already exist in the local cache, it can be viewed.

[0063] 因此,本实施例在本地用户终端有限的存储空间条件限制下,不仅可以查看到服务器上存储的海量文件,而且还通过缓存区的建立最大程度上满足了用户快速查看的需要,进而提升了本实施例的用户体验效果。 [0063] Accordingly, in this embodiment, the local user terminals with limited memory constraints space, not only can view the massive file stored on the server, but also by maximizing the establishment of buffer zones on to meet the needs of the user to quickly view, and then enhance the user experience of the present embodiment.

[0064] 实施例2 [0064] Example 2

[0065] 如图4所示,本实施例公开了一种网盘的缓存同步方法,除了包括实施例1公开的方法步骤外,本实施例与实施例1的不同在于,为了进一步方便用户查看文件,在缓存区中查找到所述文件或者下载对应的文件之后,在打开所述文件以供用户查看时,本实施例在实施例1的基础上增加了以下步骤: [0065] As shown in FIG. 4, the present embodiment discloses a method of cache synchronization network disk, in addition to including the method steps disclosed in Example 1 embodiment, the embodiment of the present embodiment differs from Embodiment 1 in that embodiment, in order to further facilitate the user to view file, then looks up the cache area to the file or the file corresponding to the download when the file is opened for the user to view, the present embodiment adds the following steps on the basis of Example 1:

[0066] Step51 :获取所述文件的文件格式,该文件格式包括文档格式(doc、xls、ppt、txt等)、图片格式(jpg、png、bmp、psd、ai等)等等; [0066] Step51: acquiring a file format of the file, the file format comprises a format document (doc, xls, ppt, txt, etc.), image format (jpg, png, bmp, psd, ai, etc.) and the like;

[0067] Step52:根据所述文件格式在系统中查找是否存在与其对应的关联程序,所谓的关联程序就是用来编辑和查看该文件的程序;比如后缀为doc的格式文件,其关联程序就是word ;又比如后缀为xls的格式文件,其相关程序就是Excle ; [0067] Step52: according to the file format to find whether there is a corresponding associated program in the system, a so-called associated program is used to edit and view the program file; suffix such as the doc format, which is associated program word ; another example suffix xls file format, which is the relevant procedures Excle;

[0068] Step53A :若存在,则调用所述关联程序打开该文件; [0068] Step53A: If present, the associated program call to open the file;

[0069] St印53B :如不存在,则将预设的提示信息发送至用户终端界面显示,比如:系统不存在相应的关联程序,无法打开,推荐查看软件是什么,下载地址等等。 [0069] St India 53B: If not exist, then the default prompt information to the user interface display terminal, such as: system corresponding association does not exist, can not be opened, to see what the recommended software, download the address and so on.

[0070] 如图5所示,本实施例也公开了一种与本实施例方法对应的系统,除了实施例1公开系统包括的模块外,本实施例还增加了一个文件格式匹配模块6,用于在打开所述文件以供用户查看时,获取所述文件的文件格式,根据所述文件格式在系统中查找是否存在与其对应的关联程序;若存在,则调用所述关联程序打开该文件;如不存在,则将预设的提示信息发送至用户界面显示。 [0070] 5, the present embodiment also discloses a system and method of the present embodiment corresponding to the embodiment, in addition to the module disclosed in Example 1 of the embodiment comprises a system, the present embodiment also adds a file format matching module 6, when opening the file is used for the user to view, obtain the file format of the file, to find whether there is a corresponding associated program in the system according to the file format; if present, the associated program is called to open the file ; such does not exist, a preset prompt information to the user interface display.

[0071] 实施例3: [0071] Example 3:

[0072] 如图6所示,本实施例公开了一种网盘的缓存同步方法,除了包括实施例1公开的方法步骤外,本实施例与实施例1的不同在于:为了确保用户能够查看到最新版本的文件,在根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件之后,且在直接打开文件以供用户查看之前,即是在Step3和Step4A之间,还包括以下步骤: [0072] shown in Figure 6, the present embodiment discloses a method of cache synchronization network disk, comprising in addition to the method disclosed in Example 1 Step embodiment, the present embodiment differs from that of Embodiment Example 1: To ensure that the user is able to view the latest version of the file, after the file to find whether there is a corresponding area in the file cache according to the view command, and the file is opened directly before for the user to view, and that is between Step3 step4a, further comprising the following steps:

[0073] Step5:将所述文件的版本信息上传至云端服务器中判断所述文件是否为最新版本;若是,则执行St印4A步骤;若否,则执行St印6步骤;[0074] Step6 :从云端服务器中下载该文件的最新版本至所述文件缓存区中。 [0073] Step5: version information of the file is uploaded to the cloud server determines whether the latest version of the file; if yes, execute step St printing 4A; if not, step 6 is performed St printing; [0074] Step6: Download the file from the cloud server to the latest version of the file buffer.

[0075] 如图7所示,本实施例也公开了一种与本实施例方法对应的系统,除了实施例1公开系统包括的模块外,本实施例还增加了一个文件更新模块7,用于在所述文件查找模块根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件之后,且在所述文件查看模块直接打开文件以供用户查看之前,将所述文件的版本信息上传至云端服务器中判断所述文件是否为最新版本;若是,则执行所述文件查看模块;若否,则从云端服务器中下载该文件的最新版本至所述文件缓存区中。 [0075] As shown in FIG 7, the present embodiment also discloses an embodiment of the present system corresponding to the method embodiments, in addition to the module disclosed in Example 1 of the embodiment comprises a system, the present embodiment also adds a file update module 7, with after the module in a lookup file search whether there is a corresponding file in the file cache according to the view command, and directly open files in the file before viewing module for the user to view the version of the file information is uploaded to the cloud server to determine whether the file is the latest version; if yes, execute the file viewing module; if not, from the cloud server to download the latest version of that file to the file buffer.

[0076] 以上详细描述了本发明的较佳具体实施例,应当理解,本领域的普通技术无需创造性劳动就可以根据本发明的构思做出诸多修改和变化。 [0076] The above detailed description of particular preferred embodiments of the present invention, it should be understood that the ordinary skill in the art without creative labor can make many modifications and variations of the inventive concept. 因此,凡本技术领域中技术人员依本发明构思在现有技术基础上通过逻辑分析、推理或者根据有限的实验可以得到的技术方案,均应该在由本权利要求书所确定的保护范围之中。 Therefore, any person skilled in the art under this prior art the inventive concept on the basis of logical analysis, reasoning or limited experiments according to the technical solution can be obtained, are to be within the scope of the present claims in determined.

Claims (10)

1. 一种网盘的缓存同步方法,其特征在于包括以下步骤: 根据用户指令或者预设规则从云端服务器中下载部分或者全部文件至用户终端中预设的文件缓存区; 获取云端服务器中存储的各个文件的属性信息,并将所有文件的属性信息传输至用户终端界面上显示; 接收用户对用户终端界面上显示的各个文件的查看指令,根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件; 若已经存在,则直接打开文件以供用户查看; 若不存在,则根据所述文件的属性信息从云端服务器中下载对应的文件至缓存区,并打开文件以供用户查看。 CLAIMS 1. A method of synchronizing network disk cache, comprising the steps of: downloading part or all of the file to the user terminal preset file from the cache server in the cloud according to a user instruction or a predetermined rule; obtaining cloud storage server attribute information for each file, and the attribute information to the transmission of all files on the user interface display terminal; view command file receiving respective user interface displayed on the user terminal, searching the file cache according to the viewing instruction whether the corresponding file exists; if already exists, the file is opened for the user to directly view; if not, the cloud is downloaded from the server according to the attribute information of the file corresponding to the file cache, and for the user to open the file View.
2.根据权利要求1所述的网盘的缓存同步方法,其特征在于,在根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件之后,且在直接打开文件以供用户查看之前,还包括以下步骤: 将所述文件的版本信息上传至云端服务器中判断所述文件是否为最新版本; 若是,则执行所述直接打开文件以供用户查看的步骤; 若否,则从云端服务器中下载该文件的最新版本至所述文件缓存区中。 The network disk cache synchronization method according to claim 1, wherein, after find whether there is a corresponding file in the file cache according to the view command, and open the file for the user to directly before looking further comprising the following steps: Upload the file version information to the cloud server to determine whether the file is the latest version; if so, perform the steps directly open files for users to view; if not, from the cloud server to download the latest version of the file to the file buffer.
3.根据权利要求1所述的网盘的缓存同步方法,其特征在于: 所述文件缓存区的大小为预设大小或者根据用户指令设置大小,当缓存区中的存储的文件达到所述大小阈值后,则根据预设的规则删除其他文件以存储新文件。 The cache synchronization method according to claim 1 network disk, wherein: the size of the file cache is a preset size, or the size of the set according to user instructions, when stored in the cache file reaches the size after the threshold value, delete other files according to preset rules to store new files.
4.根据权利要求1所述的网盘的缓存同步方法,其特征在于,在打开所述文件以供用户查看时,包括以下步骤: 获取所述文件的文件格式; 根据所述文件格式在系统中查找是否存在与其对应的关联程序; 若存在,则调用所述关联程序打开该文件; 如不存在,则将预设的提示信息发送至用户界面显示。 The network disk cache synchronization method according to claim 1, wherein, when the file is opened for the user to view, comprising the steps of: acquiring a file format of the file; in a system according to the file format find whether there is a related program corresponding thereto; if present, the associated program is called to open the file; if not present, preset prompt information to the user interface display.
5.根据权利要求1至4中任一项所述的网盘的缓存同步方法,其特征在于: 所述属性信息在用户终端上的具体显示方式为列表显示方式。 Cache synchronization method according to any one of claim 4-1 mesh disc as claimed in claim, wherein: the attribute information displayed on a specific user terminal for the list display.
6. 一种网盘的缓存同步系统,其特征在于包括以下模块: 缓存文件下载模块,用于根据用户指令或者预设规则从云端服务器中下载部分或者全部文件至用户终端中预设的文件缓存区; 文件属性下载模块,用于获取云端服务器中存储的各个文件的属性信息,并将所有文件的属性信息传输至用户终端界面上显示; 文件查找模块,用于接收用户对用户终端界面上显示的各个文件的查看指令,根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件;若存在,则执行文件查看模块;若不存在,则执行后续文件下载模块; 文件查看模块,用于直接打开文件以供用户查看; 后续文件下载模块,用于根据所述文件的属性信息从云端服务器中下载对应的文件至缓存区,并打开文件以供用户查看。 A network disk cache synchronization system, characterized by comprising the following modules: the cache file downloading module configured to download some or all of the file to the user terminal preset file cache servers from the cloud according to a user instruction or a preset rule region; file attributes downloading module, configured to acquire attribute information of each file stored in the cloud server, and transmitting the attribute information to the files of all the user interface display terminal; file search module for receiving a user interface displayed on the user terminal See each instruction file, according to the find command to view the file cache area corresponding to the file already exists; if present, file viewing module is performed; if not, the subsequent file download module is executed; file viewing module for direct view for the user to open the file; subsequent file downloading module, according to the file attribute information of the file from the cloud server to download the corresponding buffer, and open the file for the user to view.
7.根据权利要求6所述的网盘的缓存同步系统,其特征在于:该系统还包括文件更新模块,用于在所述文件查找模块根据所述查看指令在所述文件缓存区中查找是否已经存在对应的文件之后,且在所述文件查看模块直接打开文件以供用户查看之前,将所述文件的版本信息上传至云端服务器中判断所述文件是否为最新版本;若是,则执行所述文件查看模块;若否,则从云端服务器中下载该文件的最新版本至所述文件缓存区中。 The network disk cache synchronization system according to claim 6, wherein: the system further comprises a file update module configured to find the file in the module according to the instruction looks to see whether the file cache area after the corresponding file already exists, and open the file for viewing module directly before the user to view files, the version information of the upload file to the cloud server determines whether the latest version of the file; if yes, performing the file Viewer module; if not, from the cloud server to download the latest version of that file to the file buffer.
8.根据权利要求6所述的网盘的缓存同步系统,其特征在于: 所述文件缓存区的大小为预设大小或者根据用户指令设置大小,当缓存区中的存储的文件达到所述大小阈值后,则根据预设的规则删除其他文件以存储新文件。 8. The network disk cache synchronization system according to claim 6, wherein: the size of the file cache is a preset size, or the size of the set according to user instructions, when stored in the cache file reaches the size after the threshold value, delete other files according to preset rules to store new files.
9.根据权利要求6所述的网盘的缓存同步系统,其特征在于: 该系统还包括文件格式匹配模块,用于在打开所述文件以供用户查看时,获取所述文件的文件格式,根据所述文件格式在系统中查找是否存在与其对应的关联程序;若存在,则调用所述关联程序打开该文件;如不存在,则将预设的提示信息发送至用户界面显示。 9. The network disk cache synchronization system according to claim 6, wherein: the system further includes a file format matching module, configured to, when opening the file for the user to view, obtain the file format of the file, according to the file format to find whether there is in the system related program corresponding thereto; if present, the associated program is called to open the file; if not present, preset prompt information to the user interface display.
10.根据权利要求6至9中任一项所述的网盘的缓存同步系统,其特征在于: 所述属性信息在用户终端上的具体显示方式为列表显示方式。 10. The network disk cache synchronization system 6 to 9 according to any one of the preceding claims, wherein: the attribute information displayed on a specific user terminal for the list display.
CN2012105681861A 2012-12-24 2012-12-24 Network disk cache synchronizing method and system CN103064637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105681861A CN103064637A (en) 2012-12-24 2012-12-24 Network disk cache synchronizing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105681861A CN103064637A (en) 2012-12-24 2012-12-24 Network disk cache synchronizing method and system

Publications (1)

Publication Number Publication Date
CN103064637A true CN103064637A (en) 2013-04-24

Family

ID=48107281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105681861A CN103064637A (en) 2012-12-24 2012-12-24 Network disk cache synchronizing method and system

Country Status (1)

Country Link
CN (1) CN103064637A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103474080A (en) * 2013-09-02 2013-12-25 百度在线网络技术(北京)有限公司 Processing method, device and system of audio data based on code rate switching
WO2014176744A1 (en) * 2013-04-28 2014-11-06 Tencent Technology (Shenzhen) Company Limited An information collection, storage, and sharing platform
GB2516347A (en) * 2013-05-10 2015-01-21 Appsense Ltd Systems, methods and media for minimizing data downloads
CN104408048A (en) * 2014-10-27 2015-03-11 清华大学 Method and device for synchronization of buffered cloud storage data
CN104427401A (en) * 2013-08-30 2015-03-18 联想(北京)有限公司 Method for acquiring data and electronic equipment
CN104601707A (en) * 2015-01-21 2015-05-06 苏州蓝海彤翔系统科技有限公司 Network disk data processing method and device
CN106250061A (en) * 2016-08-12 2016-12-21 乐视控股(北京)有限公司 File downloading processing method and apparatus
TWI576703B (en) * 2015-03-27 2017-04-01 Acer Inc Electronic apparatus and method for temporarily storing data thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020191692A1 (en) * 2001-02-13 2002-12-19 Realtime Data, Llc Bandwidth sensitive data compression and decompression
CN101547219A (en) * 2009-05-05 2009-09-30 淼 汤 System and method for data storage
CN101719936A (en) * 2009-12-09 2010-06-02 成都市华为赛门铁克科技有限公司 Method, device and cache system for providing file downloading service
CN102035881A (en) * 2010-11-19 2011-04-27 清华大学 Data caching method of cloud storage system
CN102306189A (en) * 2011-08-31 2012-01-04 珠海金山办公软件有限公司 Client and method for client to show status of network disk file
CN102801786A (en) * 2012-07-05 2012-11-28 北京小米科技有限责任公司 Method, device and system for transmitting file

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020191692A1 (en) * 2001-02-13 2002-12-19 Realtime Data, Llc Bandwidth sensitive data compression and decompression
CN101547219A (en) * 2009-05-05 2009-09-30 淼 汤 System and method for data storage
CN101719936A (en) * 2009-12-09 2010-06-02 成都市华为赛门铁克科技有限公司 Method, device and cache system for providing file downloading service
CN102035881A (en) * 2010-11-19 2011-04-27 清华大学 Data caching method of cloud storage system
CN102306189A (en) * 2011-08-31 2012-01-04 珠海金山办公软件有限公司 Client and method for client to show status of network disk file
CN102801786A (en) * 2012-07-05 2012-11-28 北京小米科技有限责任公司 Method, device and system for transmitting file

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9276883B2 (en) 2013-04-28 2016-03-01 Tencent Technology (Shenzhen) Company Limited Information collection, storage, and sharing platform
WO2014176744A1 (en) * 2013-04-28 2014-11-06 Tencent Technology (Shenzhen) Company Limited An information collection, storage, and sharing platform
GB2516347A (en) * 2013-05-10 2015-01-21 Appsense Ltd Systems, methods and media for minimizing data downloads
CN104427401A (en) * 2013-08-30 2015-03-18 联想(北京)有限公司 Method for acquiring data and electronic equipment
CN104427401B (en) * 2013-08-30 2018-07-06 联想(北京)有限公司 The method of obtaining data and the electronic device
CN103474080A (en) * 2013-09-02 2013-12-25 百度在线网络技术(北京)有限公司 Processing method, device and system of audio data based on code rate switching
CN104408048A (en) * 2014-10-27 2015-03-11 清华大学 Method and device for synchronization of buffered cloud storage data
CN104408048B (en) * 2014-10-27 2017-06-13 清华大学 Cloud as a buffer for storing data synchronization method and apparatus
CN104601707A (en) * 2015-01-21 2015-05-06 苏州蓝海彤翔系统科技有限公司 Network disk data processing method and device
TWI576703B (en) * 2015-03-27 2017-04-01 Acer Inc Electronic apparatus and method for temporarily storing data thereof
US9836468B2 (en) 2015-03-27 2017-12-05 Acer Incorporated Electronic apparatus and method for temporarily storing data thereof
CN106250061A (en) * 2016-08-12 2016-12-21 乐视控股(北京)有限公司 File downloading processing method and apparatus

Similar Documents

Publication Publication Date Title
AU2012300408C1 (en) Remote browsing session management
US8213332B2 (en) Peer-to-peer data synchronization architecture
US8082319B2 (en) Publishing and subscribing to digital image feeds
US8849802B2 (en) Historical browsing session management
US9009219B2 (en) Native viewer use for service results from a remote desktop
US9253284B2 (en) Historical browsing session management
US20150100631A1 (en) Proactive transmission of network content
US8849957B1 (en) Installable web applications
US9594759B2 (en) Backup and archival of selected items as a composite object
US9195750B2 (en) Remote browsing and searching
US20130080577A1 (en) Historical browsing session management
US20110252071A1 (en) Cloud Based Operating and Virtual File System
JP6220338B2 (en) Fault-tolerant external application server
US9367530B2 (en) Distributed document co-authoring and processing
US9298747B2 (en) Deployable, consistent, and extensible computing environment platform
US8892679B1 (en) Mobile device, methods and user interfaces thereof in a mobile device platform featuring multifunctional access and engagement in a collaborative environment provided by a cloud-based platform
US9037975B1 (en) Zooming interaction tracking and popularity determination
US20190155789A1 (en) Method and apparatus for synchronization of items with read-only permissions in a cloud-based environment
US20130226876A1 (en) Synchronizing local clients with a cloud-based data storage system
US9213775B2 (en) Domain-specific browser tab creation and management
US7664870B2 (en) Method and system for providing users a lower fidelity alternative until a higher fidelity experience is available
US9596303B2 (en) Systems and methods for establishing and maintaining virtual computing clouds
US20090150569A1 (en) Synchronization system and method for mobile devices
RU2666302C2 (en) Interfaces for application programming for content management
JP2019012529A (en) Document management and collaboration system

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C12 Rejection of a patent application after its publication