更新项目时,Azure Redis 缓存中是否有锁定机制?

Is there any lock mechanism in Azure Redis Cache while updating an item?

我正在使用 Azure 搜索研究 Azure Redis 缓存,但我找不到任何关于 Redis 缓存并发的明确描述。

情况是这样的。在覆盖现有缓存项目时,是否可以同时读取该项目?如果是,Redis 缓存如何管理它?它是锁定该项目直到它可用还是提供该项目的旧版本?

顺便说一句,我正在使用 StackExchange.Redis 客户端。

Redis 是单线程的,因此所有操作都是原子的。如果存在 update/delete,则在操作完成之前没有其他人可以读取该密钥。此处有更多详细信息 - single-threaded-nature-of-redis