Redis(2.8.3) 命令学习 - Connection

AUTH password

Authenticate to the server

More: http://redis.io/commands/authhttp://www.redis.cn/commands/auth.html

ECHO message

Echo the given string

127.0.0.1:6379> ECHO "Hello World!"
"Hello World!"

More: http://redis.io/commands/echohttp://www.redis.cn/commands/echo.html

PING

Ping the server

127.0.0.1:6379> PING
PONG

More: http://redis.io/commands/pinghttp://www.redis.cn/commands/ping.html

QUIT

Close the connection

More: http://redis.io/commands/quithttp://www.redis.cn/commands/quit.html

SELECT index

Change the selected database for the current connectionconnection

127.0.0.1:6379> SELECT 9
OK
127.0.0.1:6379[9]> SELECT 6
OK
127.0.0.1:6379[6]> SELECT 0
OK
127.0.0.1:6379> 

More: http://redis.io/commands/selecthttp://www.redis.cn/commands/select.html

时间: 2024-12-04 20:33:27

Redis(2.8.3) 命令学习 - Connection的相关文章

Redis(2.8.3) 命令学习 - Server

BGREWRITEAOF Asynchronously rewrite the append-only file BGSAVE Asynchronously save the dataset to disk CLIENT KILL [ip:port] [ID client-id] [TYPE normal|slave|pubsub] [ADDR ip:port] [SKIPME yes/no] Kill the connection of a client CLIENT LIST Get the

Redis(2.8.3) 命令学习 - Hashs

HDEL key field [field ...] Delete one or more hash fields 127.0.0.1:6379> HSET book.1 title helloworld (integer) 0 127.0.0.1:6379> HEXISTS book.1 title (integer) 1 127.0.0.1:6379> HDEL book.1 title (integer) 1 127.0.0.1:6379> HEXISTS book.1 ti

Redis(2.8.3) 命令学习 - Lists

BLPOP key [key ...] timeout Remove and get the first element in a list, or block until one is available More: http://redis.io/commands/blpop, http://www.redis.cn/commands/blpop.html BRPOP key [key ...] timeout Remove and get the last element in a lis

Redis(2.8.3) 命令学习 - Transactions

DISCARD Discard all commands issued after MULTI More: http://redis.io/commands/discard, http://www.redis.cn/commands/discard.html EXEC Execute all commands issued after MULTI More: http://redis.io/commands/exec, http://www.redis.cn/commands/exec.html

Redis(2.8.3) 命令学习 - Sorted Sets

ZADD key score member [score member ...] Add one or more members to a sorted set, or update its score if it already exists 127.0.0.1:6379> ZADD foo 1 one (integer) 1 127.0.0.1:6379> ZADD foo 2 two (integer) 1 127.0.0.1:6379> ZADD foo 3 three (int

Redis(2.8.3) 命令学习 - Pub/Sub

PSUBSCRIBE pattern [pattern ...] Listen for messages published to channels matching the given patterns PUBSUB subcommand [argument [argument ...]] Inspect the state of the Pub/Sub subsystem PUBLISH channel message Post a message to a channel PUNSUBSC

Redis 命令学习

每天不学习点新的东西,感觉就有点会被社会淘汰掉了.也许现在学习的知识会很快忘记,下次学习用到这个知识点的时候,再回来翻记录的笔记,我想这样会比从头再学,效率会高点吧. 闲话不多聊,回归正题.今天学习redis的命令,争取把常用的redis命令都敲一遍. redis命令就是在redi服务上执行的.要想启动redis服务.我是在windows本机上安装的redis.先切换到redis目录 然后启动redis服务. 启动redis redis-cli Redis 键(key) set key conm

mysql常用命令学习

1.\c取消当前准备执行的sql语句. mysql> select user,host,password from mysql.user;\c +--------+-----------+----------+ | user   | host      | password | +--------+-----------+----------+ | root   | localhost |          | | root   | mytest2   |          | | root  

linux五大搜索命令学习

五大搜索命令学习 分别解释locate,find,which,whereis,grep 五大linux搜索命令 locate 解释:由man手册可以看出,locate查找就是根据文件名进行查找,只是依赖于updatedb命令.该命令更新linux中的查找数据库/var/lib/locatedb 这个数据库中含有本地所有文件信息.Linux系统自动创建这个数据库,并且每天自动更新一次,所以使用locate命令查不到最新变动过的文件.为了避免这种情况,可以在使用 locate之前,先使用update