Exemples

Store data in local storage

OhMyCache.Local.set('key', 'local')

Store data in session storage

OhMyCache.Session.set('key', 'session')

Get data in local storage

OhMyCache.Local.get('key') // return 'local'

Get data in session storage

OhMyCache.Session.get('key') // return 'session'

Store an object

OhMyCache.Local.set('myObj', {attr1: 'val1', attr2: 'val2'})