zoukankan      html  css  js  c++  java
  • Linux-Memcache和Redis常用命令

    Memcache:

       支持类型: String
        add, delete, set, replace, get, flush_all, stats, stats reset, stats items #add key flag time lenth
    Redis:
        支持类型: String, List, Set, Sorted Set, Hash
        关于键的命令:
            exists key
            del key1, key2...keyN
            type key
            keys pattern
            randomkey
            rename oldkey newkey
            renamenx oldkey newkey #没有oldkey才rename
            dbsize
            expire key seconds
            ttl key #返回key剩余时间
            flushdb #删除当前数据库中所有key
            flushall #删除所有数据库中所有数据

        String:
            set, setnx, get, getset, mget, mset, msetnx, incr, decr, incrby, decrby, append, substr
       
        List:
            lpush, rpush, lpop, rpop, llen, lrange, ltrim, lset, lrem

       Set:
            sadd, srem, spop, srandomkey, smove, scard, sismember, smembers

       Sort Set:
            zadd, zrem, zincrby, zrank, zrevrank, zrange, zrevrange, zrangebysroce, zcount, zcard, zcore, zremrangebyrank, zremrangebysroce

       Hash:
            hset, hget, hmget, hmset, hincryby, hexists, hdel, hkeys, hvals, hgeall
  • 相关阅读:
    stm32时钟分析
    STM32中断优先级彻底讲解
    STM32 外部中断简介
    sencha touch 选择器
    sench touch 页面跳转
    sencha touch 学习汇总(转)
    ES6项目构建(babel+gulp+webpack)
    sencha touch
    sencha touch 目录结构
    angular学习笔记(6)- 指令
  • 原文地址:https://www.cnblogs.com/JohnABC/p/3415713.html
Copyright © 2011-2022 走看看