shallCache method
Whether the given asset shall be cached. *
- Default: it returns true if
assetSize
is not greater than cacheThreshold. - You override this method if necessary.
-
assetSize
- the size ofasset
in bytes.
Implementation
bool shallCache(Asset asset, int assetSize) => assetSize <= cacheThreshold;