Pass server_max_value_length to memcached client

Before this commit there was no ability to match client side option
with the server side one.

Change-Id: Ia76e16b3ed964dde8aa5e104015585fe239ad2b9
This commit is contained in:
Andrii Ostapenko 2019-05-21 17:14:31 -05:00 committed by Pavlo Shchelokovskyy
parent 3e06753078
commit 4ff8379984
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ class PooledMemcachedBackend(memcached_backend.MemcachedBackend):
arguments={
'dead_retry': arguments.get('dead_retry', 5 * 60),
'socket_timeout': arguments.get('socket_timeout', 3.0),
'server_max_value_length':
arguments.get('server_max_value_length'),
},
maxsize=arguments.get('pool_maxsize', 10),
unused_timeout=arguments.get('pool_unused_timeout', 60),