mailcow-dockerized-docs/docs/redis.md

23 Zeilen
805 B
Markdown

2017-05-06 00:22:26 +02:00
### Client
2017-05-06 15:32:16 +02:00
Redis is used as a key-value store for (some of) mailcow's and rspamd's settings and data. If you are unfamilliar with redis please read the [introduction to redis](https://redis.io/topics/introduction) and maybe visit this [wonderfull guide](http://try.redis.io/) on how to use it.
To connect to the redis cli execute:
2017-05-06 00:22:26 +02:00
```
docker-compose exec redis-mailcow redis-cli
```
2017-05-06 15:32:16 +02:00
Here are some usefull commands for debugging:
2017-05-06 00:22:26 +02:00
2017-05-06 15:32:16 +02:00
!!! info
- **monitor**: Listens for all requests received by the server in real time.
```
# docker-compose exec redis-mailcow redis-cli
127.0.0.1:6379> monitor
OK
1494077286.401963 [0 172.22.1.253:41228] "SMEMBERS" "BAYES_SPAM_keys"
1494077288.292970 [0 172.22.1.253:41229] "SMEMBERS" "BAYES_SPAM_keys"
[...]
```