資源大小:871.48 KB |
資源類型:文檔 |
下載積分: 0 |
|
|
|
資源介紹 |
|
目錄
譯者序..................................................................................................................................................4
第1 章 memcached的基礎(chǔ).................................................................................................................5
1.1 memcached是什么?...............................................................................................................5
1.2 memcached的特征...................................................................................................................6
協(xié)議簡單.....................................................................................................................................6
基于libevent的事件處理..........................................................................................................6
內(nèi)置內(nèi)存存儲(chǔ)方式.....................................................................................................................6
memcached不互相通信的分布式.............................................................................................6
1.3 安裝memcached.......................................................................................................................7
memcached的安裝.....................................................................................................................7
memcached的啟動(dòng).....................................................................................................................8
1.4 用客戶端連接...........................................................................................................................8
1.5 使用Cache::Memcached..........................................................................................................9
使用Cache::Memcached連接memcached................................................................................9
保存數(shù)據(jù)...................................................................................................................................10
獲取數(shù)據(jù)...................................................................................................................................10
刪除數(shù)據(jù)...................................................................................................................................10
增一和減一操作.......................................................................................................................10
1.6 總結(jié).........................................................................................................................................11
第2章 理解memcached的內(nèi)存存儲(chǔ)..............................................................................................12
2.1 Slab Allocation機(jī)制:整理內(nèi)存以便重復(fù)使用...................................................................12
Slab Allocation的主要術(shù)語.....................................................................................................13
2.2 在Slab中緩存記錄的原理....................................................................................................13
2.3 Slab Allocator的缺點(diǎn).............................................................................................................13
2.4 使用Growth Factor進(jìn)行調(diào)優(yōu)................................................................................................14
2.5 查看memcached的內(nèi)部狀態(tài)................................................................................................15
2.6 查看slabs的使用狀況...........................................................................................................16
2.7 總結(jié).........................................................................................................................................17
第3 章 memcached的刪除機(jī)制和發(fā)展方向...................................................................................18
3.1 memcached在數(shù)據(jù)刪除方面有效利用資源.........................................................................18
數(shù)據(jù)不會(huì)真正從memcached中消失......................................................................................18
Lazy Expiration.........................................................................................................................18
3.2 LRU:從緩存中有效刪除數(shù)據(jù)的原理.................................................................................18
3.3 memcached的最新發(fā)展方向.................................................................................................18
關(guān)于二進(jìn)制協(xié)議.......................................................................................................................19
二進(jìn)制協(xié)議的格式...................................................................................................................19
HEADER中引人注目的地方..................................................................................................20
|
|
下載地址 |
|
|
|