Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vencakrecl committed Nov 23, 2020
1 parent 088cdcc commit 36700ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

* simple cache for vuex action

## How to install
### How to install
```bash
npm install vuex-simple-cache
# OR
yarn add vuex-simple-cache
```

## How to use
### How to use
```js
import Vue from 'vue';
import Vuex, { Store } from 'vuex';
Expand Down Expand Up @@ -45,6 +45,11 @@ store.registerModule('test', {
})
```

### API - cacheAction
* key - name of key from vuex state
* action - standard vuex action
* expiration - time in seconds

[npm]: https://img.shields.io/npm/v/@vencakrecl/vuex-simple-cache.svg?style=flat-square
[license]: https://img.shields.io/npm/l/@vencakrecl/vuex-simple-cache.svg?style=flat-square
[ci]: https://img.shields.io/github/workflow/status/VencaKrecl/vuex-simple-cache/CI
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@vencakrecl/vuex-simple-cache",
"author": "Venca Krecl <[email protected]>",
"description": "Simple cache for vuex action",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit 36700ad

Please sign in to comment.