redis 自增步数
When you have Redis up and running, you can start using it!
Redis启动并运行后,就可以开始使用它了!
The simplest way is to use redis-cli
, an application installed when you install Redis.
最简单的方法是使用redis-cli
,这是在安装Redis时安装的应用程序。
It’s a built-in way to write commands to Redis without having to set up an application in order to do so.
这是一种将命令写入Redis的内置方式,而无需为此设置应用程序。
![](https://i-blog.csdnimg.cn/blog_migrate/412846e8a02de115173cb4def632380d.png)
You can connect to a remote Redis server using
redis-cli -h <host> -p <port> -a <password>
您可以使用
redis-cli -h <host> -p <port> -a <password>
连接到远程Redis服务器。
Once you’re in the Redis CLI app, you can start storing data into it.
进入Redis CLI应用程序后,就可以开始将数据存储到其中了。
Add a value using the structure SET <key> <value>
:
使用结构SET <key> <value>
添加一个值:
SET name "Flavio"
检索值 (Retrieve a value)
Retrieve a value using the structur