• memcached笔记


    启动memcached:./memcached -d -m 10 -l 127.0.0.1 -p 11211 -u root

    连接memcached:telnet 127.0.0.1 11211

    查看memcached所有key:stats items

    结果:

      STAT items:16:number 1
      STAT items:16:age 195
      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

    stats cachedump 16 0    (注:16:items id, 0:列出的长度,0为全部列出)

    结果:

      ITEM menuList:menu [2333 b; 1406639276 s]
      END
      (注:menuList:menu 为key)

    查看数据:get key

    get menuList:menu

    结果:

    VALUE menuList:menu 8 2333
    {"v":{"java.util.ArrayList":[{"com.brin.util.model.menu.MenuVO":{"pageSize":10,"totalRows":0,"curPage":1,"start":0,"end":10,"sord":null,"totalPages":0,"id":1,"menuName":"首页","menuComment":"首页","parentId":-1,"orderMenu":1,"initUrl":"","pathUrl":"","active":"Y","children":0}},{"com.brin.util.model.menu.MenuVO":{"pageSize":10,"totalRows":0,"curPage":1,"start":0,"end":10,"sord":null,"totalPages":0,"id":2,"menuName":"事务","menuComment":"事务","parentId":-1,"orderMenu":2,"initUrl":"","pathUrl":"","active":"Y","children":0}},{"com.brin.util.model.menu.MenuVO":{"pageSize":10,"totalRows":0,"curPage":1,"start":0,"end":10,"sord":null,"totalPages":0,"id":3,"menuName":"日志","menuComment":"日志","parentId":-1,"orderMenu":3,"initUrl":"","pathUrl":"","active":"Y","children":0}},{"com.brin.util.model.menu.MenuVO":{"pageSize":10,"totalRows":0,"curPage":1,"start":0,"end":10,"sord":null,"totalPages":0,"id":4,"menuName":"用户","menuComment":"用户","parentId":-1,"orderMenu":4,"initUrl":"","pathUrl":"","active":"Y","children":0}},{"com.brin.util.model.menu.MenuVO":{"pageSize":10,"totalRows":0,"curPage":1,"start":0,"end":10,"sord":null,"totalPages":0,"id":5,"menuName":"事务1","menuComment":"事务1","parentId":2,"orderMenu":1,"initUrl":"url","pathUrl":"","active":"Y","children":0}},{"com.brin.util.model.menu.MenuVO":{"pageSize":10,"totalRows":0,"curPage":1,"start":0,"end":10,"sord":null,"totalPages":0,"id":6,"menuName":"事务2","menuComment":"事务2","parentId":2,"orderMenu":2,"initUrl":"","pathUrl":"","active":"Y","children":0}},{"com.brin.util.model.menu.MenuVO":{"pageSize":10,"totalRows":0,"curPage":1,"start":0,"end":10,"sord":null,"totalPages":0,"id":7,"menuName":"日志1","menuComment":"日志1","parentId":3,"orderMenu":1,"initUrl":"","pathUrl":"","active":"Y","children":0}},{"com.brin.util.model.menu.MenuVO":{"pageSize":10,"totalRows":0,"curPage":1,"start":0,"end":10,"sord":null,"totalPages":0,"id":8,"menuName":"事务1_1","menuComment":"事务1_1","parentId":5,"orderMenu":1,"initUrl":" ","pathUrl":" ","active":"Y","children":0}},{"com.brin.util.model.menu.MenuVO":{"pageSize":10,"totalRows":0,"curPage":1,"start":0,"end":10,"sord":null,"totalPages":0,"id":9,"menuName":"首页1","menuComment":"首页1","parentId":1,"orderMenu":1,"initUrl":" ","pathUrl":" ","active":"Y","children":0}}]}}
    END

  • 相关阅读:
    ES6 解构
    一些vue的知识点
    CSS选择器
    Django学习--介绍Django
    正则表达式
    ftp命令
    Vim学习指南
    关于ACM与OJ
    brctl命令
    LXC
  • 原文地址:https://www.cnblogs.com/Jiphen/p/3876435.html
Copyright © 2020-2023  润新知