The invention relates to a data management method and device, relates to the field of computer technologies and software, and aims to solve the problem that high-concurrency inventory quantity management with the query rate of more than 100,000 per second cannot be stably supported in related technologies. The method comprises the following steps: receiving a plurality of request messages, whereinthe plurality of request messages are used for requesting to obtain virtual resources; if the number of the current request messages is greater than or equal to a first threshold, wherein the sum issmaller than or equal to the sum of the first storage value and the second storage value. If yes, a first storage value is applied to the local cache, the first storage value is updated, the first storage value is a storage value corresponding to the virtual resources of the local cache, the second storage value is a storage value of the virtual resources stored in the remote dictionary service Redis, and the sum of the first storage value and the second storage value is the remaining number of the virtual resources; If the number of the current request messages is smaller than the first threshold value or larger than the sum of the first storage value and the second storage value, applying for the second storage value from the Redis, and updating the second storage value.