NativebrikCachePolicy class
A policy for caching data from the nativebrik SDK.
- The cache time is the time to live for the cache. default is 1 day.
- The stale time is the time to live for the stale data. default is 0 seconds.
- The storage is the storage for the cache. default is inMemory.
Constructors
- NativebrikCachePolicy({Duration cacheTime = const Duration(days: 1), Duration staleTime = const Duration(seconds: 0), CacheStorage storage = CacheStorage.inMemory})
-
const
Properties
- cacheTime → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- staleTime → Duration
-
final
- storage → CacheStorage
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toObject(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited