Add changes from the 1.7.6 SDK to memcache module
@@ -353,30 +353,13 @@ class Client(object):
-
-
-
-
-
-
-
self._pickler_factory = pickler
self._unpickler_factory = unpickler
self._pickle_protocol = pickleProtocol
self._persistent_id = pid
self._persistent_load = pload
self._app_id = _app_id
- self._num_memcacheg_backends = _num_memcacheg_backends
- self._ignore_shardlock = _ignore_shardlock
- self._memcache_pool_hint = _memcache_pool_hint
- self._memcache_sharding_strategy = _memcache_sharding_strategy
self._cas_ids = {}
- if _app_id and not(_num_memcacheg_backends and
- _memcache_pool_hint and
- _memcache_sharding_strategy is not None):
- raise ValueError('If you specify an _app_id, you must also provide '
- '_num_memcacheg_backends, _memcache_pool_hint, and '
- '_memcache_sharding_strategy')
def cas_reset(self):
"""Clear the remembered CAS ids."""
@@ -433,12 +416,9 @@ class Client(object):
if self._app_id:
app_override = message.mutable_override()
app_override.set_app_id(self._app_id)
- app_override.set_num_memcacheg_backends(self._num_memcacheg_backends)
- if self._ignore_shardlock:
- app_override.set_ignore_shardlock(self._ignore_shardlock)
- app_override.set_memcache_pool_hint(self._memcache_pool_hint)
- app_override.set_memcache_sharding_strategy(
- self._memcache_sharding_strategy)
+
+
+ app_override.set_num_memcacheg_backends(0)
def set_servers(self, servers):
"""Sets the pool of memcache servers used by the client.
