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