惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
LINUX DO - 热门话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Project Zero
Project Zero
V
Vulnerabilities – Threatpost
Cisco Talos Blog
Cisco Talos Blog
P
Palo Alto Networks Blog
C
Cisco Blogs
A
Arctic Wolf
月光博客
月光博客
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
量子位
小众软件
小众软件
Latest news
Latest news
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
N
Netflix TechBlog - Medium
K
Kaspersky official blog
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
Y
Y Combinator Blog
P
Proofpoint News Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
S
Schneier on Security
D
Docker
Scott Helme
Scott Helme
MyScale Blog
MyScale Blog
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
GbyAI
GbyAI
有赞技术团队
有赞技术团队
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
H
Help Net Security
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tenable Blog
B
Blog
Know Your Adversary
Know Your Adversary
IT之家
IT之家

博客园 - 铭天

亲家网络的面试,请大家谨慎过去 安装redis RedHat6安装gcc Visual Studio 2015激活码,Visual Studio 2015密钥 从程序员到翻译的感受 取客户MAP地址 .net中的浅拷贝和深拷贝 DataReader转实体<T> 关于.Net类型转换 Jquery传数组数据到Mvc后台 Silverlight TreeView控件的增删改查 Visual Studio 2010序列号 SilverLight3访问Wcf - 铭天 - 博客园 DataTable到范型转换 访问Oracle11g的.net组件 js特效和树 自定义WebPart菜单 JSChart控件 & Ajax 图片 SilverLight2CheckBox动态调用WebService
redis命令String
铭天 · 2015-11-07 · via 博客园 - 铭天

$ keys * $ rename oldkey newkey $ renamex oldkey newkey 新key存在抛出异常 $ dbsize $ expire key 时间(秒) $ ttl key 返回过期时间剩余的秒数 -2表示key不存在或者没有设置剩余秒数 $ select 0-15的一个值默认是16个dictinary $ move key db-index $ flushdb 清除当前库的所有键 $ flushall 清除所有库的所有键 $ setnx key value key存在返回0,并且不改变原值;不存在则设置值 $ getset key value 存存返回key对应值;不存在则设置值 $ mget key1 key2 一返回多值列表 $ mset key value key value 一次设置多个,但不会覆盖已经存在的key对应的value $ incr key 对key每次加1,不存在则第一次为1 $ decr key 对key每次加1,不存在则第一次为-1 $ incrby key integervalue 增加指定值 $ decrby key integervalue 减少指定值 $ append key value 值后面增加指定长度值为value $ substr key start end 返回key值的startIndex(从0开始),到endIndex的值(包括end索引),同应时并不改变key对应的原始值 $lpush key value $rpush key value $llen $lrange key start end start从0开始,end为负数表示从后开始 $ltrim key start end 截取元素 $lset key index value $lrem key count value 从key列表中删除count个和value值相同的元素;count为0时删除所有元素 $lpop $rpop $blpop key1 key2 ...keyn timeout 从左到右扫描返回一对第一个非空list进行lpop操作(同时也是返回值),如果所有的list都为空或者不存在,则阻塞timeout秒,为0表示一直阻塞 $brpop key1 key2 ...keyn timeout

posted on 2015-11-07 11:27  铭天  阅读(209)  评论()    收藏  举报