Skip to content

Commit

Permalink
Merge pull request #316 from girder/update-cache-tools
Browse files Browse the repository at this point in the history
Handle the newest version of cachetools.
  • Loading branch information
manthey committed Nov 8, 2018
2 parents 400f7cc + 48505e5 commit 640e72c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions server/cache_util/memcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ class MemCache(cachetools.Cache):
"""Use memcached as the backing cache."""

def __init__(self, url='127.0.0.1', username=None, password=None,
missing=None, getsizeof=None, mustBeAvailable=False):
super(MemCache, self).__init__(0, missing, getsizeof)
getsizeof=None, mustBeAvailable=False):
super(MemCache, self).__init__(0, getsizeof=getsizeof)
if isinstance(url, six.string_types):
url = [url]
# pylibmc used to connect to memcached client. Set failover behavior.
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-

import json
import platform

try:
from setuptools import setup
Expand Down Expand Up @@ -55,7 +56,7 @@
],
include_package_data=True,
install_requires=[
'cachetools>=2.0.0',
'cachetools>=3.0.0',
'enum34>=1.1.6',
'jsonschema>=2.5.1',
'libtiff>=0.4.1',
Expand All @@ -67,8 +68,8 @@
],
extras_require={
'memcached': [
'pylibmc>=1.5.1;platform_system!="Windows"'
],
'pylibmc>=1.5.1'
] if platform.system() != 'Windows' else [],
'openslide': [
'openslide-python>=1.1.0'
],
Expand Down

0 comments on commit 640e72c

Please sign in to comment.