WO2019028987A1 - 数据处理方法、电子设备及计算机可读存储介质 - Google Patents

数据处理方法、电子设备及计算机可读存储介质 Download PDF

Info

Publication number
WO2019028987A1
WO2019028987A1 PCT/CN2017/104533 CN2017104533W WO2019028987A1 WO 2019028987 A1 WO2019028987 A1 WO 2019028987A1 CN 2017104533 W CN2017104533 W CN 2017104533W WO 2019028987 A1 WO2019028987 A1 WO 2019028987A1
Authority
WO
WIPO (PCT)
Prior art keywords
target data
score
preset
determining
cache
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.)
Ceased
Application number
PCT/CN2017/104533
Other languages
English (en)
French (fr)
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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Publication of WO2019028987A1 publication Critical patent/WO2019028987A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operations

Definitions

  • the present application relates to the field of data processing technologies, and in particular, to a data processing method, an electronic device, and a computer readable storage medium.
  • the traditional real data analysis system will cache some data (intermediate data or result data) in memory for later use, avoiding reading the disk, thereby increasing the speed, but the system crashes. Or power outage can result in loss of memory data.
  • the present application provides a data processing method, an electronic device, and a computer readable storage medium for saving system resources.
  • the first aspect of the present application provides a data processing method, including:
  • a second aspect of the present application provides an electronic device, where the electronic device includes a memory, a processor, and computer readable instructions stored on the memory and operable on the processor, the processor executing the computer readable
  • the instruction ⁇ implements the following steps:
  • the third aspect of the present application provides an electronic device, including:
  • a monitoring module configured to monitor whether there is target data in the cache, where the target data is data that arrives at a preset valid time between the time slots in the cache;
  • a determining module configured to: when the monitoring module monitors that the target data exists in the cache, determine whether the target data meets a preset persistence condition;
  • a persistence module configured to: when the determining module determines that the target data meets a preset persistence condition, persisting the target data;
  • the non-persistence module is configured to perform a preset non-persistent operation on the target data when the determining module determines that the target data does not satisfy the foregoing persistence condition.
  • a fourth aspect of the present application provides a computer readable storage medium storing computer readable instructions, the computer readable instructions being executed by at least one processor, implementing the following steps:
  • FIG. 1 is a schematic flow chart of an embodiment of a data processing readable instruction method provided by the present application
  • FIG. 2 is a schematic structural diagram of an embodiment of an electronic device provided by the present application.
  • FIG. 3 is a schematic structural diagram of functional modules of a data processing readable instruction provided by the present application.
  • a data processing method is described in the embodiment of the present application.
  • the data processing method in the embodiment of the present application includes:
  • Step 101 Listening to the presence or absence of target data in the cache;
  • the buffer is a data exchange buffer (also referred to as a Cache in some embodiments), and the cache is a high-speed data exchange memory. Since the cache runs much faster than the memory, the role of the cache is to help the hardware run faster. Therefore, in order to pursue the practicality of data analysis, some data (such as intermediate data or result data) is usually stored in the cache. For later use, to improve data reading speed.
  • the target data is data that arrives at a preset valid time between the time slots in the cache.
  • step 101 it is known whether the target data exists in the cache by monitoring the time of each data in the cache in the cache and the effective time of each data.
  • a corresponding valid time interval is set for each data stored in the cache, that is, different data corresponding to each valid time interval, and valid time of different data may not be the same.
  • the valid time of the data A stored in the cache is 10 minutes
  • the effective time of the data B stored in the cache is 15 minutes.
  • a unified valid time can be set for the data stored in the cache, that is, the effective time of the data stored in the cache is the same.
  • the effective time to set the data stored in the cache is 20 minutes. There is no limit here.
  • Step 102 If it is detected that the target data exists in the cache, determine whether the target data meets a preset persistence condition;
  • step 102 when a certain data arrives at a preset valid time in the buffer, it is further determined whether the data (ie, the target data) satisfies a preset persistence condition. If it is determined that the target data satisfies the persistence condition, the process proceeds to step 103. If it is determined that the target data does not satisfy the persistence condition, the process proceeds to step 104.
  • the number of times of querying and/or the number of updates of each data in the cache may be counted.
  • the determining whether the target data meets the preset persistence condition may include: determining a score of the target data according to the number of times of the query in the cache and/or the number of times of being updated, if If the score reaches a preset threshold, it is determined that the target data satisfies a preset persistence condition. If the score does not reach the preset threshold, it is determined that the target data does not satisfy the preset persistence condition.
  • the foregoing determining whether the target data meets the preset persistence condition may include any one of the following methods:
  • Method 1 determining the first of the target data based on the number of times the target data is queried in the cache a score, wherein the first score is positively correlated with the number of times of the query, that is, the more the number of queries, the larger the first score.
  • the number of times of the query is divided into multiple query intervals in advance, and each query interval corresponds to a corresponding first score, and the query interval in which the number of times of the query in the cache is located is The first score of the above target data can be determined.
  • the corresponding relationship between the number of times of the query and the first score may be set in advance, and the corresponding relationship between the number of times of the query in the cache and the preset number of times of the query and the first score is based on the target data.
  • the first score of the above target data can be determined. Further, if the first score reaches a preset first threshold, determining that the target data meets a preset persistence condition, and then proceeds to step 103, and if the first score does not reach the first threshold, determining The above target data does not satisfy the above persistence condition, and the process proceeds to step 104.
  • the second score of the target data is determined based on the number of times the target data is updated in the cache, wherein the second score is negatively related to the updated number of times, that is, the more the number of updates is More, the second score is larger.
  • the number of times of being updated is divided into multiple update intervals in advance, and each update interval corresponds to a corresponding second score, and the target may be determined based on an update interval in which the target data is updated in the cache. The second score of the data.
  • the corresponding relationship between the updated number of times and the second score may be set in advance, and then based on the updated number of times of the target data in the cache and the corresponding relationship between the preset number of updated times and the second score, A second score of the above target data is determined. Further, if the second score reaches a preset second threshold, determining that the target data meets a preset persistence condition, and then proceeds to step 103, and if the second score does not reach the second threshold, determining The above target data does not satisfy the above persistence condition, and the process proceeds to step 104.
  • Method 3 determining a first score of the target data based on the number of times the target data is queried in the cache, where the first score is positively correlated with the number of times of the query; based on the target data Determining, in the cache, the second score of the target data, wherein the second score is negatively correlated with the updated number of times; and weighting and averaging the first score and the second score Obtaining a third score; if the third score reaches a preset third threshold, determining that the target data meets a preset persistence condition; if the third score does not reach the third threshold, determining The above target data does not satisfy the above persistence conditions.
  • how to refer to the description of the number of times of the target data in the cache may refer to the description in the first method
  • how to update the number of times the target data is updated in the cache may refer to the description in the second method, and details are not described herein again.
  • other persistence conditions may be preset to determine whether the data meets the preset persistence condition by other means, which is not limited herein.
  • Step 103 Perform persistence on the target data.
  • persistence refers to a process of saving data in a cache to a storage device (for example, a disk) that can be permanently saved.
  • a storage device for example, a disk
  • the specific process of persistence can be implemented by referring to the prior art, and will not be described here.
  • Step 104 Perform a preset non-persistent operation on the target data
  • the target data when it is determined that the target data does not satisfy the foregoing persistence condition, the target data is not persisted, and then a preset non-persistent operation is performed on the target data.
  • a corresponding effective time may be set for each data stored in the cache, and the non-persistent operation is to extend the effective time of the target data.
  • Step 104 may include: extending the effective time of the target data according to the preset length. For example, if the preset length is 5 minutes, and the effective time of the target data is 20 minutes, when the step 102 determines that the target data does not satisfy the preset persistence condition, the effective time of the target data may be extended. , making the effective time of the target data become 25 minutes.
  • step 101 in the event that the target data arrives at its active time in the cache after 5 minutes, the device will perform step 102 and subsequent steps again for the target data.
  • the foregoing non-persistent operation may also be other operations, and may be regarded as a non-persistent operation as long as it is not for persistence of data.
  • the data processing method in the embodiment of the present application may be implemented by a data processing device, and the data processing device may be integrated into an electronic device such as a mobile phone, a server, a personal computer, or the like, which is not limited herein.
  • the target data is persisted. Since the target data is the data that arrives at the preset effective time between the buffers in the cache, the control of persistence of the target data by combining the effects and the persistence conditions can avoid persistently all the cached data due to periodicity. The waste of system resources caused by the simplification saves system resources to a certain extent.
  • FIG. 2 is a schematic diagram showing an operating environment of computer readable instructions (for example, data processing readable instructions) related to the data processing method provided by the embodiment of the present application. For the convenience of description, only the parts related to the embodiments of the present application are shown.
  • the data processing readable instructions are installed and run in an electronic device.
  • the electronic device may include, but is not limited to, one or more memories 21 (only one is shown), one or more processors 22 (only one is shown), and the above-described memory 21 and processor 22 are connected by a bus 23.
  • Figure 2 shows only the electronic device with components 21-23, but it should be understood that not all illustrated components may be implemented, and more components (e.g., displays, etc.) or fewer components may be implemented instead.
  • the memory 21 may be an internal storage unit of an electronic device, such as a hard disk or memory of the electronic device, in some embodiments.
  • the memory 21 may also be an external storage device of the electronic device in other embodiments, such as a plug-in hard disk equipped with an electronic device, a smart memory card (SMC), and a Secure Digital (SD) card. Flash card (Flash
  • the memory 21 may also include both an internal storage unit of the electronic device and an external storage device.
  • the memory 21 is for storing application software and various types of data installed in the electronic device, such as readable instruction codes of the above-described data processing readable instructions.
  • the memory 21 can also be used to temporarily store data that has been output or is about to be output.
  • the processor 22 may be a central processing unit (CPU), a microprocessor or other data processing chip for running readable instruction code or processing data stored in the memory 21, in some embodiments, For example, the above data processing readable instructions and the like are executed.
  • CPU central processing unit
  • microprocessor or other data processing chip for running readable instruction code or processing data stored in the memory 21, in some embodiments, For example, the above data processing readable instructions and the like are executed.
  • FIG. 3 is a functional block diagram of a data processing readable instruction corresponding to the data processing method according to Embodiment 1 according to an embodiment of the present application.
  • the data processing readable instructions may be divided into one or more modules, and the one or more modules are stored in the memory 21 and processed by one or more processors (this embodiment is processed)
  • the device 22) is executed to complete the application.
  • the above data processing readable instructions may be divided into a listening module 31, a determining module 32, a persistence module 33, and a non-persistent module 34.
  • a module as referred to in the present application refers to a series of computer readable instruction instructions that are capable of performing a particular function, and are more suitable than the readable instructions to describe the execution of the data processing readable instructions described above in the electronic device.
  • the following description will specifically describe the functions of the listening module 31, the judging module 32, the persistence module 33, and the non-persistent module 34.
  • the monitoring module 31 is configured to monitor whether there is target data in the cache, where the target data is data that arrives at a preset valid time between the time slots in the cache;
  • the determining module 32 is configured to: when the monitoring module 31 monitors that the target data exists in the cache, determine whether the target data meets a preset persistence condition;
  • the persistence module 33 is configured to: when the determining module 32 determines that the target data meets a preset persistence condition, and persists the target data;
  • the non-persistence module 34 is configured to perform a preset non-persistent operation on the target data when the determining module 32 determines that the target data does not satisfy the foregoing persistence condition.
  • the determining module 32 is specifically configured to: determine, according to the number of times the target data is queried in the cache, a first score of the target data, where the first score Positively correlating with the number of times of querying; if the first score reaches a preset first threshold, determining that the target data meets a preset persistence condition; if the first score does not reach the stated value The first threshold determines that the target data does not satisfy the persistence condition.
  • the determining module 32 is specifically configured to: determine, according to the updated number of times the target data is in the cache, a second score of the target data, where the second score Negotiating with the updated number of times; if the second score reaches a preset second threshold, determining that the target data meets a preset persistence condition; if the second score does not reach the first The second threshold determines that the target data does not satisfy the persistence condition.
  • the determining module 32 is specifically configured to: determine a first score of the target data based on the number of times the target data is queried in the cache, where the first score The value is positively correlated with the number of times of the query; determining a second score of the target data based on the number of times the target data is updated in the cache, wherein the second score and the updated number of times are negative Correlating; the first score and the second score are weighted and averaged to obtain a third score; if the third score reaches a preset third threshold, determining that the target data is satisfied a preset persistence condition; if the third score does not reach the third threshold, determining that the target data does not satisfy the persistence condition.
  • the non-persistence module 34 is specifically configured to: when the determining module 32 determines that the target data does not satisfy the foregoing persistence condition, extend the effective time of the target data according to a preset length.
  • the target data is persisted. Since the target data is the data that arrives at the preset effective time between the buffers in the cache, the control of persistence of the target data by combining the effects and the persistence conditions can avoid persistently all the cached data due to periodicity. The waste of system resources caused by the simplification saves system resources to a certain extent.
  • each functional unit and module in the foregoing system may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware.
  • Formal implementation can also be implemented in the form of software functional units.
  • the specific names of the functional units and modules are only for the purpose of distinguishing from each other, and are not intended to limit the scope of protection of the present application.
  • the disclosed apparatus and method may be implemented in other manners.
  • the system embodiment described above is merely illustrative.
  • the division of the above module or unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined. Either can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical sexual, mechanical or other form.
  • the units described above as separate components may or may not be physically distributed, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple networks. On the unit. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules described above if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • the medium includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the above steps of the various embodiments of the embodiments of the present application.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read-only memory (R 0M, Read-Only Memory), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store readable instructions.
  • the medium of the code includes: a USB flash drive, a removable hard disk, a read-only memory (R 0M, Read-Only Memory), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store readable instructions.
  • the medium of the code includes: a USB flash drive, a removable hard disk, a read-only memory (R 0M, Read-Only Memory), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store readable instructions.
  • the medium of the code includes: a USB flash drive, a removable hard disk, a read-only memory (R 0M, Read-Only Memory), a random access memory (RAM), a magnetic disk or an optical

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种数据处理方法、电子设备及计算机可读存储介质,能够有效节省系统资源。,其中,上述数据处理方法包括:监听缓存中是否存在目标数据(S101),其中,所述目标数据为在缓存中的时间到达预设的有效时间的数据;若监听到所述缓存中存在目标数据,则判断所述目标数据是否满足预设的持久化条件(S102);若所述目标数据满足预设的持久化条件,则对所述目标数据进行持久化(S103);若所述目标数据不满足所述持久化条件,则对所述目标数据执行预设的非持久化操作(S104)。

