We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd9fdee + e147c1a commit cd3ec37Copy full SHA for cd3ec37
dogpile/cache/backends/memcached.py
@@ -408,25 +408,8 @@ def _imports(self):
408
global bmemcached
409
import bmemcached
410
411
- class RepairBMemcachedAPI(bmemcached.Client):
412
- """Repairs BMemcached's non-standard method
413
- signatures, which was fixed in BMemcached
414
- ef206ed4473fec3b639e.
415
-
416
- """
417
418
- def add(self, key, value, timeout=0):
419
- try:
420
- return super(RepairBMemcachedAPI, self).add(
421
- key, value, timeout
422
- )
423
- except ValueError:
424
- return False
425
426
- self.Client = RepairBMemcachedAPI
427
428
def _create_client(self):
429
- return self.Client(
+ return bmemcached.Client(
430
self.url,
431
username=self.username,
432
password=self.password,
0 commit comments