Memcached config

This commit is contained in:
filakx
2021-04-20 23:13:20 +02:00
parent 6d9ebbb264
commit 004871c495
+3
View File
@@ -317,6 +317,9 @@ class MemcachedSessionInterface(SessionInterface):
import aiomcache import aiomcache
loop = asyncio.get_running_loop() loop = asyncio.get_running_loop()
self.backend = aiomcache.Client("127.0.0.1", 11211, loop=loop) self.backend = aiomcache.Client("127.0.0.1", 11211, loop=loop)
self.backend = aiomcache.Client(self._config.get('SESSION_MEMCACHED_HOST', '127.0.0.1'),
self._config.get('SESSION_MEMCACHED_PORT', 11211),
loop=loop)
def _get_memcache_timeout(self, timeout): def _get_memcache_timeout(self, timeout):
""" """