From d61a45ed241a66599413ce0f0df91ea28c1784ca Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 14 May 2018 22:56:26 +0200 Subject: [PATCH] We need to open en Cluster port ... redis port + 10000 --- creolefuncs/redis.py | 8 ++++++++ dicos/90_redis.xml | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100644 creolefuncs/redis.py diff --git a/creolefuncs/redis.py b/creolefuncs/redis.py new file mode 100644 index 0000000..87bb432 --- /dev/null +++ b/creolefuncs/redis.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- + + +# +# just add 2 numbers ... +# +def add(num1, num2): + return str(int(num1) + int(num2)).decode("utf-8") diff --git a/dicos/90_redis.xml b/dicos/90_redis.xml index 03141a9..c0e40da 100644 --- a/dicos/90_redis.xml +++ b/dicos/90_redis.xml @@ -7,6 +7,7 @@ redis-server redisPort + redisClPort redis-server @@ -26,6 +27,7 @@ 6379 + 512 @@ -106,6 +108,10 @@ ['noeviction', 'allkeys-lru','volatile-lru','volatile-random', 'allkeys-random','volatile-ttl'] + + redisPort + 10000 + Activer le service de cache Redis