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