Skip to content

Commit 3af9838

Browse files
committed
0.1.1
* Added how to use
1 parent be8d7bc commit 3af9838

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "saga-cacher",
3-
"version": "0.1.0",
2+
"name": "@mgarf/saga-cacher",
3+
"version": "0.1.1",
44
"description": "Adds a caching layer to Saga",
55
"main": "index.js",
66
"scripts": {

readme.md

+14
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44

55
* TakeEvery takes two new parameters: Cache & CacheTime
66

7+
## How to use
8+
9+
Rather than importing redux-saga effects:
10+
11+
```javascript
12+
import { put, takeEvery, all, select } from 'redux-saga/effects';
13+
```
14+
15+
Import the middleware instead:
16+
17+
```javascript
18+
import { put, takeEvery, all, select } from '@mgarf/saga-cacher';
19+
```
20+
721
## List Item Caching
822

923
This middlware has the ability to do caching on items in a list.

0 commit comments

Comments
 (0)