You can set the storage retention time to 1, 3, 7, 15, 30 days or Unlimited.
To change it, log in to your PubNub account and navigate to Storage feature of a given key set to select a desired retention time.
NOTE: If you are on Limited retention time and switch to Unlimited (or vice versa), you will not be able to retrieve messages from the former database.
However, you can request dual database read by contacting support.
Switching within Limited range still allows fetching messages that were stored before the change.