Philippe Caseiro
2cb3b1eab0
Redis cluster needs 6 hosts for work ... it's a lot. To trick him each node can be Master and slave for another node. ;)
12 lines
188 B
Python
12 lines
188 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
|
|
#
|
|
# just add 2 numbers ...
|
|
#
|
|
def add(num1, num2):
|
|
return str(int(num1) + int(num2)).decode("utf-8")
|
|
|
|
def intAdd(num1, num2):
|
|
return int(num1) + int(num2)
|