api-data-store
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "api-data-store", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "API Data Store", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -41,3 +41,3 @@ # api-data-store | ||
# Setting a timeout on the cache in minutes | ||
# Setting a timeout on the cache in milliseconds | ||
@@ -52,3 +52,3 @@ ``` | ||
cache: true, | ||
timeout: 5 | ||
timeout: 1000 * 60 * 5 // 5 minutes | ||
}); | ||
@@ -59,2 +59,4 @@ ``` | ||
The API Data Store uses the localStorage interface. If you need to create your own custom storage driver use the same methods as localStorage. | ||
``` | ||
@@ -70,4 +72,4 @@ import axios from 'axios'; | ||
cache: true, | ||
timeout: 5, | ||
timeout: 1000 * 60 * 5 // 5 minutes | ||
}); | ||
``` |
8181
71