memberfieldRedis操作 hash sort String sorted_set list help @String @list
本文纯属个人见解,是对前面学习的总结,如有描述不正确的地方还请高手指正~
redis 127.0.0.1:6379> help @string
APPEND key value
summary: Append a value to a key
since: 1.3.3
DECR key
summary: Decrement the integer value of a key by one
since: 0.07
DECRBY key decrement
summary: Decrement the integer value of a key by the given number
since: 0.07
GET key
summary: Get the value of a key
since: 0.07
GETBIT key offset
summary: Returns the bit value at offset in the string value stored at key
since: 2.1.8
redis 127.0.0.1:6379> help @hash
HDEL key field
summary: Delete a hash field
since: 1.3.10
HEXISTS key field
summary: Determine if a hash field exists
since: 1.3.10
HGET key field
summary: Get the value of a hash field
since: 1.3.10
HGETALL key
summary: Get all the fields and values in a hash
since: 1.3.10
HINCRBY key field increment
summary: Increment the integer value of a hash field by the given number
since: 1.3.10
HKEYS key
summary: Get all the fields in a hash
since: 1.3.10
HLEN key
summary: Get the number of fields in a hash
since: 1.3.10
HMGET key field [field ...]
summary: Get the values of all the given hash fields
since: 1.3.10
HMSET key field value [field value ...]
summary: Set multiple hash fields to multiple values
since: 1.3.8
HSET key field value
summary: Set the string value of a hash field
since: 1.3.10
HSETNX key field value
summary: Set the value of a hash field, only if the field does not exist
since: 1.3.8
HVALS key
summary: Get all the values in a hash
since: 1.3.10
redis 127.0.0.1:6379> help @set
SADD key member
summary: Add a member to a set
since: 0.07
SCARD key
summary: Get the number of members in a set
since: 0.07
SDIFF key [key ...]
summary: Subtract multiple sets
since: 0.100
SDIFFSTORE destination key [key ...]
summary: Subtract multiple sets and store the resulting set in a key
since: 0.100
SINTER key [key ...]
summary: Intersect multiple sets
since: 0.07
SINTERSTORE destination key [key ...]
summary: Intersect multiple sets and store the resulting set in a key
since: 0.07
SISMEMBER key member
summary: Determine if a given value is a member of a set
since: 0.07
SMEMBERS key
summary: Get all the members in a set
since: 0.07
SMOVE source destination member
summary: Move a member from one set to another
since: 0.091
SPOP key
summary: Remove and return a random member from a set
since: 0.101
SRANDMEMBER key
summary: Get a random member from a set
since: 1.001
SREM key member
summary: Remove a member from a set
since: 0.07
SUNION key [key ...]
summary: Add multiple sets
since: 0.091
SUNIONSTORE destination key [key ...]
summary: Add multiple sets and store the resulting set in a key
since: 0.091
redis 127.0.0.1:6379>
GETSET key value
summary: Set the string value of a key and return its old value
since: 0.091
INCR key
summary: Increment the integer value of a key by one
since: 0.07
INCRBY key increment
summary: Increment the integer value of a key by the given number
since: 0.07
MGET key [key ...]
summary: Get the values of all the given keys
since: 0.07
MSET key value [key value ...]
summary: Set multiple keys to multiple values
since: 1.001
MSETNX key value [key value ...]
summary: Set multiple keys to multiple values, only if none of the keys exist
成功的花朵开放在啊勤劳的枝头,失败的苦果孕育在懒惰的温床之中。
since: 1.001
SET key value
summary: Set the string value of a key
since: 0.07
SETBIT key offset value
summary: Sets or clears the bit at offset in the string value stored at key
since: 2.1.8
SETEX key seconds value
summary: Set the value and expiration of a key
since: 1.3.10
SETNX key value
summary: Set the value of a key, only if the key does not exist
since: 0.07
SETRANGE key offset value
summary: Overwrite part of a string at key starting at the specified offset
since: 2.1.8
STRLEN key
summary: Get the length of the value stored in a key
since: 2.1.2
SUBSTR key start end
summary: Get a substring of the string stored at a key
since: 1.3.4
redis 127.0.0.1:6379> help @list
BLPOP key [key ...] timeout
summary: Remove and get the first element in a list, or block until one is available
since: 1.3.1
BRPOP key [key ...] timeout
summary: Remove and get the last element in a list, or block until one is available
since: 1.3.1
BRPOPLPUSH source destination timeout
summary: Pop a value from a list, push it to another list and return it; or block until one is available
since: 2.1.7
LINDEX key index
summary: Get an element from a list by its index
since: 0.07
LINSERT key BEFORE|AFTER pivot value
summary: Insert an element before or after another element in a list
since: 2.1.1
LLEN key
summary: Get the length of a list
since: 0.07
LPOP key
summary: Remove and get the first element in a list
since: 0.07
LPUSH key value
summary: Prepend a value to a list
since: 0.07
LPUSHX key value
summary: Prepend a value to a list, only if the list exists
since: 2.1.1
LRANGE key start stop
summary: Get a range of elements from a list
since: 0.07
LREM key count value
summary: Remove elements from a list
since: 0.07
LSET key index value
summary: Set the value of an element in a list by its index
since: 0.07
LTRIM key start stop
summary: Trim a list to the specified range
since: 0.07
RPOP key
summary: Remove and get the last element in a list
since: 0.07
RPOPLPUSH source destination
summary: Remove the last element in a list, append it to another list and return it
since: 1.1
RPUSH key value
summary: Append a value to a list
since: 0.07
RPUSHX key value
summary: Append a value to a list, only if the list exists
since: 2.1.1
redis 127.0.0.1:6379> help @sorted_set
ZADD key score member
summary: Add a member to a sorted set, or update its score if it already exists
since: 1.1
ZCARD key
summary: Get the number of members in a sorted set
since: 1.1
ZCOUNT key min max
summary: Count the members in a sorted set with scores within the given values
since: 1.3.3
ZINCRBY key increment member
summary: Increment the score of a member in a sorted set
since: 1.1
ZINTERSTORE destination numkeys key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]
summary: Intersect multiple sorted sets and store the resulting sorted set in a new key
since: 1.3.10
ZRANGE key start stop [WITHSCORES]
summary: Return a range of members in a sorted set, by index
since: 1.1
ZRANGEBYSCORE key min max [WITHSCORES] [LIMIT offset count]
summary: Return a range of members in a sorted set, by score
since: 1.050
ZRANK key member
summary: Determine the index of a member in a sorted set
since: 1.3.4
ZREM key member
summary: Remove a member from a sorted set
since: 1.1
ZREMRANGEBYRANK key start stop
summary: Remove all members in a sorted set within the given indexes
since: 1.3.4
ZREMRANGEBYSCORE key min max
summary: Remove all members in a sorted set within the given scores
since: 1.1
ZREVRANGE key start stop [WITHSCORES]
summary: Return a range of members in a sorted set, by index, with scores ordered from high to low
since: 1.1
ZREVRANGEBYSCORE key max min [WITHSCORES] [LIMIT offset count]
summary: Return a range of members in a sorted set, by score, with scores ordered from high to low
since: 2.1.6
ZREVRANK key member
summary: Determine the index of a member in a sorted set, with scores ordered from high to low
since: 1.3.4
ZSCORE key member
summary: Get the score associated with the given member in a sorted set
since: 1.1
ZUNIONSTORE destination numkeys key [key ...] [WEIGHTS weight] [AGGREGATE SUM|MIN|MAX]
summary: Add multiple sorted sets and store the resulting sorted set in a new key
since: 1.3.10
文章结束给大家分享下程序员的一些笑话语录: 关于编程语言
如果 C++是一把锤子的话,那么编程就会变成大手指头。
如果你找了一百万只猴子来敲打一百万个键盘,那么会有一只猴子会敲出一 段 Java 程序,而其余的只会敲出 Perl 程序。
一阵急促的敲门声,“谁啊!”,过了 5 分钟,门外传来“Java”。
如果说 Java 很不错是因为它可以运行在所有的操作系统上,那么就可以说 肛交很不错,因为其可以使用于所有的性别上。
--------------------------------- 原创文章 By
member和field
---------------------------------
转载于:https://www.cnblogs.com/jiangu66/archive/2013/05/30/3109023.html
memberfieldRedis操作 hash sort String sorted_set list help @String @list相关推荐
- Redis常用命令之操作Hash类型
场景 Centos中Redis的下载编译与安装(超详细): https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103967334 Re ...
- Redis中Value使用hash类型的效率是普通String的两倍
什么Redis? 点击这里 最近要开发的一个项目是分布式缓存组件,解决参数缓存高效获取的问题.参数达到了500万级别,刚刚开始了解Redis.做设计的时候考虑到Value使用哪种类型的问题? 主要面临 ...
- java中的文件操作:读取写入byte[]字节流、string字符串、list列表
全栈工程师开发手册 (作者:栾鹏) java教程全解 java中文件操作:读取文件成字节流,将字节流写入文件,按行读取文件成字符串列表,将字符串列表存储成文件,读取文件成字符串,将字符串写入文件. 主 ...
- 【STL】string详解(string类常用的操作函数、构造函数、赋值操作、子符串的拼接、查找和替换、比较、存取、插入和删除、获取)
目录 1. string容器 简介 2. string类常用的操作函数 3. 构造函数 4. 赋值操作 5. 字符串拼接 6. 字符串查找和替换 7. 字符串比较 8. 字符串存取 9. 字符串插入和 ...
- String转QString,线段相交,四点共面,git相关操作,截图,扩展工具,string乱码,矩阵相乘
20220513-20220608.QT String转QString 两线段是否相交 四个点是否共面,两个直线是否相交 git相关操作 截图快捷键 shift+win+s VS2013扩展工具不能联 ...
- java基础进阶一:String源码和String常量池
作者:NiceCui 本文谢绝转载,如需转载需征得作者本人同意,谢谢. 本文链接:http://www.cnblogs.com/NiceCui/p/8046564.html 邮箱:moyi@moyib ...
- java string 不变_为什么String在java中是不可变的?
什么是不可变对象? 众所周知, 在Java中, String类是不可变的.那么到底什么是不可变的对象呢? 可以这样认为:如果一个对象,在它创建完成之后,不能再改变它的状态,那么这个对象就是不可变的.不 ...
- Redis源码-String:Redis String命令、Redis String存储原理、Redis String三种编码类型、Redis字符串SDS源码解析、Redis String应用场景
Redis源码-String:Redis String命令.Redis String存储原理.Redis String三种编码类型.Redis字符串SDS源码解析.Redis String应用场景 R ...
- Java String API 常用的String方法详解
标题 String类的特性 Java中String类的构造方法 String类的 intern() 注意还跟jdk有关 如何保证变量S指向的是字符串常量池中的数据呢? 关于String中 new St ...
- string 相等 java_java中String相等问题
1.首先介绍三个String对象比较的方法: (1)equals:比较两个String对象的值是否相等.例如: String str1 = "hello quanjizhu"; S ...
最新文章
- python编程问题--第四次
- Java多线程之Callable接口的实现
- CF1B Spreadsheets
- Android Fragment使用(三) Activity, Fragment, WebView的状态保存和恢复
- TCP接入层的负载均衡、高可用、扩展性架构
- php 系统平均负载,Linux_解析Linux系统的平均负载概念,一、什么是系统平均负载(Load a - phpStudy...
- URAL1553 Caves and Tunnels 树链剖分 动态树
- Nature Reviews Cancer综述:长非编码RNA在肿瘤转移中的作用
- Android平台网络模式的修改
- iview-cli 设置跨域代理服务器
- 用两万篇论文告诉你:机器学习在过去五年中发生了什么
- 生成式对抗神经网络code实现
- 离散数学与组合数学汇总
- 9个超绚丽的HTML5 3D图片动画特效
- 小游戏————坦克大战
- 极限-快速判断变限积分的等价无穷小阶数
- 关于三星Galaxy S8最好的(和最坏的)事情
- echarts中折线图、柱状图之间的转换
- ws2812 程序设计与应用(2)DMA 控制 PWM 占空比(双缓存降低内存消耗)
- 你可以成为测试界的李子柒
热门文章
- Python 网络数据采集
- mysql 存储过程:提供查询语句并返回查询执行影响的行数
- 更好的使用Java集合(三)
- Java编程提高性能时需注意的地方
- 实体框架 6.0:异步、IQueryable操作符和特性改进
- ./configure 出错Your intltool is too old. You need intltool 0.35
- AJAX问题:如果SESSION丢失,会直接报错。
- 【tensorRT文档翻译】7. Working With Dynamic Shapes
- Netty-Pipeline组件
- max/sup、min/inf辨析