亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Memcached cachedump then get key error

Memcached cachedump then get key error

守著星空守著你 2018-08-17 10:14:30
在.NET-Core 項目中使用了Memcached 用來緩存,在windows 也安裝了相應的客戶端。用CMD 使用 telnet localhost 11211 進入Memcached 進行操作。問題是這樣的,我使用 stats items列出了所有了所有的key值然后使用 stats cachedump key 1000 來列出這個緩存的Key 值如下圖所示這些都沒問題,問題出在我用 get key 來獲取值的時候,這個值就消失了,請問這是什么原因?
查看完整描述

1 回答

?
汪汪一只貓

TA貢獻1898條經驗 獲得超8個贊

Memcached 中緩存清除的機制:

Expiration in memcached is lazy. In general, an item cannot be known to be expired until something looks at it.

If you fetch an expired item, memcached will find the item, notice that it's expired, and free its memory. This gives you the common case of normal cache churn reusing its own memory.


查看完整回答
反對 回復 2018-08-26
  • 1 回答
  • 0 關注
  • 574 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號