Filip Pytloun | 3cd3d90 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 1 | # Redis
|
| 2 |
|
| 3 | key value storage
|
| 4 |
|
| 5 | ## Sample pillars
|
| 6 |
|
| 7 | Redis 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 |
|
| 17 | Redis 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 |
|
| 27 | Redis modes
|
| 28 |
|
| 29 | redis:
|
| 30 | server:
|
| 31 | enabled: true
|
| 32 | appendfsync: no | everysec | always
|
| 33 |
|
Adam Tengler | eb45a26 | 2017-01-25 17:32:09 +0000 | [diff] [blame^] | 34 | Redis 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 |
|
| 52 | Redis 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 Pytloun | 3cd3d90 | 2015-10-06 16:28:32 +0200 | [diff] [blame] | 70 | ## Command usage
|
| 71 |
|
| 72 | Removes data from your connection's CURRENT database.
|
| 73 |
|
| 74 | > redis-cli FLUSHDB
|
| 75 |
|
| 76 | Removes 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
|