CacheConfig class
Cache configuration and TTL settings.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getTtlForCategory(
CacheCategory category) → Duration - Gets the time-to-live (TTL) for a specific category.
Constants
- defaultTtl → const Duration
- Default time-to-live (TTL) for cached data (1 hour).
- nowPlayingTtl → const Duration
- Time-to-live (TTL) for now playing movies (15 minutes).
- popularTtl → const Duration
- Time-to-live (TTL) for popular movies (30 minutes).
- topRatedTtl → const Duration
- Time-to-live (TTL) for top rated movies (2 hours).
- upcomingTtl → const Duration
- Time-to-live (TTL) for upcoming movies (6 hours).