|
|
@ -6,7 +6,7 @@ |
|
|
<link href="/atom.xml" rel="self"/> |
|
|
<link href="/atom.xml" rel="self"/> |
|
|
|
|
|
|
|
|
<link href="https://nicksxs.me/"/> |
|
|
<link href="https://nicksxs.me/"/> |
|
|
<updated>2020-04-12T14:57:42.769Z</updated> |
|
|
|
|
|
|
|
|
<updated>2020-04-18T15:25:04.854Z</updated> |
|
|
<id>https://nicksxs.me/</id> |
|
|
<id>https://nicksxs.me/</id> |
|
|
|
|
|
|
|
|
<author> |
|
|
<author> |
|
|
@ -16,6 +16,45 @@ |
|
|
|
|
|
|
|
|
<generator uri="https://hexo.io/">Hexo</generator> |
|
|
<generator uri="https://hexo.io/">Hexo</generator> |
|
|
|
|
|
|
|
|
|
|
|
<entry> |
|
|
|
|
|
<title>redis系列介绍八-淘汰策略</title> |
|
|
|
|
|
<link href="https://nicksxs.me/2020/04/18/redis%E7%B3%BB%E5%88%97%E4%BB%8B%E7%BB%8D%E5%85%AB/"/> |
|
|
|
|
|
<id>https://nicksxs.me/2020/04/18/redis%E7%B3%BB%E5%88%97%E4%BB%8B%E7%BB%8D%E5%85%AB/</id> |
|
|
|
|
|
<published>2020-04-18T15:23:41.000Z</published> |
|
|
|
|
|
<updated>2020-04-18T15:25:04.854Z</updated> |
|
|
|
|
|
|
|
|
|
|
|
<summary type="html"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3 id="LRU"><a href="#LRU" class="headerlink" title="LRU"></a>LRU</h3><p>说完了过期策略再说下淘汰策略,redis 使用的策略是近似的 lru 策略,为什么是近似的呢,先来看下什么是 lru,看下 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</summary> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<category term="Redis" scheme="https://nicksxs.me/categories/Redis/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="数据结构" scheme="https://nicksxs.me/categories/Redis/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="C" scheme="https://nicksxs.me/categories/C/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="源码" scheme="https://nicksxs.me/categories/Redis/%E6%BA%90%E7%A0%81/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="Redis" scheme="https://nicksxs.me/categories/C/Redis/"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<category term="redis" scheme="https://nicksxs.me/tags/redis/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="数据结构" scheme="https://nicksxs.me/tags/%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="源码" scheme="https://nicksxs.me/tags/%E6%BA%90%E7%A0%81/"/> |
|
|
|
|
|
|
|
|
|
|
|
</entry> |
|
|
|
|
|
|
|
|
<entry> |
|
|
<entry> |
|
|
<title>redis系列介绍七-过期策略</title> |
|
|
<title>redis系列介绍七-过期策略</title> |
|
|
<link href="https://nicksxs.me/2020/04/12/redis%E7%B3%BB%E5%88%97%E4%BB%8B%E7%BB%8D%E4%B8%83/"/> |
|
|
<link href="https://nicksxs.me/2020/04/12/redis%E7%B3%BB%E5%88%97%E4%BB%8B%E7%BB%8D%E4%B8%83/"/> |
|
|
@ -358,10 +397,10 @@ |
|
|
|
|
|
|
|
|
<category term="Java" scheme="https://nicksxs.me/categories/Java/"/> |
|
|
<category term="Java" scheme="https://nicksxs.me/categories/Java/"/> |
|
|
|
|
|
|
|
|
<category term="C++" scheme="https://nicksxs.me/categories/C/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="JVM" scheme="https://nicksxs.me/categories/Java/JVM/"/> |
|
|
<category term="JVM" scheme="https://nicksxs.me/categories/Java/JVM/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="C++" scheme="https://nicksxs.me/categories/C/"/> |
|
|
|
|
|
|
|
|
<category term="GC" scheme="https://nicksxs.me/categories/Java/GC/"/> |
|
|
<category term="GC" scheme="https://nicksxs.me/categories/Java/GC/"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -709,52 +748,12 @@ |
|
|
|
|
|
|
|
|
<category term="读后感" scheme="https://nicksxs.me/categories/%E8%AF%BB%E5%90%8E%E6%84%9F/"/> |
|
|
<category term="读后感" scheme="https://nicksxs.me/categories/%E8%AF%BB%E5%90%8E%E6%84%9F/"/> |
|
|
|
|
|
|
|
|
<category term="村上春树" scheme="https://nicksxs.me/categories/%E8%AF%BB%E5%90%8E%E6%84%9F/%E6%9D%91%E4%B8%8A%E6%98%A5%E6%A0%91/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="生活" scheme="https://nicksxs.me/categories/%E7%94%9F%E6%B4%BB/"/> |
|
|
<category term="生活" scheme="https://nicksxs.me/categories/%E7%94%9F%E6%B4%BB/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="村上春树" scheme="https://nicksxs.me/categories/%E8%AF%BB%E5%90%8E%E6%84%9F/%E6%9D%91%E4%B8%8A%E6%98%A5%E6%A0%91/"/> |
|
|
|
|
|
|
|
|
<category term="读后感" scheme="https://nicksxs.me/tags/%E8%AF%BB%E5%90%8E%E6%84%9F/"/> |
|
|
|
|
|
|
|
|
|
|
|
</entry> |
|
|
|
|
|
|
|
|
|
|
|
<entry> |
|
|
|
|
|
<title>Redis_分布式锁</title> |
|
|
|
|
|
<link href="https://nicksxs.me/2019/12/10/Redis-Part-1/"/> |
|
|
|
|
|
<id>https://nicksxs.me/2019/12/10/Redis-Part-1/</id> |
|
|
|
|
|
<published>2019-12-10T15:26:26.000Z</published> |
|
|
|
|
|
<updated>2020-01-12T13:08:27.015Z</updated> |
|
|
|
|
|
|
|
|
|
|
|
<summary type="html"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p>今天看了一下 <code>redis</code> 分布式锁 <code>redlock</code> 的实现,简单记录下,</p> |
|
|
|
|
|
<h2 id="加锁"><a href="#加锁" class="headerlink" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</summary> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<category term="Redis" scheme="https://nicksxs.me/categories/Redis/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="Distributed Lock" scheme="https://nicksxs.me/categories/Redis/Distributed-Lock/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="C" scheme="https://nicksxs.me/categories/C/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="Redis" scheme="https://nicksxs.me/categories/C/Redis/"/> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<category term="C" scheme="https://nicksxs.me/tags/C/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="Redis" scheme="https://nicksxs.me/tags/Redis/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="Distributed Lock" scheme="https://nicksxs.me/tags/Distributed-Lock/"/> |
|
|
|
|
|
|
|
|
|
|
|
<category term="分布式锁" scheme="https://nicksxs.me/tags/%E5%88%86%E5%B8%83%E5%BC%8F%E9%94%81/"/> |
|
|
|
|
|
|
|
|
<category term="读后感" scheme="https://nicksxs.me/tags/%E8%AF%BB%E5%90%8E%E6%84%9F/"/> |
|
|
|
|
|
|
|
|
</entry> |
|
|
</entry> |
|
|
|
|
|
|
|
|
|