You can store the output forever but there are restrictions on caching data based on your account with us. 

Caching refers to storing request-response pairs with the intention of not hitting LocationIQ endpoints. If you're on the free plan, we allow caching for upto 48 hours. If you're a customer, you can cache for as long as you're subscribed with us.