def parse_object(response, infotype):
    "Parse the results of an OBJECT command"
    if infotype in ('idletime', 'refcount'):
        return int_or_none(response)
    return response
Parse the results of an OBJECT command
stackoverflow/venv/lib/python3.6/site-packages/redis/client.py