Memcached教學
Memcached環境安裝設置
Memcached連接
Memcached設置/set數據
Memcached添加數據
Memcached替換/Replace數據
Memcached追加/append數據
Memcached預先添加/Prepend數據
Memcached cas命令
Memcached獲取/get數據
Memcached gets命令
Memcached刪除/Delete數據
Memcached遞增遞減數據
Memcached Stats命令
Memcached Stats Items
Memcached stats slabs
Memcached stats sizes命令
Memcached清除數據
Memcached stats slabs
Memcached的stats slabs 命令顯示的統計數據,如大小,內存使用情況,命令等數據,由slabs ID組織
語法
memcached的stats slabs命令基本語法如下所示:
stats slabs
示例
stats slabs
STAT 1:chunk_size 96
STAT 1:chunks_per_page 10922
STAT 1:total_pages 1
STAT 1:total_chunks 10922
STAT 1:used_chunks 1
STAT 1:free_chunks 10921
STAT 1:free_chunks_end 0
STAT 1:mem_requested 71
STAT 1:get_hits 0
STAT 1:cmd_set 1
STAT 1:delete_hits 0
STAT 1:incr_hits 0
STAT 1:decr_hits 0
STAT 1:cas_hits 0
STAT 1:cas_badval 0
STAT 1:touch_hits 0
STAT active_slabs 1
STAT total_malloced 1048512
END