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