def get_db(self):
        _db = self.params.get('db', self.options.get('DB', 1))
        try:
            return int(_db)
        except (ValueError, __HOLE__):
            raise ImproperlyConfigured("db value must be an integer")
dataset/ETHPy150Open sebleier/django-redis-cache/redis_cache/backends/base.py/BaseRedisCache.get_db