Redis Command: LTRIM
Trim a Redis list, and remove items from the list from one or both end(s). We provide a starting and ending index for the trim and the items outside that window are removed. If all items are removed while trimming, then the list is deleted. Indexes are Zero(0) based.