Magento registry stores data to memory which is specific to a particular request and for a duration of that request only.
Attachment 13417
Create and use your own custom registry in Magento 2.
Visit the tutorial to learn to use Registry in Magento 2.