setExpiryPolicy

Sets the expiry policy for the persisted value. The expiry policy determines how long the persisted value should be retained before it expires. By default, the expiry policy is set to SESSION, which means the value will expire at the end of the session.

Parameters

expiryPolicy

The expiry policy to be applied to the persisted value.