View and clear memcached in distributed memory object Cache System

Source: Internet
Author: User
1. telnetlocalhost200001 # log on to stats # view the status flush_all # Clear quit # Exit 2. I learned another one: echoflush_all | nclocalhost2000013.1, data storage (assuming the key is test, value is 12345) printfsettest005 \ r \ n12345 \ r \ n | nc127.0.0.1200001ST 1. A te LnEt localhost 200001 # Login StatS # Check the status flush_all # Clear quit # Exit 2. Learn another: echo 'flush _ all' | NcLocalhost 2000013.1, data storage (assume that the key is test and the value is 12345)
 

Printf"SetTest 0 0 5 \ r \ n12345 \ r \ n "| nc 127.0.0.1 200001

 


STORED 2. Data Retrieval (assuming the key is test)

 

Printf "get test \ r \ n" | nc 127.0.0.1 200001

VALUE test 0 5
12345
END

3. Increase the value by 1 (assuming that the key is test and the value is a positive integer)
Printf "incr test 1 \ r \ n" | nc 127.0.0.1 200001

 


12346 4. Reduce the number by 3 (assuming that the key is test and the value is a positive integer)
Printf "decr test 3 \ r \ n" | nc 127.0.0.1 200001

 

12343 5. data deletion (assuming the key is test) printf "delete test \ r \ n" | nc 127.0.0.1 11211

 


DELETED 6. view Me McAch EdStatus

 

Printf "stats \ r \ n" | nc 127.0.0.1 200001

STAT pId3025
STAT upTime4120500
STAT time 1228021767
STAT version 1.2.6
STAT pointer_size 32
STAT rusage_user 433.463103
STAT rusage_system 1224.515845
STAT curr_items 1132460
STAT total_items 8980260
STAT bytes 1895325386
STAT curr_connections 252
Stattotal_connections 547850
STAT connection_sTrUctures 1189
STAT performance_get 13619685
STAT performance_set 8980260
STAT get_hits 6851607
STAT get_misses 6768078
STAT evictions 0
STAT bytes_read 160396238246
STAT bytes_written 260080686529
STAT limit_maxbytes 2147483648
STAT threads 1
END

7. Simulate top CommandTo view the Memcached status:

 

Printf "stats \ r \ n" | nc 127.0.0.1 200001
Or

Watch "echo stats | nc 127.0.0.1 200001"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.