之前看到一个 update inc 但是没看到具体怎么实现.
求大神帮帮忙, 给点指引.
http://docs.mongodb.org/manual/reference/operator/update/inc/
$inc is an atomic operation within a single document.
Change to redis
http://docs.mongodb.org/manual/reference/operator/update/inc/
$inc is an atomic operation within a single document.
Change to redis