code: def parse_debug_object(response):
      "Parse the results of Redis's DEBUG OBJECT command into a Python dict"
      # The 'type' of the object is the first item in the response, but isn't
      # prefixed with a name
      response = nativestr(response)
      response = 'type:' + response
      response = dict([kv.split(':') for kv in response.split()])
  
      # parse some expected int values from the string response
      # note: this cmd isn't spec'd so these may not appear in all redis versions
      int_fields = ('refcount', 'serializedlength', 'lru', 'lru_seconds_idle')
      for field in int_fields:
          if field in response:
              response[field] = int(response[field])
  
      return responsf parse_debug_object(response):
      "Parse the results of Redis's DEBUG OBJECT command into a Python dict"
      # The 'type' of the object is the first item in the response, but isn't
      # prefixed with a name
      response = nativestr(response)
      response = 'type:' + response
      response = dict([kv.split(':') for kv in response.split()])
  
      # parse some expected int values from the string response
      # note: this cmd isn't spec'd so these may not appear in all redis versions
      int_fields = ('refcount', 'serializedlength', 'lru', 'lru_seconds_idle')
      for field in int_fields:
          if field in response:
              response[field] = int(response[field])
  
      return response
docs: Parse the results of Redis's DEBUG OBJECT command into a Python dict