# apt-get install libmemcached-tools # pwd /usr/share/memcached/scripts
  # ./memcached-tool  Usage: memcached-tool <host[:port] | /path/to/socket> [mode]
         memcached-tool 10.0.0.5:11211 display    # shows slabs        memcached-tool 10.0.0.5:11211            # same.  (default is display)        memcached-tool 10.0.0.5:11211 stats      # shows general stats        memcached-tool 10.0.0.5:11211 dump       # dumps keys and values
 
 
  # ./memcached-tool localhost:11211 display   #  Item_Size  Max_age   Pages   Count   Full?  Evicted Evict_Time OOM   2     120B         0s       1       0     yes        0        0    0   6     304B         0s       1       0     yes        0        0    0   7     384B         0s       1       0     yes        0        0    0   8     480B       114s       1       1     yes        0        0    0   9     600B       114s       1       1     yes        0        0    0  10     752B         0s       1       0     yes        0        0    0  11     944B       114s       1       1     yes        0        0    0  12     1.2K       114s       1       1     yes        0        0    0  13     1.4K         0s       1       0     yes        0        0    0  14     1.8K       114s       1       1     yes        0        0    0  19     5.5K       114s       1      19     yes        0        0    0  21     8.7K       173s       1      26     yes        0        0    0
 
  # ./memcached-tool localhost:11211 stats #localhost:11211   Field       Value          accepting_conns           1                auth_cmds           0              auth_errors           0                    bytes      308171               bytes_read      406849            bytes_written     1915009               cas_badval           0                 cas_hits           0               cas_misses           0                cmd_flush           0                  cmd_get         427                  cmd_set         139                cmd_touch           0              conn_yields           0    connection_structures          16         curr_connections          15               curr_items          50                decr_hits           0              decr_misses           0              delete_hits          47            delete_misses           0        evicted_unfetched           0                evictions           0        expired_unfetched           0                 get_hits         343               get_misses          84               hash_bytes      524288        hash_is_expanding           0         hash_power_level          16                incr_hits           0              incr_misses           0                 libevent 2.0.21-stable           limit_maxbytes    67108864      listen_disabled_num           0                      pid        5840             pointer_size          64                reclaimed           0             reserved_fds          20            rusage_system    0.211494              rusage_user    0.051444                  threads           4                     time  1463040706        total_connections          42              total_items         139               touch_hits           0             touch_misses           0                   uptime        1600                  version 1.4.14 (Ubuntu)
 
 
  #  memcdump --servers=localhost |wc -l 59
  # ./memcached-tool localhost:11211 dump |wc -l Dumping memcache contents   Number of buckets: 6   Number of items  : 59 Dumping bucket 11 - 2 total items Dumping bucket 12 - 1 total items Dumping bucket 15 - 1 total items Dumping bucket 19 - 22 total items Dumping bucket 21 - 32 total items Dumping bucket 8 - 1 total items 36949
 
  ÅäÅ«»ý¼º # openstack token issue +------------+----------------------------------+ | Field      | Value                            | +------------+----------------------------------+ | expires    | 2016-05-12T09:39:59.621010Z      | | id         | f68e2d5ee9424cdfb1a0e693a835f0d9 | | project_id | 860c2d7242a44776a566fd8fbe73030c | | user_id    | 0a9078c1003046cca6ff3124161f8ad7 | +------------+----------------------------------+
  # memcdump --servers=localhost  |wc -l 60
  # ./memcached-tool localhost:11211 dump |wc -l Dumping memcache contents   Number of buckets: 6   Number of items  : 60 Dumping bucket 11 - 2 total items Dumping bucket 12 - 1 total items Dumping bucket 15 - 1 total items Dumping bucket 19 - 22 total items Dumping bucket 21 - 33 total items Dumping bucket 9 - 1 total items 37771
 
  
        
         
        
        
        
        
        
        
        
         
     |