<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Redis on Mengboy 技术笔记</title>
    <link>https://www.mfun.ink/categories/redis/</link>
    <description>Recent content in Redis on Mengboy 技术笔记</description>
    <generator>Hugo -- 0.156.0</generator>
    <language>zh-cn</language>
    <lastBuildDate>Thu, 19 Feb 2026 09:55:00 +0800</lastBuildDate>
    <atom:link href="https://www.mfun.ink/categories/redis/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Redis Distributed Lock Best Practices (with Common Misuse Cases)</title>
      <link>https://www.mfun.ink/english/post/redis-distributed-lock-best-practices/</link>
      <pubDate>Thu, 19 Feb 2026 09:55:00 +0800</pubDate>
      <guid>https://www.mfun.ink/english/post/redis-distributed-lock-best-practices/</guid>
      <description>&lt;p&gt;In high-concurrency scenarios, distributed locks are essential for ensuring data consistency. However, many developers&amp;rsquo; understanding of Redis distributed locks stops at &amp;ldquo;SETNX&amp;rdquo;, leading to frequent production incidents.&lt;/p&gt;
&lt;p&gt;This article comprehensively covers the correct usage of Redis distributed locks from principles, implementation, common misuse cases to production-grade solutions.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Redis 分布式锁正确姿势（含误用案例）</title>
      <link>https://www.mfun.ink/2026/02/19/redis-distributed-lock-best-practices/</link>
      <pubDate>Thu, 19 Feb 2026 09:55:00 +0800</pubDate>
      <guid>https://www.mfun.ink/2026/02/19/redis-distributed-lock-best-practices/</guid>
      <description>&lt;p&gt;在高并发场景下，分布式锁是保证数据一致性的关键组件。但很多开发者对Redis分布式锁的理解停留在&amp;quot;SETNX&amp;quot;层面，导致线上事故频发。&lt;/p&gt;
&lt;p&gt;本文将从原理、实现、常见误用到生产级解决方案，全面梳理Redis分布式锁的正确使用姿势。&lt;/p&gt;</description>
    </item>
    <item>
      <title>redis分布式锁</title>
      <link>https://www.mfun.ink/2023/06/03/redis-lua-lock/</link>
      <pubDate>Sat, 03 Jun 2023 21:10:31 +0800</pubDate>
      <guid>https://www.mfun.ink/2023/06/03/redis-lua-lock/</guid>
      <description>&lt;p&gt;分布式锁主要解决分布式系统中并发更新安全问题，单机服务的话很简单直接使用语言自身的锁就可以了，现在随便一个服务基本上都是多台机器部署的，只是语言自身的锁就不满足需求了，因为它只能锁本台机器，管不了其他机器，这时候就需要分布式锁了，下面介绍下基于redis分布式锁的实现。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
