Skip to content

Commit df7fd46

Browse files
author
Ask Solem
committed
celery.backends.cache: Fixed typos
1 parent 13175ff commit df7fd46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

celery/backends/cache.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from datetime import timedelta
2+
13
from carrot.utils import partition
24

35
from celery import conf
@@ -16,7 +18,7 @@
1618

1719

1820
class CacheBackend(KeyValueStoreBackend):
19-
Client = pylibmc.Client
21+
Client = memcache.Client
2022

2123
_client = None
2224

@@ -29,7 +31,6 @@ def __init__(self, expires=conf.TASK_RESULT_EXPIRES,
2931
self.options = dict(conf.CELERY_CACHE_BACKEND_OPTIONS, options)
3032
self.backend, _, servers = partition(backend, "://")
3133
self.servers = servers.split(";")
32-
self.client = memcache.Client(servers, **options)
3334

3435
def get(self, key):
3536
return self.client.get(key)

0 commit comments

Comments
 (0)