Redis(2.8.3) 命令学习 - Transactions

DISCARD

Discard all commands issued after MULTI

More: http://redis.io/commands/discardhttp://www.redis.cn/commands/discard.html

EXEC

Execute all commands issued after MULTI

More: http://redis.io/commands/exechttp://www.redis.cn/commands/exec.html

MULTI

Mark the start of a transaction block

More: http://redis.io/commands/multihttp://www.redis.cn/commands/multi.html

UNWATCH

Forget about all watched keys

More: http://redis.io/commands/unwatchhttp://www.redis.cn/commands/unwatch.html

WATCH key [key ...]

Watch the given keys to determine execution of the MULTI/EXEC block

More: http://redis.io/commands/watchhttp://www.redis.cn/commands/watch.html

时间: 2024-10-01 04:07:23

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

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) 命令学习 - Connection

AUTH password Authenticate to the server More: http://redis.io/commands/auth, http://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/command

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) 命令学习 - 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

linux五大搜索命令学习

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

基础命令学习总结

基础命令总结: 1.获取帮助命令: help man info 2.日期时间命令: date hwclock cal 3.系统管理命令: shutdown halt reboot poweroff bash tty 4.文件管理命令: cd type file echo which  whereis whatis dirname basename makewhatis mkdir pwd      touch 基础命令学习总结,布布扣,bubuko.com