

def __init__(self, redis, name=None, category=None, endpoint=None, url=None):
    "\n            Constructor.\n\n            :param redis:\n                Redis connection\n            :param name:\n                View name. If not provided, will use the model class name\n            :param category:\n                View category\n            :param endpoint:\n                Base endpoint. If not provided, will use the model name + 'view'.\n                For example if model name was 'User', endpoint will be\n                'userview'\n            :param url:\n                Base URL. If not provided, will use endpoint as a URL.\n        "
    super(RedisCli, self).__init__(name, category, endpoint, url)
    self.redis = redis
    self.commands = {
        
    }
    self._inspect_commands()
    self._contribute_commands()
    if (self.shlex_check and (VER < (2, 7, 3))):
        warnings.warn((('Warning: rediscli uses shlex library and it does not work with unicode until Python 2.7.3. ' + 'To remove this warning, upgrade to Python 2.7.3 or suppress it by setting shlex_check attribute ') + 'to False.'))

dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/rediscli.py RedisCli.__init__/original