Making Sense Of Registry::set

Hi,

In my addon init.php I have this call:

Registry::registerCache('bfa_data_feeds', []);

And then later in my code, I add something to this store with the line:

Registry::set('addons.bfa_data_feeds.data_feed_list', fn_bfa_data_feeds_get_feed_list());

This works, however if I switch between all stores and a particular storefront, the cached value is no longer recognised and vice versa.

Two questions.

Am I using the cache correctly here and how do I get it to retain values when moving between all stores and a particular storefront. '

Thanks...