高并发情况下 多个请求同时更新同一个key的redis缓存 如何加锁? 这个是需要程序上实现 还是redis本身带有?
学习是最好的投资!
Redis It is a single-threaded model, so there is no locking problem.
Redis
You can take a look at the documentation of watch+multi/exec, which may meet your needs.
Redis
It is a single-threaded model, so there is no locking problem.You can take a look at the documentation of watch+multi/exec, which may meet your needs.