eole-redis/creolefuncs/redis.py
Philippe Caseiro 2cb3b1eab0 Adding support for a second instance !
Redis cluster needs 6 hosts for work ... it's a lot.
To trick him each node can be Master and slave for another node.

;)
2020-06-17 12:16:27 +02:00

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)