码迷,mamicode.com
首页 > 其他好文 > 详细

2.redis-help使用,基本命令

时间:2018-04-15 12:03:33      阅读:215      评论:0      收藏:0      [点我收藏+]

标签:nbsp   2.0   app   lis   quit   slackware   col   mil   ras   

redis 帮助

127.0.0.1:6379> help
redis-cli 3.0.4
Type: "help @<group>" to get a list of commands in <group>
      "help <command>" for help on <command>
      "help <tab>" to get a list of possible help topics
      "quit" to exit
127.0.0.1:6379> help APPEND(help 具体命令)

  APPEND key value
  summary: Append a value to a key
  since: 2.0.0
  group: string

 127.0.0.1:6379> help @generic(help @tab键)

 

常用命令

 

string

127.0.0.1:6379> help set

  SET key value [EX seconds] [PX milliseconds] [NX|XX]
  summary: Set the string value of a key
  since: 1.0.0
  group: string

 

set

127.0.0.1:6379> set disto fedora
OK
127.0.0.1:6379> get disto
"fedora"
127.0.0.1:6379> APPEND disto slackware
(integer) 15
127.0.0.1:6379> get disto
"fedoraslackware"
127.0.0.1:6379> STRLEN disto
(integer) 15
127.0.0.1:6379> set count 0
OK
127.0.0.1:6379> INCR count
(integer) 1
127.0.0.1:6379> INCR count
(integer) 2
127.0.0.1:6379> INCR count
(integer) 3
127.0.0.1:6379> DECR count
(integer) 2
127.0.0.1:6379> DECR count
(integer) 1

 

get

exists

 

2.redis-help使用,基本命令

标签:nbsp   2.0   app   lis   quit   slackware   col   mil   ras   

原文地址:https://www.cnblogs.com/asea123/p/8837064.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!