用户工具

站点工具


jaysnote:redis

这是本文档旧的修订版!


<markdown>

# redis operation

* https://redis.io/commands/keys

对于redis-server 的操作可以直接通过redis-cli进行增删查改。这里记录常用操作。

```bash pi@350-tf-s2 ~$ redis-cli 127.0.0.1:6379> keys * #获取所有key 1) “app:cards” 2) “app:config” 3) “pet” 4) “website” 5) “app:users” 127.0.0.1:6379> hkeys app:cards #获取key 1) “100283” 2) “100108” 127.0.0.1:6379> hget app:cards 100283 “[\”832498338\“,\”573086265\“,\”2347483355\“ ```

## windows graphical client

下载[RedisStudio-en-0.1.5.exe](files/RedisStudio-en-0.1.5.exe)。

修改默认默认配置文件,使支持远程访问。

```bash $vi /etc/redis/6379.conf bind 0.0.0.0 ```

![windows 图像化客户端](images/remote_redis_settings.png)

«markdown>

jaysnote/redis.1555483579.txt.gz · 最后更改: 2021/06/22 23:14 (外部编辑)