Interface CachedIngredient

All Superinterfaces:
Ingredient

public interface CachedIngredient extends Ingredient
If getItem returns null or shouldRefresh == false, the cached version will be used.
Important: unlike Ingredient, shouldRefresh can be called twice in some cases.
Important: unlike Ingredient, shouldRefresh may be called before the first rendering.
Therefore, it is necessary to initialize all necessary variables for shouldRefresh not in getItem