How do I use $form_state['storage']['my_key']? The question is clear from the title itself .

I looked in the api specified in :  https://www.drupal.org/node/2310411 .

But it only mention to convert 

$storage = &amp;$form_state['storage'];
$form_state['storage'] = &amp;$storage;


to 

 $storage = &amp;$form_state-&gt;getStorage();
 $form_state-&gt;setStorage($storage);


But not a key in the $form_state['storage'] ? any help is appreciated .
The example in the documentation link seemed to cause confusion.  Simply set your values in an associative array and use set/get storage.

$vals = [
  'name' =&gt; 'bob',
  'age' =&gt; 50
];

// save the data.
$form_state-&gt;setStorage($vals);


// retrieve the data
$vals = $form_state-&gt;getStorage();
$str = $vals['name'] . ' is ' . $vals['age'] . ' years old.';


https://www.cyberdev.co/how-to-store-temp-form-state-data