Explorar el Código

celery.backends.cache: Fixed typos

Ask Solem hace 15 años
padre
commit
df7fd4612f
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      celery/backends/cache.py

+ 3 - 2
celery/backends/cache.py

@@ -1,3 +1,5 @@
+from datetime import timedelta
+
 from carrot.utils import partition
 
 from celery import conf
@@ -16,7 +18,7 @@ except ImportError:
 
 
 class CacheBackend(KeyValueStoreBackend):
-    Client = pylibmc.Client
+    Client = memcache.Client
 
     _client = None
 
@@ -29,7 +31,6 @@ class CacheBackend(KeyValueStoreBackend):
         self.options = dict(conf.CELERY_CACHE_BACKEND_OPTIONS, options)
         self.backend, _, servers = partition(backend, "://")
         self.servers = servers.split(";")
-        self.client = memcache.Client(servers, **options)
 
     def get(self, key):
         return self.client.get(key)