Installation
Download
NPM
npm install OhMyCache
Bower
bower install OhMyCache
Load the library
ES2015 (babel)
import {Local, Session} from 'OhMyCache'
// quick use
Local.set('key', 'val')
Session.set('key', 'val')
require function of node
var OhMyCache = require('OhMyCache')
// quick use
OhMyCache.Local.set('key', 'val')
OhMyCache.Session.set('key', 'val')
Html script
<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>