code: def trim(self, count, approximate=True):
          
          return self.database.xtrim(self.key, count, approximate)
docs: Trim the stream to the given "count" of messages, discarding the oldest
          messages first.
  
          :param count: maximum size of stream
          :param approximate: allow size to be approximate