diff --git a/product/ERP5Type/Tool/CacheTool.py b/product/ERP5Type/Tool/CacheTool.py
index 12ea531fef6a20cd5fb3a01335f9069939af7f73..9e9826b3337a424a7955b913325ba5898b3a8da0 100644
--- a/product/ERP5Type/Tool/CacheTool.py
+++ b/product/ERP5Type/Tool/CacheTool.py
@@ -120,6 +120,10 @@ class CacheTool(BaseTool):
     items = connection_string.split()
     if not items:
       return kwargs
+    compress = items[0]
+    if compress == "~":
+      kwargs['compress'] = True
+      items = items[1:]
     lockreq, items = items[0], items[1:]
     if lockreq[0] == "*":
       db_host, items = items[0], items[1:]