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.