Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ozee31 committed Aug 31, 2016
1 parent a3bd0e7 commit 826670a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,23 @@ OhMyCache.Local.set('k3', 'v3', {expire: 1})
OhMyCache.Local.getAll() // {k1: 'v1', k2: 'v2'}
```

### Keys
Return all item's keys, doen't remove expired items
`keys()`

#### Return
**Array** : all item's keys

#### Exemples
```JS
OhMyCache.Local.set('k1', 'v1')
OhMyCache.Local.set('k2', 'v2', {readonly: true})
OhMyCache.Local.set('k3', 'v3', {expire: 1})

// sleep 2 secondes or more
OhMyCache.Local.keys() // ['k1', 'k2', 'k3']
```

### Remove
Remove item if don't readonly
`remove(key)`
Expand Down

0 comments on commit 826670a

Please sign in to comment.