A simple guide to local storage and session storage.
Interface Segregation Principle means a client should not depend on something it doesn't need.