Description

[0001] 本申请要求于 2017年 08月 10日提交中国专利局、 申请号为 201710680234.9、 申 请名称为"数据处理方法、 电子设备及计算机可读存储介质"的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。
技术领域
[0002] 本申请涉及数据处理技术领域, 具体涉及一种数据处理方法、 电子设备及计算 机可读存储介质。
背景技术
[0003] 为了追求数据分析的实吋性, 传统实吋数据分析系统会将一些数据 (中间数据 或结果数据) 缓存在内存中以备后续使用, 避免读取磁盘, 进而提升速度, 但 系统崩溃或断电会导致内存数据丢失。
[0004] 虽然目前存在周期性将缓存数据进行持久化的方案, 但是, 持久化的过程需要 占用一定的系统资源, 过度的持久化会导致不必要的系统资源浪费。
技术问题
[0005] 本申请提供一种数据处理方法、 电子设备及计算机可读存储介质, 用以节省系 统资源。
问题的解决方案
技术解决方案
[0006] 本申请第一方面提供一种数据处理方法, 其特征在于, 包括:
[0007] 监听缓存中是否存在目标数据, 其中, 所述目标数据为在缓存中的吋间到达预 设的有效吋间的数据;
[0008] 若监听到所述缓存中存在目标数据, 则判断所述目标数据是否满足预设的持久 化条件;
[0009] 若所述目标数据满足预设的持久化条件, 则对所述目标数据进行持久化; [0010] 若所述目标数据不满足所述持久化条件, 则对所述目标数据执行预设的非持久 化操作。 [0011] 本申请第二方面提供一种电子设备, 上述电子设备包括存储器、 处理器及存储 在上述存储器上并可在上述处理器上运行的计算机可读指令, 上述处理器执行 上述计算机可读指令吋实现如下步骤:
[0012] 监听缓存中是否存在目标数据, 其中, 所述目标数据为在缓存中的吋间到达预 设的有效吋间的数据;
[0013] 若监听到所述缓存中存在目标数据, 则判断所述目标数据是否满足预设的持久 化条件;
[0014] 若所述目标数据满足预设的持久化条件, 则对所述目标数据进行持久化; [0015] 若所述目标数据不满足所述持久化条件, 则对所述目标数据执行预设的非持久 化操作。
[0016] 本申请第三方面提供一种电子设备, 包括:
[0017] 监听模块, 用于监听缓存中是否存在目标数据, 其中, 所述目标数据为在缓存 中的吋间到达预设的有效吋间的数据;
[0018] 判断模块, 用于当所述监听模块监听到上述缓存中存在目标数据吋, 判断上述 目标数据是否满足预设的持久化条件;
[0019] 持久化模块, 用于当所述判断模块判断出上述目标数据满足预设的持久化条件 吋, 对上述目标数据进行持久化;
[0020] 非持久化模块, 用于当所述判断模块判断出上述目标数据不满足上述持久化条 件吋, 对上述目标数据执行预设的非持久化操作。
[0021] 本申请第四方面提供一种计算机可读存储介质, 上述计算机可读存储介质存储 有计算机可读指令, 上述计算机可读指令被至少一个处理器执行吋, 实现如下 步骤:
[0022] 监听缓存中是否存在目标数据, 其中, 所述目标数据为在缓存中的吋间到达预 设的有效吋间的数据;
[0023] 若监听到所述缓存中存在目标数据, 则判断所述目标数据是否满足预设的持久 化条件;
[0024] 若所述目标数据满足预设的持久化条件, 则对所述目标数据进行持久化; [0025] 若所述目标数据不满足所述持久化条件, 则对所述目标数据执行预设的非持久 化操作。
发明的有益效果
有益效果
[0026] 由上可见, 本申请方案中通过监听缓存中是否存在目标数据, 当存在目标数据 吋进一步判断该目标数据是否符合预设的持久化条件, 在符合预设的持久化条 件吋, 才对该目标数据进行持久化。 由于目标数据为在缓存中的吋间到达预设 的有效吋间的数据, 因此, 结合效吋间以及持久化条件对目标数据进行持久化 的控制, 能够避免因周期性对全部缓存数据进行持久化而导致的系统资源浪费 , 在一定程度上节省了系统资源。
对附图的简要说明
附图说明
[0027] 为了更清楚地说明本申请实施例或现有技术中的技术方案, 下面将对实施例或 现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的 附图仅仅是本申请的一些实施例, 对于本领域普通技术人员来讲, 在不付出创 造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
[0028] 图 1为本申请提供的数据处理可读指令方法一个实施例流程示意图;
[0029] 图 2为本申请提供的电子设备一个实施例结构示意图;
[0030] 图 3为本申请提供的数据处理可读指令的功能模块结构示意图。
[0031] 本申请的实施方式
[0032] 为使得本申请的申请目的、 特征、 优点能够更加的明显和易懂, 下面将结合本 申请实施例中的附图, 对本申请实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本申请一部分实施例, 而非全部实施例。 基于本 申请中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的 所有其他实施例, 都属于本申请保护的范围。
[0033] 实施例一
[0034] 本申请实施例对一种数据处理方法进行描述, 请参阅图 1, 本申请实施例中的 数据处理方法包括:
[0035] 步骤 101、 监听缓存中是否存在目标数据; [0036] 本申请实施例中, 缓存为数据交换的缓冲区 (在某些实施例也被称为 Cache) , 缓存是高速数据交换的存储器。 由于缓存的运行速度比内存快得多, 故缓存 的作用就是帮助硬件更快地运行, 因此, 为了追求数据分析的实吋性, 通常会 将一些数据 (例如中间数据或结果数据) 存入缓存中以备后续使用, 以提升数 据读取速度。
[0037] 本申请实施例中, 上述目标数据为在缓存中的吋间到达预设的有效吋间的数据 。 在步骤 101中, 通过实吋监听缓存中各个数据在缓存中的吋间以及各个数据的 有效吋间, 即可获知该缓存中是否存在目标数据。
[0038] 可选的, 针对存入缓存中的各个数据分别设立对应的有效吋间, 即, 不同数据 对应有各自的有效吋间, 且不同数据的有效吋间可以不全相同。 例如, 可设定 存入缓存中的数据 A的有效吋间为 10分钟, 存入缓存中的数据 B的有效吋间为 15 分钟。 当然, 本申请实施例中, 也可以针对存入缓存中的数据设立统一的有效 吋间, 即, 存入缓存中的数据的有效吋间均相同。 例如, 设定存入缓存中的数 据的有效吋间均为 20分钟。 此处不做限定。
[0039] 步骤 102、 若监听到上述缓存中存在目标数据, 则判断上述目标数据是否满足 预设的持久化条件;
[0040] 在步骤 102中, 当某个数据在缓存中的吋间到达预设的有效吋间吋, 进一步判 断该数据 (也即目标数据) 是否满足预设的持久化条件。 若判定上述目标数据 满足该持久化条件, 则进入步骤 103, 若判定上述目标数据不满足该持久化条件 , 则进入步骤 104。
[0041] 本申请实施例中, 可以统计缓存中的各个数据的被査询次数和 /或被更新次数 。 在步骤 102中, 上述判断上述目标数据是否满足预设的持久化条件可以包括: 根据上述目标数据在缓存中的被査询次数和 /或被更新次数, 确定上述目标数据 的分值, 若该分值达到预设的阈值, 则判定上述目标数据满足预设的持久化条 件, 若该分值未达到预设的阈值, 则判定上述目标数据不满足预设的持久化条 件。 具体的, 上述判断上述目标数据是否满足预设的持久化条件可以包括如下 任一方式:
[0042] 方式一: 基于上述目标数据在缓存中的被査询次数, 确定上述目标数据的第一 分值, 其中, 上述第一分值与上述被査询次数正相关, 也即, 被査询次数越多 , 第一分值越大。 可选的, 预先将被査询次数划分为多个査询区间, 每个査询 区间对应相应的第一分值, 则基于上述目标数据在缓存中的被査询次数所在的 査询区间, 即可确定上述目标数据的第一分值。 或者, 也可以预先设置被査询 次数与第一分值的对应关系曲线, 则基于上述目标数据在缓存中的被査询次数 和预设的被査询次数与第一分值的对应关系曲线, 即可确定上述目标数据的第 一分值。 进一步, 若上述第一分值达到预设的第一阈值, 则判定上述目标数据 满足预设的持久化条件, 此吋进入步骤 103, 若上述第一分值未达到上述第一阈 值, 则判定上述目标数据不满足上述持久化条件, 此吋进入步骤 104。
[0043] 方式二、 基于上述目标数据在缓存中的被更新次数, 确定上述目标数据的第二 分值, 其中, 上述第二分值与上述被更新次数负相关, 也即, 被更新次数越多 , 第二分值越大。 可选的, 预先将被更新次数划分为多个更新区间, 每个更新 区间对应相应的第二分值, 则基于上述目标数据在缓存中的被更新次数所在的 更新区间, 即可确定上述目标数据的第二分值。 或者, 也可以预先设置被更新 次数与第二分值的对应关系曲线, 则基于上述目标数据在缓存中的被更新次数 和预设的被更新次数与第二分值的对应关系曲线, 即可确定上述目标数据的第 二分值。 进一步, 若上述第二分值达到预设的第二阈值, 则判定上述目标数据 满足预设的持久化条件, 此吋进入步骤 103, 若上述第二分值未达到上述第二阈 值, 则判定上述目标数据不满足上述持久化条件, 此吋进入步骤 104。
[0044] 方式三、 基于上述目标数据在缓存中的被査询次数, 确定上述目标数据的第一 分值, 其中, 上述第一分值与所述被査询次数正相关; 基于上述目标数据在缓 存中的被更新次数, 确定上述目标数据的第二分值, 其中, 上述第二分值与上 述被更新次数负相关; 将上述第一分值和上述第二分值进行加权求平均值, 得 到第三分值; 若上述第三分值达到预设的第三阈值, 则判定上述目标数据满足 预设的持久化条件; 若上述第三分值未达到所述第三阈值, 则判定上述目标数 据不满足上述持久化条件。 具体地, 如何基于上述目标数据在缓存中的被査询 次数可以参照方式一中的描述, 而如何基于上述目标数据在缓存中的被更新次 数可以参照方式二中的描述, 此处不再赘述。 [0045] 当然, 本申请实施例中, 也可以预设其它持久化条件, 以通过其它方式判断上 述数据是否满足预设的持久化条件, 此处不做限定。
[0046] 步骤 103、 对上述目标数据进行持久化;
[0047] 需要说明的是, 上述持久化是指将缓存中的数据保存到可永久保存的存储设备 中 (例如磁盘) 的过程。 持久化的具体过程可以参照已有技术实现, 此处不再 赘述。
[0048] 步骤 104、 对上述目标数据执行预设的非持久化操作;
[0049] 本申请实施例中, 当判定上述目标数据不满足上述持久化条件吋, 不对上述目 标数据进行持久化, 此吋, 对上述目标数据执行预设的非持久化操作。
[0050] 在一种应用场景中, 可以针对存入缓存中的各个数据设置相应的有效吋间, 上 述非持久化操作为延长目标数据的有效吋间。 则步骤 104可包括: 根据预设的吋 长, 延长上述目标数据的有效吋间。 举例说明, 设预设的吋长为 5分钟, 上述目 标数据的有效吋间为 20分钟, 当步骤 102判定该目标数据不满足预设的持久化条 件吋, 可延长该目标数据的有效吋间, 使得该目标数据的有效吋间变为 25分钟 。 在步骤 101实吋监听的情况下, 5分钟后由于该目标数据在缓存中的吋间到达 其有效吋间, 此吋将会再次针对该目标数据执行如步骤 102以及后续步骤。
[0051] 当然, 本申请实施例中, 上述非持久化操作也可以为其它操作, 只要不是为对 数据进行持久化的操作都可认为属于非持久化操作。
[0052] 需要说明的是, 本申请实施例中的数据处理方法可以由数据处理装置实现, 该 数据处理装置具体可以集成在诸如手机、 服务器、 个人计算机等电子设备中, 此处不作限定。
[0053] 由上可见, 本申请实施例中通过监听缓存中是否存在目标数据, 当存在目标数 据吋进一步判断该目标数据是否符合预设的持久化条件, 在符合预设的持久化 条件吋, 才对该目标数据进行持久化。 由于目标数据为在缓存中的吋间到达预 设的有效吋间的数据, 因此, 结合效吋间以及持久化条件对目标数据进行持久 化的控制, 能够避免因周期性对全部缓存数据进行持久化而导致的系统资源浪 费, 在一定程度上节省了系统资源。
[0054] 实施例二 [0055] 对应于实施例一所述的数据处理方法, 图 2示出了本申请实施例提供的与上述 数据处理方法相关的计算机可读指令 (例如数据处理可读指令) 的运行环境示 意图, 为了便于说明, 仅示出了与本申请实施例相关的部分。
[0056] 在本申请实施例中, 上述数据处理可读指令安装并运行于电子设备中。 该电子 设备可包括但不仅限于一个或多个存储器 21 (图中仅示出一个) 、 一个或多个 处理器 22 (图中仅示出一个) , 上述存储器 21和处理器 22通过总线 23连接。 图 2 仅示出了具有组件 21-23的电子设备, 但是应理解的是, 并不要求实施所有示出 的组件, 可以替代的实施更多的组件 (例如显示器等) 或者更少的组件。
[0057] 存储器 21在一些实施例中可以是电子设备的内部存储单元, 例如该电子设备的 硬盘或内存。 存储器 21在另一些实施例中也可以是电子设备的外部存储设备, 例如电子设备上配备的插接式硬盘, 智能存储卡 (Smart Media Card, SMC) , 安全数字 (Secure Digital, SD) 卡, 闪存卡 (Flash
Card) 等。 进一步地, 存储器 21还可以既包括电子设备的内部存储单元也包括外 部存储设备。 存储器 21用于存储安装于电子设备的应用软件及各类数据, 例如 上述数据处理可读指令的可读指令代码等。 存储器 21还可以用于暂吋地存储已 经输出或者将要输出的数据。
[0058] 处理器 22在一些实施例中可以是一中央处理器 (Central Processing Unit, CPU) , 微处理器或其他数据处理芯片, 用于运行存储器 21中存储的可读指令代码或 处理数据, 例如执行上述数据处理可读指令等。
[0059] 进一步, 在图 2基础上, 请参阅图 3, 图 3为本申请实施例提供的对应于实施例 一所述的数据处理方法的数据处理可读指令的功能模块图。 在本申请实施例中 , 上述数据处理可读指令可以被分割成一个或多个模块, 上述一个或者多个模 块被存储于存储器 21中, 并由一个或多个处理器 (本实施例为处理器 22) 所执 行, 以完成本申请。 例如, 在图 3中, 上述数据处理可读指令可以被分割成监听 模块 31、 判断模块 32、 持久化模块 33和非持久化模块 34。 本申请所称的模块是 指能够完成特定功能的一系列计算机可读指令指令段, 比可读指令更适合于描 述上述数据处理可读指令在上述电子设备中的执行过程。 以下描述将具体介绍 监听模块 31、 判断模块 32、 持久化模块 33和非持久化模块 34的功能。 [0060] 监听模块 31, 用于监听缓存中是否存在目标数据, 其中, 所述目标数据为在缓 存中的吋间到达预设的有效吋间的数据;
[0061] 判断模块 32, 用于当监听模块 31监听到上述缓存中存在目标数据吋, 判断上述 目标数据是否满足预设的持久化条件;
[0062] 持久化模块 33, 用于当判断模块 32判断出上述目标数据满足预设的持久化条件 吋, 对上述目标数据进行持久化;
[0063] 非持久化模块 34, 用于当判断模块 32判断出上述目标数据不满足上述持久化条 件吋, 对上述目标数据执行预设的非持久化操作。
[0064] 在一种应用场景中, 判断模块 32具体用于: 基于所述目标数据在缓存中的被査 询次数, 确定所述目标数据的第一分值, 其中, 所述第一分值与所述被査询次 数正相关; 若所述第一分值达到预设的第一阈值, 则判定所述目标数据满足预 设的持久化条件; 若所述第一分值未达到所述第一阈值, 则判定所述目标数据 不满足所述持久化条件。
[0065] 在另一种应用场景中, 判断模块 32具体用于: 基于所述目标数据在缓存中的被 更新次数, 确定所述目标数据的第二分值, 其中, 所述第二分值与所述被更新 次数负相关; 若所述第二分值达到预设的第二阈值, 则判定所述目标数据满足 预设的持久化条件; 若所述第二分值未达到所述第二阈值, 则判定所述目标数 据不满足所述持久化条件。
[0066] 在再一种应用场景中, 判断模块 32具体用于: 基于所述目标数据在缓存中的被 査询次数, 确定所述目标数据的第一分值, 其中, 所述第一分值与所述被査询 次数正相关; 基于所述目标数据在缓存中的被更新次数, 确定所述目标数据的 第二分值, 其中, 所述第二分值与所述被更新次数负相关; 将所述第一分值和 所述第二分值进行加权求平均值, 得到第三分值; 若所述第三分值达到预设的 第三阈值, 则判定所述目标数据满足预设的持久化条件; 若所述第三分值未达 到所述第三阈值, 则判定所述目标数据不满足所述持久化条件。
[0067] 可选的, 非持久化模块 34具体用于: 当判断模块 32判断出上述目标数据不满足 上述持久化条件吋, 根据预设的吋长, 延长上述目标数据的有效吋间。
[0068] 应理解, 本申请实施例中的电子设备可以用于实现上述方法实施例中的全部技 术方案, 在本申请实施例中没有详述和提及的部分, 可以参见上述方法实施例 的描述, 此处不再赘述。
[0069] 由上可见, 本申请实施例中通过监听缓存中是否存在目标数据, 当存在目标数 据吋进一步判断该目标数据是否符合预设的持久化条件, 在符合预设的持久化 条件吋, 才对该目标数据进行持久化。 由于目标数据为在缓存中的吋间到达预 设的有效吋间的数据, 因此, 结合效吋间以及持久化条件对目标数据进行持久 化的控制, 能够避免因周期性对全部缓存数据进行持久化而导致的系统资源浪 费, 在一定程度上节省了系统资源。
[0070] 为了描述的方便和简洁, 仅以上述各功能单元、 模块的划分进行举例说明, 实 际应用中, 可以根据需要而将上述功能分配由不同的功能单元、 模块完成, 即 将上述装置的内部结构划分成不同的功能单元或模块, 以完成以上描述的全部 或者部分功能。 实施例中的各功能单元、 模块可以集成在一个处理单元中, 也 可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单元中 , 上述集成的单元既可以采用硬件的形式实现, 也可以采用软件功能单元的形 式实现。 另外, 各功能单元、 模块的具体名称也只是为了便于相互区分, 并不 用于限制本申请的保护范围。 上述系统中单元、 模块的具体工作过程, 可以参 考前述方法实施例中的对应过程, 在此不再赘述。
[0071] 本领域普通技术人员可以意识到, 结合本文中所公幵的实施例描述的各示例的 单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结合来实现 。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特定应用和设 计约束条件。 专业技术人员可以对每个特定的应用来使用不同方法来实现所描 述的功能, 但是这种实现不应认为超出本申请的范围。
[0072] 在本申请所提供的实施例中, 应该理解到, 所揭露的装置和方法, 可以通过其 它的方式实现。 例如, 以上所描述的系统实施例仅仅是示意性的, 例如, 上述 模块或单元的划分, 仅仅为一种逻辑功能划分, 实际实现吋可以有另外的划分 方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或一些特征 可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或 通讯连接可以是通过一些接口, 装置或单元的间接耦合或通讯连接, 可以是电 性, 机械或其它的形式。
[0073] 上述作为分离部件说明的单元可以是或者也可以不是物理上分幵的, 作为单元 显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可 以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部单元 来实现本实施例方案的目的。
[0074] 另外, 在本申请各个实施例中的各功能模块可以集成在一个处理模块中, 也可 以是各个模块单独物理存在, 也可以两个或两个以上模块集成在一个模块中。 上述集成的模块既可以采用硬件的形式实现, 也可以采用软件功能模块的形式 实现。
[0075] 上述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用 吋, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本申请实施 例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部 或部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介 质中, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备等) 或处理器 (processor) 执行本申请实施例各个实施例上述方法 的全部或部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (R 0M, Read-Only Memory) 、 随机存取存储器 (RAM, Random Access Memory ) 、 磁碟或者光盘等各种可以存储可读指令代码的介质。
以上所述实施例仅用以说明本申请的技术方案, 而非对其限制; 尽管参照前述 实施例对本申请进行了详细的说明, 本领域的普通技术人员应当理解: 其依然 可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分技术特征进 行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱离本申请各 实施例技术方案的精神和范围, 均应包含在本申请的保护范围之内。

