blob: 3e7a3758c6d09f5f8f6764d5bbcc538858c6a42b [file] [log] [blame]
Filip Pytloun3cd3d902015-10-06 16:28:32 +02001# Redis
2
3key value storage
4
5## Sample pillars
6
7Redis localhost server
8
9 redis:
10 server:
11 enabled: true
12 bind:
13 address: 127.0.0.1
14 port: 6379
15 protocol: tcp
16
17Redis world open
18
19 redis:
20 server:
21 enabled: true
22 bind:
23 address: 0.0.0.0
24 port: 6379
25 protocol: tcp
26
27Redis modes
28
29 redis:
30 server:
31 enabled: true
32 appendfsync: no | everysec | always
33
Adam Tenglereb45a262017-01-25 17:32:09 +000034Redis cluster master
35
36 redis:
37 cluster:
38 enabled: True
39 master:
40 host: 192.168.1.100
41 port: 6379
42 mode: sentinel
43 quorum: 2
44 role: master
45 supervisor:
46 server:
47 service:
48 redis_sentinel:
49 name: sentinel
50 type: redis
51
52Redis cluster slave
53
54 redis:
55 cluster:
56 enabled: True
57 master:
58 host: 192.168.1.100
59 port: 6379
60 mode: sentinel
61 quorum: 2
62 role: slave
63 supervisor:
64 server:
65 service:
66 redis_sentinel:
67 name: sentinel
68 type: redis
69
Filip Pytloun3cd3d902015-10-06 16:28:32 +020070## Command usage
71
72Removes data from your connection's CURRENT database.
73
74 > redis-cli FLUSHDB
75
76Removes data from ALL databases.
77
78 > redis-cli FLUSHALL
79
80## Read more
81
82* http://redis.io/topics/admin
83* http://redis.io/topics/quickstart
84* http://redis.io/topics/persistence