Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rrelmy/rls-cache

javascript interface for HTML5 Storage with fallbacks and TTL support
https://github.com/rrelmy/rls-cache

Last synced: about 1 month ago
JSON representation

javascript interface for HTML5 Storage with fallbacks and TTL support

Awesome Lists containing this project

README

        

Rémy's LocalStorage Cache

JavaScript interface for HTML5 Storage with fallbacks

Methods:
RlsCache.set(key, value, ttl);
RlsCache.get(key);
RlsCache.remove(key);
RlsCache.clear();

This script is provided as is without warranty!

Compatbility for Storage backend
- IE 8
- Firefox 3.5 (because of native JSON, with polyfill Firefox 2)
- Chrome 4
- Opera 10.50
- Safari 4
- iOS 4
- Android 2.1
- Opera Mobile 11

TODO/IDEAS
- configurable backends
- external backends?