Memcached config
This commit is contained in:
@@ -317,6 +317,9 @@ class MemcachedSessionInterface(SessionInterface):
|
||||
import aiomcache
|
||||
loop = asyncio.get_running_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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user