diff --git a/seafobj/objstore_factory.py b/seafobj/objstore_factory.py index 75be544..f34e9e7 100644 --- a/seafobj/objstore_factory.py +++ b/seafobj/objstore_factory.py @@ -285,7 +285,7 @@ def get_seaf_cache(self): max_connections = self.cfg.get('redis', 'max_connections') else: max_connections = 20 - return get_redis_cache(host, port, expiry, max_connections) + return get_redis_cache(host, port, expiry, int(max_connections)) if self.cfg.has_option('memcached', 'memcached_options'): mc_options = self.cfg.get('memcached', 'memcached_options')