npm install OhMyCache
bower install OhMyCache
import {Local, Session} from 'OhMyCache' // quick use Local.set('key', 'val') Session.set('key', 'val')
var OhMyCache = require('OhMyCache') // quick use OhMyCache.Local.set('key', 'val') OhMyCache.Session.set('key', 'val')
<html> <head> <!-- npm --> <script src="node_modules/ohmycache/dist/bundle.js"></script> <!-- bower --> <script src="bower_components//ohmycache/dist/bundle.js"></script> <!-- other method --> <script src="lib-path/ohmycache/dist/bundle.js"></script> <script> // quick use OhMyCache.Local.set('key', 'val') OhMyCache.Session.set('key', 'val') </script> </head> </html>