--- a/src/pyams_notify_ws/include.py Thu Jun 02 16:02:23 2016 +0200
+++ b/src/pyams_notify_ws/include.py Thu Jun 01 15:14:48 2017 +0200
@@ -18,6 +18,7 @@
# import interfaces
# import packages
+from pyams_notify_ws.interfaces import CACHE_CONFIGURATION_KEY
def include_package(config):
@@ -31,7 +32,7 @@
config.add_route('subscribe', '/subscribe')
config.add_route('notify', '/notify')
- memcached_server = config.registry.settings.get('pyams_notify_ws.memcached_server')
- if memcached_server:
- from .notify import init_memcached_client
- init_memcached_client(memcached_server)
+ cache_server = config.registry.settings.get(CACHE_CONFIGURATION_KEY)
+ if cache_server:
+ from .notify import init_cache_client
+ init_cache_client(cache_server)