TableManager retention by size

I read that retention can be implemented using either Table Manager or Compactor.

But from searching online seems that retention can only be configured based on the amount of time to save data.
Is there any possibility to configure retention based on desired storage space? (meaning prevent surpassing of 5GB for example).

Thanks in advance,