Native YAML - Database/musc (#3603)

This commit is contained in:
Fabio Alessandro Locati 2016-12-01 14:01:59 +00:00 committed by Matt Clay
commit 7ac053576e
4 changed files with 73 additions and 17 deletions

View file

@ -103,22 +103,38 @@ author: Xabier Larrakoetxea
EXAMPLES = '''
# Set local redis instance to be slave of melee.island on port 6377
- redis: command=slave master_host=melee.island master_port=6377
- redis:
command: slave
master_host: melee.island
master_port: 6377
# Deactivate slave mode
- redis: command=slave slave_mode=master
- redis:
command: slave
slave_mode: master
# Flush all the redis db
- redis: command=flush flush_mode=all
- redis:
command: flush
flush_mode: all
# Flush only one db in a redis instance
- redis: command=flush db=1 flush_mode=db
- redis:
command: flush
db: 1
flush_mode: db
# Configure local redis to have 10000 max clients
- redis: command=config name=maxclients value=10000
- redis:
command: config
name: maxclients
value: 10000
# Configure local redis to have lua time limit of 100 ms
- redis: command=config name=lua-time-limit value=100
- redis:
command: config
name: lua-time-limit
value: 100
'''
try: