Build in method for Algolia Index data expiry time

Hi, i want to store my data in Algolia ,and I also want that my data in algolia get’s expired in a certain duration which I will set while I am setting data in algolia.Does algolia have a predefined function argument for that.