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

https://github.com/maxigimenez/keepit

localStorage wrapper with expiration time
https://github.com/maxigimenez/keepit

Last synced: about 12 hours ago
JSON representation

localStorage wrapper with expiration time

Awesome Lists containing this project

README

          

keepit
====================

Is a minimal API wrapper for localStorage with the big featured of set data with expiration time expressed in hours.

##Download

The source is available for download from [Github](https://github.com/maxigimenez/keepit), and you can using [Bower](http://bower.io/).

```
bower install keepit
```

##In the browser

Usage:

```html

keepit.set('dummykey', 'dummyvalue');
console.log(keepit.get('dummykey'));

```

##How to use

```js
keepit.set(key, value, expiration);
keepit.get(key);
keepit.getAll();
keepit.delete(key);
keepit.flush();

```