LoginSignup
0
0

More than 5 years have passed since last update.

memcached内のKeyをリストする

Last updated at Posted at 2015-11-04

OpenStack HorizonでなぜかMemcachedが使われない場合の対処法

に加えて、Keyをリストする方法。

stats items
STAT items:16:number 3
STAT items:16:age 666
STAT items:16:evicted 0
STAT items:16:evicted_nonzero 0
STAT items:16:evicted_time 0
STAT items:16:outofmemory 0
STAT items:16:tailrepairs 0
STAT items:16:reclaimed 0
STAT items:16:expired_unfetched 0
STAT items:16:evicted_unfetched 0
END

items:<id>:~がSlubのIDになるので、

stats cachedump 16 100
ITEM :1:django.contrib.sessions.cachehzw3pa5nlvhl4pyaeifgvqgcvf5qgl0l [2369 b; 1445416629 s]
ITEM :1:django.contrib.sessions.cache23b5m3bd2ph914v1yey238qkjju6oy3d [2522 b; 1445416581 s]
ITEM :1:django.contrib.sessions.cachewv7dgbo4a1uyn3mljoed1xfvsh7f7zi9 [2448 b; 1445416081 s]
END

で先頭から100個分のKeyが出力される。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0