cache-api-local
v1.0.3
Published
A lib to use for caching the api res so your load to serve minimize. Plus it has revalidating feature 🔥🔥
Downloads
11
Maintainers
Readme
Installation
npm install cache-api-local
Coding Example
import CacheApi from "cache-api-local";
const ss = new CacheApi("https://jsonplaceholder.typicode.com", "data", 100);
ss.getData("/photos/1?t=12", "photo");
Props
new CacheApi(baseUrl,saveFolderName,revalidate_time_in_sec)