Claims

权利要求书
[权利要求 1] 一种数据处理方法, 其特征在于, 包括:
监听缓存中是否存在目标数据, 其中, 所述目标数据为在缓存中的吋 间到达预设的有效吋间的数据;
若监听到所述缓存中存在目标数据, 则判断所述目标数据是否满足预 设的持久化条件;
若所述目标数据满足预设的持久化条件, 则对所述目标数据进行持久 化;
若所述目标数据不满足所述持久化条件, 则对所述目标数据执行预设 的非持久化操作。
[权利要求 2] 根据权利要求 1所述的数据处理方法, 其特征在于, 所述判断所述目 标数据是否满足预设的持久化条件, 包括:
基于所述目标数据在缓存中的被査询次数, 确定所述目标数据的第一 分值, 其中, 所述第一分值与所述被査询次数正相关;
若所述第一分值达到预设的第一阈值, 则判定所述目标数据满足预设 的持久化条件;
若所述第一分值未达到所述第一阈值, 则判定所述目标数据不满足所 述持久化条件。
[权利要求 3] 根据权利要求 1所述的数据处理方法, 其特征在于, 所述判断所述目 标数据是否满足预设的持久化条件, 包括:
基于所述目标数据在缓存中的被更新次数, 确定所述目标数据的第二 分值, 其中, 所述第二分值与所述被更新次数负相关;
若所述第二分值达到预设的第二阈值, 则判定所述目标数据满足预设 的持久化条件;
若所述第二分值未达到所述第二阈值, 则判定所述目标数据不满足所 述持久化条件。
[权利要求 4] 根据权利要求 1所述的数据处理方法, 其特征在于, 所述判断所述目 标数据是否满足预设的持久化条件, 包括: 基于所述目标数据在缓存中的被査询次数, 确定所述目标数据的第一 分值, 其中, 所述第一分值与所述被査询次数正相关;
基于所述目标数据在缓存中的被更新次数, 确定所述目标数据的第二 分值, 其中, 所述第二分值与所述被更新次数负相关;
将所述第一分值和所述第二分值进行加权求平均值, 得到第三分值; 若所述第三分值达到预设的第三阈值, 则判定所述目标数据满足预设 的持久化条件;
若所述第三分值未达到所述第三阈值, 则判定所述目标数据不满足所 述持久化条件。
[权利要求 5] 根据权利要求 1至 4任一项所述的数据处理方法, 其特征在于, 所述对 所述目标数据执行预设的非持久化操作, 包括: 根据预设的吋长, 延长所述目标数据的有效吋间。
[权利要求 6] —种电子设备, 其特征在于, 包括存储器、 处理器及存储在所述存储 器上并可在所述处理器上运行的计算机可读指令, 所述处理器执行所 述计算机可读指令吋实现如下步骤:
监听缓存中是否存在目标数据, 其中, 所述目标数据为在缓存中的吋 间到达预设的有效吋间的数据;
若监听到所述缓存中存在目标数据, 则判断所述目标数据是否满足预 设的持久化条件;
若所述目标数据满足预设的持久化条件, 则对所述目标数据进行持久 化;
若所述目标数据不满足所述持久化条件, 则对所述目标数据执行预设 的非持久化操作。
[权利要求 7] 根据权利要求 6所述的电子设备, 其特征在于, 所述判断所述目标数 据是否满足预设的持久化条件, 包括:
基于所述目标数据在缓存中的被査询次数, 确定所述目标数据的第一 分值, 其中, 所述第一分值与所述被査询次数正相关;
若所述第一分值达到预设的第一阈值, 则判定所述目标数据满足预设 的持久化条件;
若所述第一分值未达到所述第一阈值, 则判定所述目标数据不满足所 述持久化条件。
[权利要求 8] 根据权利要求 6所述的电子设备, 其特征在于, 所述判断所述目标数 据是否满足预设的持久化条件, 包括:
基于所述目标数据在缓存中的被更新次数, 确定所述目标数据的第二 分值, 其中, 所述第二分值与所述被更新次数负相关;
若所述第二分值达到预设的第二阈值, 则判定所述目标数据满足预设 的持久化条件;
若所述第二分值未达到所述第二阈值, 则判定所述目标数据不满足所 述持久化条件。
[权利要求 9] 根据权利要求 6所述的电子设备, 其特征在于, 所述判断所述目标数 据是否满足预设的持久化条件, 包括:
基于所述目标数据在缓存中的被査询次数, 确定所述目标数据的第一 分值, 其中, 所述第一分值与所述被査询次数正相关;
基于所述目标数据在缓存中的被更新次数, 确定所述目标数据的第二 分值, 其中, 所述第二分值与所述被更新次数负相关;
将所述第一分值和所述第二分值进行加权求平均值, 得到第三分值; 若所述第三分值达到预设的第三阈值, 则判定所述目标数据满足预设 的持久化条件;
若所述第三分值未达到所述第三阈值, 则判定所述目标数据不满足所 述持久化条件。
[权利要求 10] 根据权利要求 6至 9任一项所述的电子设备, 其特征在于, 所述对所述 目标数据执行预设的非持久化操作, 包括:
根据预设的吋长, 延长所述目标数据的有效吋间。
[权利要求 11] 一种电子设备, 其特征在于, 包括:
监听模块, 用于监听缓存中是否存在目标数据, 其中, 所述目标数据 为在缓存中的吋间到达预设的有效吋间的数据; 判断模块, 用于当所述监听模块监听到上述缓存中存在目标数据吋, 判断上述目标数据是否满足预设的持久化条件; 持久化模块, 用于当所述判断模块判断出上述目标数据满足预设的持 久化条件吋, 对上述目标数据进行持久化;
非持久化模块, 用于当所述判断模块判断出上述目标数据不满足上述 持久化条件吋, 对上述目标数据执行预设的非持久化操作。
[权利要求 12] 根据权利要求 11所述的电子设备, 其特征在于,
所述判断模块具体用于: 基于所述目标数据在缓存中的被査询次数, 确定所述目标数据的第一分值, 其中, 所述第一分值与所述被査询次 数正相关; 若所述第一分值达到预设的第一阈值, 则判定所述目标数 据满足预设的持久化条件; 若所述第一分值未达到所述第一阈值, 则 判定所述目标数据不满足所述持久化条件。
[权利要求 13] 根据权利要求 11所述的电子设备, 其特征在于,
所述判断模块具体用于: 基于所述目标数据在缓存中的被更新次数, 确定所述目标数据的第二分值, 其中, 所述第二分值与所述被更新次 数负相关; 若所述第二分值达到预设的第二阈值, 则判定所述目标数 据满足预设的持久化条件; 若所述第二分值未达到所述第二阈值, 则 判定所述目标数据不满足所述持久化条件。
[权利要求 14] 根据权利要求 11所述的电子设备, 其特征在于,
所述判断模块具体用于: 基于所述目标数据在缓存中的被査询次数, 确定所述目标数据的第一分值, 其中, 所述第一分值与所述被査询次 数正相关; 基于所述目标数据在缓存中的被更新次数, 确定所述目标 数据的第二分值, 其中, 所述第二分值与所述被更新次数负相关; 将 所述第一分值和所述第二分值进行加权求平均值, 得到第三分值; 若 所述第三分值达到预设的第三阈值, 则判定所述目标数据满足预设的 持久化条件; 若所述第三分值未达到所述第三阈值, 则判定所述目标 数据不满足所述持久化条件。
[权利要求 15] 根据权利要求 11至 14任一项所述的电子设备, 其特征在于, 所述非持久化模块具体用于: 当所述判断模块判断出上述目标数据不 满足上述持久化条件吋, 根据预设的吋长, 延长上述目标数据的有效 吋间。
[权利要求 16] —种计算机可读存储介质, 所述计算机可读存储介质上存储有计算机 可读指令, 其特征在于, 所述计算机可读指令被处理器执行吋实现以 下步骤:
监听缓存中是否存在目标数据, 其中, 所述目标数据为在缓存中的吋 间到达预设的有效吋间的数据;
若监听到所述缓存中存在目标数据, 则判断所述目标数据是否满足预 设的持久化条件;
若所述目标数据满足预设的持久化条件, 则对所述目标数据进行持久 化;
若所述目标数据不满足所述持久化条件, 则对所述目标数据执行预设 的非持久化操作。
[权利要求 17] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述判断 所述目标数据是否满足预设的持久化条件, 包括: 基于所述目标数据在缓存中的被査询次数, 确定所述目标数据的第一 分值, 其中, 所述第一分值与所述被査询次数正相关;
若所述第一分值达到预设的第一阈值, 则判定所述目标数据满足预设 的持久化条件;
若所述第一分值未达到所述第一阈值, 则判定所述目标数据不满足所 述持久化条件。
[权利要求 18] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述判断 所述目标数据是否满足预设的持久化条件, 包括: 基于所述目标数据在缓存中的被更新次数, 确定所述目标数据的第二 分值, 其中, 所述第二分值与所述被更新次数负相关;
若所述第二分值达到预设的第二阈值, 则判定所述目标数据满足预设 的持久化条件; 若所述第二分值未达到所述第二阈值, 则判定所述目标数据不满足所 述持久化条件。
[权利要求 19] 根据权利要求 16所述的计算机可读存储介质, 其特征在于, 所述判断 所述目标数据是否满足预设的持久化条件, 包括: 基于所述目标数据在缓存中的被査询次数, 确定所述目标数据的第一 分值, 其中, 所述第一分值与所述被査询次数正相关;
基于所述目标数据在缓存中的被更新次数, 确定所述目标数据的第二 分值, 其中, 所述第二分值与所述被更新次数负相关;
将所述第一分值和所述第二分值进行加权求平均值, 得到第三分值; 若所述第三分值达到预设的第三阈值, 则判定所述目标数据满足预设 的持久化条件;
若所述第三分值未达到所述第三阈值, 则判定所述目标数据不满足所 述持久化条件。
[权利要求 20] 根据权利要求 16至 18任一项所述的计算机可读存储介质, 其特征在于 , 所述对所述目标数据执行预设的非持久化操作, 包括:
根据预设的吋长, 延长所述目标数据的有效吋间。
PCT/CN2017/104533 2017-08-10 2017-09-29 数据处理方法、电子设备及计算机可读存储介质 Ceased WO2019028987A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710680234.9A CN107590023B (zh) 2017-08-10 2017-08-10 数据处理方法、电子设备及计算机可读存储介质
CN201710680234.9 2017-08-10

