vearne

Results 5 comments of vearne

锁定库存肯定是有问题的, 我觉得不如用乐观锁, 先update pms_sku_stock set lock_stock = lock_stock + {quality} where id = {id}; 然后回查一次pms_sku_stock,如果stock - lock_stock < 0, 就回滚事务

I have a scenario where I want to store 10,000,000 key-value in the local cache, but this value is a relatively complex object. According to the current logic of bigcache,...