unsafe_forever constant
StorageCacheTime
const unsafe_forever
A cache time that will never expire.
This is useful for data that should never be deleted ; but comes with one major downside: You must manually delete the data when it is no longer needed.
Specifically, this means that if you ever delete the associated provider from your application ; then you will have to do a database migration to delete the data associated with this provider. If not, then your database will forever contain unused data.
Riverpod does not provide any tooling to help with this migration. It is the responsibility of whatever Database you are using to handle this migration.
Implementation
// ignore: constant_identifier_names, voluntary for the sake of unsafeness.
static const StorageCacheTime unsafe_forever = StorageCacheTime._(null);