Skip to content
This repository was archived by the owner on May 19, 2019. It is now read-only.

Latest commit

 

History

History
37 lines (27 loc) · 599 Bytes

File metadata and controls

37 lines (27 loc) · 599 Bytes

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