Publications (1)

Publication Number Publication Date
WO2019028987A1 true WO2019028987A1 (zh) 2019-02-14

Family

ID=61042191

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/104533 Ceased WO2019028987A1 (zh) 2017-08-10 2017-09-29 数据处理方法、电子设备及计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN107590023B (zh)
WO (1) WO2019028987A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108628979B (zh) * 2018-04-26 2021-02-09 广州供电局有限公司 停电记录发布方法、系统、计算机设备和存储介质
CN113127557B (zh) * 2019-12-31 2022-12-13 中国移动通信集团四川有限公司 基于redis性能的数据持久化方法、装置及电子设备
CN114064710A (zh) * 2020-07-30 2022-02-18 华为技术有限公司 一种数据的查询方法及装置
CN117194366A (zh) * 2022-06-01 2023-12-08 网联清算有限公司 内存数据库的数据持久化方法、装置以及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130226909A1 (en) * 2010-10-06 2013-08-29 Hitachi, Ltd. Stream Data Processing Method and Device
CN104133880A (zh) * 2014-07-25 2014-11-05 广东睿江科技有限公司 一种设置文件缓存时间的方法与装置
CN105824902A (zh) * 2016-03-14 2016-08-03 乐视网信息技术(北京)股份有限公司 一种数据缓存方法及装置
CN106708417A (zh) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 缓存数据的管理方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853671B (zh) * 2012-12-07 2018-03-02 北京百度网讯科技有限公司 一种数据写入控制方法及装置
CN104915145B (zh) * 2014-03-11 2018-05-18 华为技术有限公司 一种降低LSM Tree写放大的方法和装置
CN104462194A (zh) * 2014-10-28 2015-03-25 北京国双科技有限公司 一种业务数据的处理方法、装置及服务器
CN105677236B (zh) * 2015-12-29 2018-10-02 华为技术有限公司 一种存储设备及其存储数据的方法
CN106681665B (zh) * 2016-12-29 2020-04-24 北京奇虎科技有限公司 缓存数据的持久化存储方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130226909A1 (en) * 2010-10-06 2013-08-29 Hitachi, Ltd. Stream Data Processing Method and Device
CN104133880A (zh) * 2014-07-25 2014-11-05 广东睿江科技有限公司 一种设置文件缓存时间的方法与装置
CN106708417A (zh) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 缓存数据的管理方法及装置
CN105824902A (zh) * 2016-03-14 2016-08-03 乐视网信息技术(北京)股份有限公司 一种数据缓存方法及装置

