rediscache.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:tornadopy 作者: xubigshu 项目源码 文件源码
def connection_pool_class(self):
        cls = self.options.get('POOL_CLASS', 'redis.ConnectionPool')
        mod_path, cls_name = cls.rsplit('.', 1)
        try:
            mod = import_object(mod_path)
            pool_class = getattr(mod, cls_name)
        except (AttributeError, ImportError):
            raise ConfigError("Could not find connection pool class '%s'" % cls)
        return pool_class
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号