Redis#xtrim

Parsed documentation:
View on GitHub
Trims older entries of the stream if needed.

@example Without options
  redis.xtrim('mystream', 1000)
@example With options
  redis.xtrim('mystream', 1000, approximate: true)

@param key         [String]  the stream key
@param mexlen      [Integer] max length of entries
@param approximate [Boolean] whether to add `~` modifier of maxlen or not

@return [Integer] the number of entries actually deleted
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.