Also Published As

Publication number Publication date
CN107590023A (zh) 2018-01-16
CN107590023B (zh) 2020-10-02

Similar Documents

Publication Publication Date Title
CN107729559B (zh) 数据库读写异步访问的方法、系统、设备及存储介质
CN102362464B (zh) 内存访问监测方法和装置
WO2019114128A1 (zh) 区块链事务区块处理方法、电子装置及可读存储介质
CN104462225A (zh) 一种数据读取的方法、装置及系统
WO2018076793A1 (zh) 一种NVMe数据读写方法及NVMe设备
US20200364080A1 (en) Interrupt processing method and apparatus and server
WO2019028987A1 (zh) 数据处理方法、电子设备及计算机可读存储介质
US9798591B2 (en) Method, apparatus, and chip for implementing mutually-exclusive operation of multiple threads
CN105095109A (zh) 缓存访问方法、缓存访问路由器和计算机系统
CN108090000A (zh) 一种获取cpu寄存器信息的方法及系统
US10581997B2 (en) Techniques for storing or accessing a key-value item
US20210191776A1 (en) Resource Management Unit for Capturing Operating System Configuration States and Memory Management
CN103500108A (zh) 系统内存访问方法、节点控制器和多处理器系统
CN115606254A (zh) 多连接下的通信方法和通信装置
CN117850659A (zh) 一种缓存空间调整方法、装置、电子设备及介质
CN114579480B (zh) 一种缺页处理方法、装置、系统、电子设备及存储介质
CN112463037B (zh) 一种元数据保存方法、装置、设备、产品
WO2019028988A1 (zh) 数据处理方法、电子设备及计算机可读存储介质
CN104011693B (zh) 设置基于i/o带宽的处理器频率层的装置和方法
US20170185320A1 (en) Delayed read indication
US20140223066A1 (en) Multi-Node Management Mechanism
CN105518617B (zh) 缓存数据的处理方法及装置
CN114691592A (zh) 处理器、控制方法、设备及介质
CN113703835A (zh) 一种基于多核处理器的高速数据流处理方法和系统
HK1247329B (zh) 数据处理方法、电子设备及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17921237

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 25.06.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17921237

Country of ref document: EP

Kind code of ref document: A1