original_docstring: Add item to redis wrapper.
docstring: Add item to redis wrapper.
docstring_tokens: Add item to redis wrapper .
code: def add_item(self, item: RedisItem) -> None:
          """Add item to redis wrapper."""
          if item.key in self.items:
              raise KeyError(f"item with key {item.key} already exists")
  
          self.items[item.key] = item
          if self._get(item) is None:
              self._set(item, item.default)
code_tokens: def add_item ( self , item : RedisItem ) -> None : if item . key in self . items : raise KeyError ( f"item with key {item.key} already exists" ) self . items [ item . key ] = item if self . _get ( item ) is None : self . _set ( item , item . default )
short_docstring: Add item to redis wrapper.
short_docstring_tokens: Add item to redis wrapper .
comment: """Add item to redis wrapper."""