Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Cache-based reduction method, device and system

A cache and cache processing technology, applied in the computer field, can solve problems such as paralysis, inventory cache data cannot be updated in time, and waiting

Active Publication Date: 2021-05-28
SHANGHAI WANWUXINSHENG ENVIRONMENTAL PROTECTION TECH GRP CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] One purpose of the present application is to provide a cache-based inventory reduction method, device, and system to solve the large-area waiting or even paralysis and inventory cache data caused by direct operation of the database in the context of high concurrent requests in the prior art Problems that cannot be updated in time and data is inconsistent

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Cache-based reduction method, device and system
  • Cache-based reduction method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] The application will be described in further detail below in conjunction with the accompanying drawings.

[0040] In a typical configuration of this application, the terminal, the device serving the network, and the trusted party all include one or more processors (such as a central processing unit (Central Processing Unit, CPU)), an input / output interface, a network interface, and a memory .

[0041] Memory may include non-permanent memory in computer-readable media, random access memory (Random Access Memory, RAM) and / or non-volatile memory, such as read-only memory (Read Only Memory, ROM) or flash memory (flash RAM). Memory is an example of computer readable media.

[0042] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention aims to provide a cache-based inventory reduction method, device and system, and the method comprises the steps: carrying out the disassembly of original inventory data based on an inventory reduction request, and obtaining a plurality of pieces of inventory with a unique code; performing first cache verification on the plurality of stocks with the unique codes through distributed cache, and performing second cache verification based on a verification result to obtain identification information of stock rows; operating a database based on the identification information of the inventory line, and sending a current inventory change message; and confirming the inventory in the database and performing corresponding cache processing by monitoring the current inventory change message. Therefore, the original inventory is disassembled, the minimum granularity of the row lock is ensured, the impact of directly operating the database is avoided through the cache middleware, the inventory database is verified and the cache is updated twice through the asynchronous refreshing mode of monitoring the inventory change message, and the final consistency of the data is ensured.

Description

technical field [0001] The present application relates to the field of computers, in particular to a method, device and system for inventory reduction based on cache. Background technique [0002] Operations such as management, reduction, and addition of commodity inventory data are entirely based on the database. When a user requests a deduction, it is directly updated and stored for deduction operations, and the commodity data is persisted in the database. Database-based operations are accurate and reliable Yes, but the inventory reduction action directly operates the database. Since the performance of the database itself is limited, in the case of high concurrent requests, the reduction requests will backlog, and the request may fail, and the database request connection cannot be obtained, or the database may not be able to provide external services . will hang up. If the method of sub-database and sub-table is adopted, the performance requirements cannot be met fundame...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/2455G06F16/2453G06F16/2458G06F16/23G06Q10/08G06F9/54
CPCG06F16/24552G06F16/24539G06F16/2471G06F16/2365G06F9/546G06Q10/087
Inventor 张义
Owner SHANGHAI WANWUXINSHENG ENVIRONMENTAL PROTECTION TECH GRP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products