allowList property

Set<String>? allowList
final

Information about what data will be fetched during get and init methods, what data can be set, as well as what data will be removed by clear.

A null allowList will prevent filtering, allowing all items to be cached. An empty allowList will prevent all caching as well as getting and setting.

Setting an allowList is strongly recommended, to prevent getting and caching unneeded or unexpected data.

Implementation

final Set<String>? allowList;