-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Description
Apparently, changing the value of server_max_value_length in the memcache module does NOT change the value inherited by the clients.
From looking at the source, I can not for the life of me figure out why!
This example was run on Ubuntu 13.04, and I've also observed it on a remote machine running Ubuntu 12.04 (on Amazon cloud).
Python 2.7.4 (default, Apr 19 2013, 18:28:01)
[GCC 4.7.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import memcache
>>> memcache.SERVER_MAX_VALUE_LENGTH
1048576
>>> memcache.SERVER_MAX_VALUE_LENGTH *= 10
>>> memcache.SERVER_MAX_VALUE_LENGTH
10485760
>>> c = memcache.Client(['localhost'])
>>> c.server_max_value_length
1048576
>>> memcache.SERVER_MAX_VALUE_LENGTH
10485760
Metadata
Metadata
Assignees
Labels
No labels