Change record status: 
Project: 
Introduced in branch: 
8.0.x
Introduced in version: 
8.0-beta8
Description: 

A new PrivateTempStore has been added.
Code that needs to use the temp-store in a per-user fashion should use the new @user.private_tempstore service (\Drupal\user\PrivateTempStoreFactory).
Code that needs to use the temp-store in a locking or multiple-user shared fashion, should use the @user.shared_tempstore service (\Drupal\user\SharedTempStoreFactory).

In addition node preview and Quick Edit were updated to use the private temp store.

Earlier versions of D8

$temp_store = \Drupal::service('user.tempstore');

After https://www.drupal.org/node/2421263

$per_user_private_temp_store = \Drupal::service('user.private_tempstore');
$shared_temp_store = \Drupal::service('user.shared_tempstore');
Impacts: 
Module developers