LitleCacheJs
Simple cache manager for your javascript applications
How to use
include js file and create new cache instance:
var myCache = new LitleCache();
Add data :
myCache.setItem('hello', ['World', 'Steven']);
Test if key exists
myCache.hasItem('hello');
Get value
myCache.getItem('hello', 'my value if not exists')
Other methods
- LitleCache.get(key)
- LitleCache.removeItem(key)
- LitleCache.clear
- LitleCache.enable
- LitleCache.disable
- LitleCache.enabled
- LitleCache.disabled