blob: eced7fb33074226e94808f965959ebcec83ea7e7 [file] [log] [blame]
Ales Komarekc151bcf2017-02-20 20:46:54 +01001=============
2Redis formula
3=============
4
5key value storage
6
7
8Sample pillars
9==============
10
11Redis localhost server
12
13
14.. code-block:: yaml
15
16 redis:
17 server:
18 enabled: true
19 bind:
Martin Polreich95710dd2018-07-18 11:42:38 +020020 address: 127.0.0.1
Ales Komarekc151bcf2017-02-20 20:46:54 +010021 port: 6379
22 protocol: tcp
23
24Redis world open
25
26.. code-block:: yaml
27
28 redis:
29 server:
30 enabled: true
31 bind:
Martin Polreich95710dd2018-07-18 11:42:38 +020032 address: 0.0.0.0
Ales Komarekc151bcf2017-02-20 20:46:54 +010033 port: 6379
34 protocol: tcp
35
36Redis modes
37
38.. code-block:: yaml
39
40 redis:
41 server:
42 enabled: true
43 appendfsync: no | everysec | always
44
45Redis cluster master
46
47.. code-block:: yaml
48
49 redis:
50 cluster:
51 enabled: True
52 master:
53 host: 192.168.1.100
54 port: 6379
55 mode: sentinel
56 quorum: 2
57 role: master
58 supervisor:
59 server:
60 service:
61 redis_sentinel:
62 name: sentinel
63 type: redis
64
65Redis cluster slave
66
67.. code-block:: yaml
68
69 redis:
70 cluster:
71 enabled: True
72 master:
73 host: 192.168.1.100
74 port: 6379
75 mode: sentinel
76 quorum: 2
77 role: slave
78 supervisor:
79 server:
80 service:
81 redis_sentinel:
82 name: sentinel
83 type: redis
84
85
86Command usage
87=============
88
89Removes data from your connection's CURRENT database.
90
91 > redis-cli FLUSHDB
92
93Removes data from ALL databases.
94
95 > redis-cli FLUSHALL
96
97
98More information
99================
100
101* http://redis.io/topics/admin
102* http://redis.io/topics/quickstart
103* http://redis.io/topics/persistence