CacheRule class
The rules used in DiskCache.
Constructors
- CacheRule({Duration maxAge = const Duration(days: 30), StoreDirectoryType storeDirectory = StoreDirectoryType.temporary, bool checksum = false})
-
const
Properties
- checksum → bool
-
Checkum(CRC32) for cache file.
Default is disabled;
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxAge → Duration
-
Set a maximum age for the cache file.
Default is 30 days.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storeDirectory → StoreDirectoryType
-
Determining the type of folder for the cache file.
Default is temporary folder.
final
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