After switching to the above, the cache value should be gone after lando drush cr.
The problem was that the settings changes needed to be INSIDE the function, otherwise they won't be applied again. Drush initializes the site multiple times and wipes it out, making you use the default cache bin 'memory'.
To Reproduce (Must be done on a different branch)
lando drush cg entity_field_map discovery
lando drush cr
lando drush cg entity_field_map discovery
After switching to the above, the cache value should be gone after
lando drush cr
.The problem was that the settings changes needed to be INSIDE the function, otherwise they won't be applied again. Drush initializes the site multiple times and wipes it out, making you use the default cache bin 'memory'.