API Activity retention time

Hello

I wonder how to configure Tyk gateway in order to set the retention time about API analytics for API activity. I have read the documentation but it’s not clear for me. I have set TYK_GW_ANALYTICSCONFIG_STORAGEEXPIRATIONTIME configuration key but I’m not sur if it’s enough and about the gateway behavior.

Do I need to set others variable ?
What is the recommandation/advices about the maximum storage expiration time ?

Regards