enable RingBuffer to auto-resize up to a specified limit