Skip to content
Permalink
Browse files
step2 : extract redis functions to a file
  • Loading branch information
jdvr committed Jul 27, 2017
1 parent 7fcbb59 commit 394081d573d328ed79f694e8b721d4eaa8d08fa3
Showing 2 changed files with 13 additions and 11 deletions.
@@ -1,5 +1,7 @@
#!/bin/bash

source "redis-functions.sh"

# Settings
PORT=30000
TIMEOUT=2000
@@ -16,17 +18,6 @@ fi

# Computed vars
ENDPORT=$((PORT+NODES))
redis-server() {
../../src/redis-server $@
}

redis-trib() {
../../src/redis-trib.rb $@
}

redis-cli() {
../../src/redis-cli $@
}

start_command() {
while [ $((PORT < ENDPORT)) != "0" ]; do
@@ -0,0 +1,11 @@
redis-server() {
../../src/redis-server $@
}

redis-trib() {
../../src/redis-trib.rb $@
}

redis-cli() {
../../src/redis-cli $@
}

0 comments on commit 394081d

Please sign in to comment.