hooks/helpers/use_ttl_sub library
Functions
-
useTTLSub(
{required DAQCache cache, required List< String> cacheKeys, required Duration timeToLive, required VoidCallback onExpired, Duration checkInterval = const Duration(minutes: 1), String? logPrefix}) → void - Add TTL (Time To Live) subscription to periodically check cache entries and trigger refetch when they expire