Skip to content

Commit 2edf826

Browse files
committed
Update: Algo
1 parent fa070a5 commit 2edf826

File tree

1 file changed

+9
-31
lines changed

1 file changed

+9
-31
lines changed

algorithm/cache.rst

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ Cache
99
介紹
1010
========================================
1111

12-
* LRU cache (Least Recently Used)
13-
* Adaptive Replacement Cache
14-
* Low Inter-reference Recency Set
15-
* Window TinyLfu
12+
* LRU (Least Recently Used)
13+
* LFU (Least Frequently Used)
14+
* LRFU (LRU + LFU)
15+
* ARC (Adaptive Replacement Cache)
16+
* LIRS (Low Inter-reference Recency Set)
17+
* W-TinyLFU (Window TinyLFU)
1618
* Bélády's optimal
1719
- 演算法假設能知道未來再也不會用到某值,故無法實作,可以當成 Cache 演算法的 Upper Bound
1820

@@ -33,37 +35,13 @@ O* nuances
3335

3436

3537

36-
相關實做
37-
========================================
38-
39-
Memcached
40-
------------------------------
41-
42-
:Site: https://memcached.org/
43-
:Repo: https://github.com/memcached/memcached
44-
:Language: C
45-
46-
47-
預設是 LRU cache
48-
49-
50-
Redis
51-
------------------------------
52-
53-
:Site: http://redis.io/
54-
:Repo: https://github.com/antirez/redis/
55-
:Language: C
56-
57-
58-
可以想像為功能更複雜的 Memcached
59-
60-
61-
6238
參考
6339
========================================
6440

41+
* `Wikipedia - Cache replacement policies <https://en.wikipedia.org/wiki/Cache_replacement_policies>`_
42+
* `Wikipedia - Page replacement algorithm <https://en.wikipedia.org/wiki/Page_replacement_algorithm>`_
6543
* `Why Intel Added Cache Allocation Technology in Broadwell <http://danluu.com/intel-cat/>`_
6644
* `Cache is the new RAM <http://carlos.bueno.org/2014/11/cache.html>`_
6745
* `Cache Efficiency <https://github.com/ben-manes/caffeine/wiki/Efficiency>`_
6846
* `Wikipedia - Cache algorithms <https://en.wikipedia.org/wiki/Cache_algorithms>`_
69-
* [2014] `TinyLFU: A Highly Efficient Cache Admission Policy <http://www.cs.technion.ac.il/~gilga/TinyLFU_PDP2014.pdf>`_
47+
* [2015] `TinyLFU: A Highly Efficient Cache Admission Policy <https://arxiv.org/abs/1512.00727>`_

0 commit comments

Comments
 (0)